100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
Go Back  Xtreme Visual Basic Talk > > > 100% Noob question: how to dynamically resize the form?


Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2006, 01:58 PM
mrlucid mrlucid is offline
Newcomer
 
Join Date: Aug 2005
Posts: 7
Default 100% Noob question: how to dynamically resize the form?


It's been a while since I've coded anything and I am working to improve an existing project. I would like the main window (form) of the application to change size based on user interaction...

First off... the program is a fixed window size. let's say 320x240... and when the user clicks on a button I want the window to resize to let's say 640x480.

i know this is a really stupid question and i should have been able to figure it out by now but I figured i could get input from others.

I tried:

If (user clicks on item) Then
Me.Size.Height = 480
Me.Size.Width = 640

with no luck as well as many other ways that i could think of.

any help would be greatly apreciated.
Reply With Quote
  #2  
Old 10-11-2006, 02:08 PM
Gruff's Avatar
Gruff100% Noob question: how to dynamically resize the form? Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

Did you notice the squiggles under the code? VB is trying to tell you something.

Me.Height = 480
Me.Width = 640
Is probably what you want.

~T
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
  #3  
Old 10-11-2006, 02:28 PM
mrlucid mrlucid is offline
Newcomer
 
Join Date: Aug 2005
Posts: 7
Default

i think i already tried that... but i will give it a shot as soon as i am back in front of my machine. i really hope that it is something that simple.

thanks again
Reply With Quote
  #4  
Old 10-11-2006, 04:54 PM
mrlucid mrlucid is offline
Newcomer
 
Join Date: Aug 2005
Posts: 7
Default

Awesome!!! It worked beautifully! And it was painless... Thanks dude!!
Reply With Quote
  #5  
Old 10-11-2006, 05:18 PM
Gruff's Avatar
Gruff100% Noob question: how to dynamically resize the form? Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

*High Five* (Yep Racoons have five digits too.)
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form? 100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
 
100% Noob question: how to dynamically resize the form?
100% Noob question: how to dynamically resize the form?
 
-->