Opening Form

  • Thread starter Thread starter Niels
  • Start date Start date
N

Niels

Hello,

I have a (simple) question....

I made a solution with 2 forms (frmMain & frmInfo)
On frmMain I have a button hat has to open frmInfo...

everywhere I look the following code-sample appears:
Dim form1 As New Form
form1.Show()

But ofcourse I'm getting a blanc form...

Can anyone tell me how i can manage to open hat form???

Anyway Thanks
 
Niels,
everywhere I look the following code-sample appears:
Dim form1 As New Form

Form is a completly new Form

Probably the samples you want to use are something as
Dim form2 as New Form2
form2.Show()

That is a inherited form that is created when you open a form in your IDE

See for that the sentence
<Inherits System.Windows.Forms.Form>

In almost every created form

I hope this helps?

Cor
 
Thx... it worked fine (and soo easy)
-----Original Message-----
Niels,


Form is a completly new Form

Probably the samples you want to use are something as
Dim form2 as New Form2
form2.Show()

That is a inherited form that is created when you open a form in your IDE

See for that the sentence
<Inherits System.Windows.Forms.Form>

In almost every created form

I hope this helps?

Cor


.
 
* "Niels said:
I have a (simple) question....

I made a solution with 2 forms (frmMain & frmInfo)
On frmMain I have a button hat has to open frmInfo...

everywhere I look the following code-sample appears:
Dim form1 As New Form

sould read '... As New Form1()'.
form1.Show()

But ofcourse I'm getting a blanc form...

Because you instantiate the 'Form' class. They should have marked this
class as 'MustInherit', but this would have broken the designer
support...
 
Back
Top