473,659 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem Re-scaling Labels Groupbox on a windows form

When my form loads I have 3 items perfectly aligned:
'______________ _______________ _______________ ____________ (Width,
Height)

Startup form name is "strForm" (w800, h570) Location(0, 0)
Picture Box control = "picBackGro und" (w800, h570) Location
(picBackGround)
Group Box Control gbBox(w330, h256) Location (38, 72)

I have also written this code to rescale the Picturebox on form
resize.
The picture box is acting as my background image.

Resize form Proc:

picBackGround.S izeMode = PictureBoxSizeM ode.StretchImag e
picBackGround.W idth = sender.width
picBackGround.H eight = sender.height

My problem is that I cannot get my groupbox to scale correctly when I
resize the form. I'm sure this is easy to do but I just cannont
figure it out. I'm trying to make it so that the groupbox rescales
when the form does and and maintains it's top right position, so that
the group box does not appear as if it is floating around in the
background.

Any help would be greatly appreciated,


-Peter
Nov 20 '05 #1
0 1062

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5871
by: bouchia.nazha | last post by:
Hello I have encountered a problem using tomcat, linux and ssl. My problem seem to be a JVM memory deallocation problem on Linux. This is my configuration: OS: Redhat7.2 Tomcat: 4.0 Jdk: 1.3.1_07
4
1893
by: David Morgan | last post by:
Hi This is a really weird problem. We have a website that has been running for about six months with no problems. We have recently moved it to a new server with a new ISP. The server is of a much higher specification as is the bandwidth etc. offered by the ISP. The move went smoothly although some users are reporting problems with a couple of ASPs that return large amounts of HTML e.g. 1181170 bytes (I just checked or 13464 bytes...
4
1884
by: Trond Meistad | last post by:
I have a website where I run a simple asp.net web application. On Sunday night, requests to this webapplication started to time out. After much debuggeing with no result, I created a new webapplication with one aspx page that displays only a text. I uploaded this page and the dll, but requests to this page also times out. So my problem seems to be: If I request an aspx page, this request times out. The page gives no error mesage, it...
1
2647
by: Kijoki | last post by:
Hi, I am having this big headache causing problem for over seven months now! I run an internetcafe and for over the past seven months I have been getting this really weird problem in which my internet connection drops (router has this security built-in in which it restarts) and then comes back on in about 30 seconds time! The LAN setup is as follows: I had a broadband ADSL modem which has two hubs connected to it and also the main...
9
3644
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I need your able help in this activity. Objective - In this activity you will design a framework capable of solving any puzzle of a specific type and, as a test of this framework, use the framework to solve a very simple puzzle. In this first...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8629
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.