473,385 Members | 1,379 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,385 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 1492
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.