That's done behind the scenes by VB. You would see it explicitly in
C#.

On Dec 5, 1:44 pm, erik <[EMAIL PROTECTED]> wrote:
> Thank you.
> But nowhere in my program I have created an instance of Form1 like you
> did in your line "Dim f1 as New MyForm" . Still there should be one
> somewhere...Because my program works.
> I am confused: "public class Form1" only creates a class in my view.
> NOT an instance.
>
> On Dec 4, 7:00 pm, Cerebrus <[EMAIL PROTECTED]> wrote:
>
> > It's usually like this :
> > ---
> > Public Class Form1
> > Inherits System.Windows.Forms.Form
> > ---
>
> > So, Form1 is a class. You can name it anything you like...such as
> > "MyForm". And then you can create instances of this class :
>
> > ---
> > Dim f1 as New MyForm()
> > ---
> > That is an instance of MyForm.
>
> > On Dec 4, 4:34 pm, erik <[EMAIL PROTECTED]> wrote:
>
> > > in VB 2008 I write something like:
> > > public class Form1
> > > .
> > > .
> > > .
>
> > > end class
>
> > > Which is code related to the processing of a form.
> > > However: of a SPECIFIC form, namely Form1.
> > > Now: what is the meaning of the word class in VB ? aren't we talking
> > > about an INSTANCE of a class here , instead of a class ?

Reply via email to