
Form Load Method and CenterParent property
Hello Marcelo,
Q 1:
you have to do a reference to the Form (OOP).
Dim MiForm As New Form2
'No Modal
MiForm.Show()
'Modal
MiForm.ShowDialog()
I hope that helps,
--
Jorge Serrano Prez
Microsoft Visual Basic MVP 2002
Microsoft Beta Tester - Visual Studio .NET 2003
http://www.portalvb.com/
Responsable de la Comunidad de Desarrolladores de Microsoft Visual Basic
.NET en espa?ol
http://www.microsoft.com/latam/msdn/comunidad/comunidades/vbnet/
Quote:
> 1. I need to load a form, but not show it. In VB 6.0 I could use Load
Form1,
> for example. How can I do this with VB.NET?
> 2. I have a form in a MDI form.
> This doesn't work: Form1.StartPosition = FormStartPosition.CenterParent
> This works: Form1.StartPosition = FormStartPosition.CenterScreen
> Just can't figure it out.
> thanks,