Thread: VB.NET Windows
April 5th, 2005, 09:26 AM #1
I created a form (well actually the form itself was already created for me). Well this is my first experience in a windows programming environment and I don't understand how to make all my form components maximize with the window when the user maximizes the window.
I put a panel on the left and a richedit on the right of it and it fits the entire window at 500 by 450. Well when I maximize the window the panel and richedit stays the same size!!
I tried docking the panel to the left hand side of the form and my richedit component on the right side of the form but the rich edit ends up either below the left panel or above it.
What should I do??
I hate windows! It takes more time designing the stupid window than it does actually coding it!!
April 5th, 2005, 09:37 AM #2
I'll assume your in vb.net studio
you need to set the anchor on your objects in the form, IE if the object is anchored to the top left and right it'll streach right when the window is resized right. If it's also on bottom it'll streach down on bottom. Say you have a object to the right you dont want to streach, just move when the window resizes, just anchor it to the top, right, bottom.
Just play around with the anchor property of your objects (you can rezise the window in vb.net studio and it'll show how they behave).
Good luck (i'm in a vb.net class in college now, i still prefer c++ heh)
April 5th, 2005, 09:48 AM #3
Thanks a lot bfcx - I will try what you said when I get home. Yeah - I am using Studio 2003..
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By md300 in forum Applications and Operating SystemsReplies: 4Last Post: July 4th, 2004, 01:23 PM
By ClubMed in forum General Tech DiscussionReplies: 22Last Post: June 29th, 2004, 10:57 AM
By glover12 in forum Applications and Operating SystemsReplies: 5Last Post: June 11th, 2004, 09:40 AM
By Master Chief in forum General Tech DiscussionReplies: 4Last Post: March 8th, 2003, 09:50 PM
By jutah in forum Webmastering and ProgrammingReplies: 7Last Post: September 18th, 2002, 09:47 PM