VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 306,807 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,659 people online right now. Registration is fast and FREE... Join Now!




Resize Control

 

Resize Control

xPapeRCuTx

12 Feb, 2009 - 02:42 PM
Post #1

New D.I.C Head
*

Joined: 15 Jan, 2009
Posts: 38



Thanked: 1 times
My Contributions
I feel noob for asking this.

How do you get it so when you resize the form, the buttons move with the re sized form and they don't just disappear?

User is offlineProfile CardPM
+Quote Post


General Adamus

RE: Resize Control

12 Feb, 2009 - 02:47 PM
Post #2

D.I.C Head
**

Joined: 5 Feb, 2009
Posts: 110



Thanked: 9 times
My Contributions
Sprinkle some pixy dust on the monitor
User is offlineProfile CardPM
+Quote Post

xPapeRCuTx

RE: Resize Control

12 Feb, 2009 - 02:47 PM
Post #3

New D.I.C Head
*

Joined: 15 Jan, 2009
Posts: 38



Thanked: 1 times
My Contributions
lol ....
User is offlineProfile CardPM
+Quote Post

krum110487

RE: Resize Control

12 Feb, 2009 - 09:44 PM
Post #4

D.I.C Regular
***

Joined: 7 Feb, 2009
Posts: 265



Thanked: 33 times
My Contributions
CODE
Private Sub form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
button1.top = form1.bottom - button1.height - 10
button1.left = form1.width - button1.width - 10
    End Sub


this is very basic, but think of it like this...

the top of button one is at the "height" aka the bottom of the form1 but then move it up the height of the button and 10 extra to put the button at the bottom...

and I think you can figure the rest out!

try google next time, and good luck!
User is offlineProfile CardPM
+Quote Post

xPapeRCuTx

RE: Resize Control

13 Feb, 2009 - 05:32 AM
Post #5

New D.I.C Head
*

Joined: 15 Jan, 2009
Posts: 38



Thanked: 1 times
My Contributions
ahahaha, im so dumb...

Thanks sneaky2.gif
User is offlineProfile CardPM
+Quote Post

TEH

RE: Resize Control

15 Feb, 2009 - 10:58 PM
Post #6

D.I.C Head
Group Icon

Joined: 30 Jan, 2008
Posts: 72



Thanked: 5 times
Dream Kudos: 25
My Contributions
In the properties-window there is an Anchor-property, this is which makes that. It basicly "anchors", for example, button1 to edge of form, so when you resize form button moves with that edge, or if yo have anchor it to many edges it will be scaled.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/20/09 09:47PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month