• Conversion Problem (VB.Net)

    Home » Forums » Developers, developers, developers » DevOps Lounge » Conversion Problem (VB.Net)

    Author
    Topic
    #406179

    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?

    Viewing 3 reply threads
    Author
    Replies
    • #867589

      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

    • #867590

      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

    • #867710

      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.

    • #867711

      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.

    Viewing 3 reply threads
    Reply To: Conversion Problem (VB.Net)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: