School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,158 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,052 people online right now. Registration is fast and FREE... Join Now!



Resize Control

Page 1 of 1

Resize Control Rate Topic: -----

#1 xPapeRCuTx  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 53
  • Joined: 15-January 09


Dream Kudos: 0

Posted 12 February 2009 - 02:42 PM

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?
Was This Post Helpful? 0
  • +
  • -


#2 General Adamus  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 110
  • Joined: 05-February 09


Dream Kudos: 0

Posted 12 February 2009 - 02:47 PM

Sprinkle some pixy dust on the monitor
Was This Post Helpful? 0
  • +
  • -

#3 xPapeRCuTx  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 53
  • Joined: 15-January 09


Dream Kudos: 0

Posted 12 February 2009 - 02:47 PM

lol ....
Was This Post Helpful? 0
  • +
  • -

#4 krum110487  Icon User is offline

  • D.I.C Regular
  • PipPipPip
  • Group: Members
  • Posts: 265
  • Joined: 07-February 09


Dream Kudos: 0

Posted 12 February 2009 - 09:44 PM

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!
Was This Post Helpful? 0
  • +
  • -

#5 xPapeRCuTx  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 53
  • Joined: 15-January 09


Dream Kudos: 0

Posted 13 February 2009 - 05:32 AM

ahahaha, im so dumb...

Thanks ^-^
Was This Post Helpful? 0
  • +
  • -

#6 TEH  Icon User is online

  • D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 93
  • Joined: 30-January 08


Dream Kudos: 75

Posted 15 February 2009 - 10:58 PM

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month