
visible=true/Form.Show makes Form.Location change!
Hi, you need to set the StartupPosition property of your form to Manual.
--
Happy to help,
-- Tom Spink
Please respond to the newsgroup,
so all can benefit.
One Day,
Quote:
> Hi all!
> I do the following in my program:
> -make a new form programmatically with the visible property set to false
> -set the location of the form
> -do some other stuff
> -set the visible property to true when user clicks a menu button
> When I set Form.Visible=true, the placement is suddenly changed!
> Why is that happening?
> The only workaround I've found so far, is to make the form visible, set
the
> placement, and then hide the form.
> This is not a very good solution since the form splashes once on the
screen
> when it is created.
> Anyone who knows what is causing this?
> Is it a bug??
> Thanks in advance!
> -Nils Magne Lunde