Form Operations in VB.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max

    Form Operations in VB.NET

    I've done quiet a bit of VB programming using versions 5 and 6. Now I
    finally got my hands on .NET and all I can say is "I am soooo lost".
    Would appreciate it if you guys could help me out with some basic form
    operations. I've already figured out how to load new forms and do all of
    that, but now I have this problem...

    I have a form that starts the program. From there I have a button which
    creates a new form, shows it, and disables the first one. Now when the
    second form is closed I need to re-enable the first form. How do I go
    about doing that? While I'm at it, what else should I take a look at in
    regard to differences in form operations between VB6 and VB.NET? I'll
    probably run into some other problems later so it would be nice to know
    it ahead of time. Thanks for your help.
  • Auric__

    #2
    Re: Form Operations in VB.NET

    On Wed, 28 Apr 2004 22:25:51 -0400, Max wrote:
    [color=blue]
    >I've done quiet a bit of VB programming using versions 5 and 6. Now I
    >finally got my hands on .NET and all I can say is "I am soooo lost".
    >Would appreciate it if you guys could help me out with some basic form
    >operations. I've already figured out how to load new forms and do all of
    >that, but now I have this problem...
    >
    >I have a form that starts the program. From there I have a button which
    >creates a new form, shows it, and disables the first one. Now when the
    >second form is closed I need to re-enable the first form. How do I go
    >about doing that? While I'm at it, what else should I take a look at in
    >regard to differences in form operations between VB6 and VB.NET? I'll
    >probably run into some other problems later so it would be nice to know
    >it ahead of time. Thanks for your help.[/color]

    This is mostly a pre-.Net group; most regulars here are unwilling/unable
    to answer .Net questions. (I am at least as lost as you with VB.Net.)
    Ask your question here:
    news://microsoft.public.dotnet.languages.vb
    --
    auric "underscore " "underscore " "at" hotmail "dot" com
    *****
    And now, some new news.

    Comment

    • Max

      #3
      Re: Form Operations in VB.NET

      Auric__ wrote:
      [color=blue]
      >On Wed, 28 Apr 2004 22:25:51 -0400, Max wrote:
      >
      >
      >[color=green]
      >>I've done quiet a bit of VB programming using versions 5 and 6. Now I
      >>finally got my hands on .NET and all I can say is "I am soooo lost".
      >>Would appreciate it if you guys could help me out with some basic form
      >>operations. I've already figured out how to load new forms and do all of
      >>that, but now I have this problem...
      >>
      >>I have a form that starts the program. From there I have a button which
      >>creates a new form, shows it, and disables the first one. Now when the
      >>second form is closed I need to re-enable the first form. How do I go
      >>about doing that? While I'm at it, what else should I take a look at in
      >>regard to differences in form operations between VB6 and VB.NET? I'll
      >>probably run into some other problems later so it would be nice to know
      >>it ahead of time. Thanks for your help.
      >>
      >>[/color]
      >
      >This is mostly a pre-.Net group; most regulars here are unwilling/unable
      >to answer .Net questions. (I am at least as lost as you with VB.Net.)
      >Ask your question here:
      > news://microsoft.public.dotnet.languages.vb
      >
      >[/color]
      Thanks for the tip, will do.

      Comment

      • Niels

        #4
        Re: Form Operations in VB.NET

        I solved the problem by opening the second form as dialog, like this

        Private Sub button1_Click.. ......
        Dim Form2 As New form2
        Form2.ShowDialo g()
        End Sub

        When you exit the second form the first form will be enabled again
        like nothing happend

        Hope this helps



        Max <maximkh@yahoo. com> wrote in message news:<GImdnddr3 friwwzdRVn-vg@comcast.com> ...[color=blue]
        > Auric__ wrote:
        >[color=green]
        > >On Wed, 28 Apr 2004 22:25:51 -0400, Max wrote:
        > >
        > >
        > >[color=darkred]
        > >>I've done quiet a bit of VB programming using versions 5 and 6. Now I
        > >>finally got my hands on .NET and all I can say is "I am soooo lost".
        > >>Would appreciate it if you guys could help me out with some basic form
        > >>operations. I've already figured out how to load new forms and do all of
        > >>that, but now I have this problem...
        > >>
        > >>I have a form that starts the program. From there I have a button which
        > >>creates a new form, shows it, and disables the first one. Now when the
        > >>second form is closed I need to re-enable the first form. How do I go
        > >>about doing that? While I'm at it, what else should I take a look at in
        > >>regard to differences in form operations between VB6 and VB.NET? I'll
        > >>probably run into some other problems later so it would be nice to know
        > >>it ahead of time. Thanks for your help.
        > >>
        > >>[/color]
        > >
        > >This is mostly a pre-.Net group; most regulars here are unwilling/unable
        > >to answer .Net questions. (I am at least as lost as you with VB.Net.)
        > >Ask your question here:
        > > news://microsoft.public.dotnet.languages.vb
        > >
        > >[/color]
        > Thanks for the tip, will do.[/color]

        Comment

        Working...