Regardless. If you look at the forms Left and Top Properties (which will
match the corresponding X,Y props of the form) it will say the coordiantes
you entered, although its not the actual coordinates of the form.
However, they obviously aren't there. My point being, if its the
StartPosition, then it should change the X,Y coords and not just draw the
form without modifying those properties.
2). Documentation could be better.
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:c250in$1pl1ok$(E-Mail Removed)...
> * "CJ Taylor" <(E-Mail Removed)> scripsit:
> > Alright found a bug in the framework I think...
>
> I don't think so.
>
> > 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...
>
> Are you sure the form's 'StartPosition' property is set to 'Manual'?
>
> --
> Herfried K. Wagner [MVP]
> <http://dotnet.mvps.org/>
|