timebomb99 (12-22-2009)
when u maximize the form everything maximizes
Instead of it all staying in the same place, Everything maximizes..
Ok & one more thing.
How do i make a button that can set your own links
Instead of me puting the website in.
I want to make the user be able to put it in.
CAn this be done?
Thanks
acid_bURn
Last edited by ac1d_buRn; 10-26-2009 at 03:06 AM.
timebomb99 (12-22-2009)
You need to dock your stuff in your form, just go to dock in the list.
Press the location where you want it always to be (in the form).
And then when you maximize everything will move to its place.
And for the button & link:
Make a textbox (textbox1), and double click the button,
now write in the button:
This is what you where asking right?Code:Process.Start(TextBox1.Text)
make a timer, and in it, put:
and for the other thing, make a txtbox, then to the left a label saying "https://", then the following code for the button:Code:If Form1.WindowState = Window.Maxamize Then Form2.WindowState = Window.Maxamize Form3.etc form4.etc End If
the same as mentioned above, but the label makes it less confusing on wether or not to add the https://Code:Process.Start(Str(Textbox1.Text))
Posts:
10 posts []
50 posts []
100 posts []
500 posts []
Thanks:
5 thanks []
10 thanks []
100 thanks []
Profile:
Make a signature []
Set a profile picture []
Hacks:
Download and use a hack []
Get a virus []
... or two... []
Release my own hacks []
Theirs 2 ways that come to my mind and the easiest, but ugliest way is just docking them through the properties page. (Not gonna say anything else about this.)
The second more controllable way is by giving a button a certain distance from another button and that button has a certain distance from the form border.
so if U resize the form the button follows the border and the other button follows the button.
Example:
Needed:
- A form (Mr. Obvious in the house o_o)
- 2 Buttons
Code:
Extra:Code:Dim X1 As Integer Dim Y1 As Integer Dim X2 As Integer Dim Y2 As Integer Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize X1 = ((Val(Me.Size.Width) / 2) - (Val(Button1.Size.Width) / 2)) Y1 = ((Val(Me.Size.Height) / 2)) - (Val(Button1.Size.Height / 2)) X2 = Val(Button1.Location.X) Y2 = Val(Button1.Location.Y) + Val(Button2.Size.Height) Button1.Location = New System.Drawing.Point(X1, Y1) Button2.Location = New System.Drawing.Point(X2, Y2) End Sub
It's certainly not perfect or efficient but it's the best controllable way I know of.