C
CJ Taylor
Alright found a bug in the framework I think...
Someone try this...
Build 2 forms.
In form one, add a button that will open form 2.
so
Public Class Form1
inherits System.Windows.Forms.Form
...
private sub onButtonClick (sender as object, e as system.eventargs) handles
button1.click
dim f2 as new Form2
f2.Location = new Point(250,250)
f2.Showdialog()
end sub
end class
on form 2... add a label
on your load event, add this
me.mylabel.text = string.format ("X Coord: {0} Y Coord: {1}")
your coords will say 250,250, however, you will be able tosee your probably
not at 250, 250...
However, if you set the location on the form load, it will work. So
something in Load resets the value of the location... at least this is what
I've been dealing with...
Anywone else experience this?
-CJ
Someone try this...
Build 2 forms.
In form one, add a button that will open form 2.
so
Public Class Form1
inherits System.Windows.Forms.Form
...
private sub onButtonClick (sender as object, e as system.eventargs) handles
button1.click
dim f2 as new Form2
f2.Location = new Point(250,250)
f2.Showdialog()
end sub
end class
on form 2... add a label
on your load event, add this
me.mylabel.text = string.format ("X Coord: {0} Y Coord: {1}")
your coords will say 250,250, however, you will be able tosee your probably
not at 250, 250...
However, if you set the location on the form load, it will work. So
something in Load resets the value of the location... at least this is what
I've been dealing with...
Anywone else experience this?
-CJ