473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Form control resizing

I have this code that resizes a form control. i want to be about to do
something like that in .net. the other version is in vb 6...

here is the code
Dim hgt As Single

hgt = ScaleHeight - wbrURL.Top
If hgt < 120 Then hgt = 120
wbrURL.Move(0, wbrURL.Top, ScaleWidth, hgt)

the ScaleHeight is not used in vb.net. can you tell me what the vb.net name
is for this please..

Shane
Nov 20 '05 #1
2 1494
Shane:

Check out the Anchor and/or Dock properties of the control, and be glad you
aren't using VB6 anymore
"Shane" <as******@georgeandgabe.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
I have this code that resizes a form control. i want to be about to do
something like that in .net. the other version is in vb 6...

here is the code
Dim hgt As Single

hgt = ScaleHeight - wbrURL.Top
If hgt < 120 Then hgt = 120
wbrURL.Move(0, wbrURL.Top, ScaleWidth, hgt)

the ScaleHeight is not used in vb.net. can you tell me what the vb.net name is for this please..

Shane

Nov 20 '05 #2
That is not what i was looking for...
the way the code work is, it looks at the current form size and changes the
internal control to fit the max size of the form.. there is other thing on
the form so i cant have it the for size of the form

Shane

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Shane:

Check out the Anchor and/or Dock properties of the control, and be glad you aren't using VB6 anymore
"Shane" <as******@georgeandgabe.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
I have this code that resizes a form control. i want to be about to do
something like that in .net. the other version is in vb 6...

here is the code
Dim hgt As Single

hgt = ScaleHeight - wbrURL.Top
If hgt < 120 Then hgt = 120
wbrURL.Move(0, wbrURL.Top, ScaleWidth, hgt)

the ScaleHeight is not used in vb.net. can you tell me what the vb.net

name
is for this please..

Shane


Nov 20 '05 #3

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

Similar topics

11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
3
by: Bill English | last post by:
Is it possible to make a user control sizable, so that when the program is running, it can be resized? -- I am a 14 year old C# developer, I am completely self taught, so please don't get mad if...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
12
by: Søren Reinke | last post by:
Hi there I have a little problem. How do i make sure that a graph is not redrawn while the form with the graph is being resized ? I have tried to add a mouse up/down event handler on the...
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
6
by: chris.dannemiller | last post by:
I need to be able to move a few form abouts around after a event occurs but when I do this it causes massive flickering is there any way to reduce this?
25
by: Dave | last post by:
Hello. In trying to get an anchor element to stylistically match an input or button element, I find that the button and input cannot be styled according to the 2.1 CSS spec. For example, I...
2
by: (PeteCresswell) | last post by:
I've got a form that has a TreeView in the upper part of the form and a TabControl in the lower. When processing a Resize event, the TabControl does not need tb resized - just moved so that the...
6
by: Funky | last post by:
Hello! I have a problem. I have to change the size of a control added to a Form when the user resizes the Form. I use the Resize event and change the size of the control in the method which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.