Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    Escondido, California, USA
    Posts
    1,458
    Thanks
    0
    Thanked 1 Time in 1 Post

    Conversion Problem (VB.Net)

    I converted a VB 6.0 app to VB.net and most of it works OK. However, I find several comments warning that an event may fire when the form is initialized. The Help file says to add an IsInitializing property to the form and then set it to True in the form's constructor just prior to the InitializeComponent call. However, I don't find any IsInitializing property listed in the form's properties, and I don't find an InitializeComponent call anywhere in my converted code.

    I'm still a raw beginner with VB.Net, so I'm sure I must be missing something. Any suggestions as to how to implement this suggestion?

  2. #2
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Wellington, New Zealand
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conversion Problem (VB.Net)

    I would guess that the instructions you are referring to mean to add your OWN property to the form.

    Public Property IsInitiliasing ...

    Or something similar. Even just a module level variable would probably do the trick.

    Regards

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conversion Problem (VB.Net)

    You'll want to look in the automatically generated region to find the Initialize method. It's collapsed by default.

    Like Jayden suggests, you'll want to create your own Public Property IsInitializing. You can set it to true when the Initialize method fires, then false when it completes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •