show new form

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

    #1

    show new form

    i was sure that in vb6 the syntax to open a form via a button was
    "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
    do anything. Any suggestions?

    Thanks!!!

  • Herfried K. Wagner [MVP]

    #2
    Re: show new form

    "jlab13" <johnlab13@gmai l.comschrieb:
    >i was sure that in vb6 the syntax to open a form via a button was
    "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
    do anything. Any suggestions?
    It should work in VS 2005.

    However, you can explicitly instantiate the form too:

    \\\
    Dim f As New FooForm()
    f.Show()
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • Chris Dunaway

      #3
      Re: show new form

      On Mar 7, 7:39 am, "jlab13" <johnla...@gmai l.comwrote:
      i was sure that in vb6 the syntax to open a form via a button was
      "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
      do anything. Any suggestions?
      Firstly, you must not approach your projects in VB.Net as you did with
      VB6. Even though they share the same name and a similar syntax,
      writing programs in VB.Net is very different from writing them in
      VB6. You must think of VB.net as a totally new language.

      Secondly, to show a form, you must first declare an instance of that
      form and then call show:

      Dim frm As New Form1
      frm.Show



      Comment

      • zacks@construction-imaging.com

        #4
        Re: show new form

        On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
        i was sure that in vb6 the syntax to open a form via a button was
        "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
        do anything. Any suggestions?
        >
        Thanks!!!
        The .Show method is the way to show a form in VS2005. You will need to
        post more of your code, there is something else you are not doing.

        Comment

        • jlab13

          #5
          Re: show new form

          On Mar 7, 9:08 am, z...@constructi on-imaging.com wrote:
          On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
          >
          i was sure that in vb6 the syntax to open a form via a button was
          "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
          do anything. Any suggestions?
          >
          Thanks!!!
          >
          The .Show method is the way to show a form in VS2005. You will need to
          post more of your code, there is something else you are not doing.
          Thanks to all. Got it goin now with these tips. Trying to fly through
          my VS book to learn changes from vb6 so pardon some of the dumb
          questions!

          Thanks again!

          Comment

          • aaron.kempf@gmail.com

            #6
            Re: show new form

            go back to vb6?

            shit just worked back then; now we're stuck with bloatware

            UNNECESSARY CHANGE IS NOT SEXY
            UNNECESSARY CHANGE IS NOT ALLOWED
            UNNECESSARY CHANGE IS NOT NECCESSARY



            On Mar 7, 5:39 am, "jlab13" <johnla...@gmai l.comwrote:
            i was sure that in vb6 the syntax to open a form via a button was
            "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
            do anything. Any suggestions?
            >
            Thanks!!!

            Comment

            • aaron.kempf@gmail.com

              #7
              Re: show new form

              Chris

              shut the fuck up and stop making excuses for Microsoft

              Microsoft killed the worlds most popular langauge

              they can fuck off and change it back to be more like vb6


              eat a mother fucking dick you goddamn NooB







              On Mar 7, 6:08 am, "Chris Dunaway" <dunaw...@gmail .comwrote:
              On Mar 7, 7:39 am, "jlab13" <johnla...@gmai l.comwrote:
              >
              i was sure that in vb6 the syntax to open a form via a button was
              "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
              do anything. Any suggestions?
              >
              Firstly, you must not approach your projects in VB.Net as you did with
              VB6. Even though they share the same name and a similar syntax,
              writing programs in VB.Net is very different from writing them in
              VB6. You must think of VB.net as a totally new language.
              >
              Secondly, to show a form, you must first declare an instance of that
              form and then call show:
              >
              Dim frm As New Form1
              frm.Show

              Comment

              • aaron.kempf@gmail.com

                #8
                Re: show new form

                hey bud I can tell you right now-- it's just not worth the effort

                vb6 works on every operating system; .net is bloatware

                -Aaron

                On Mar 7, 6:20 am, "jlab13" <johnla...@gmai l.comwrote:
                On Mar 7, 9:08 am, z...@constructi on-imaging.com wrote:
                >
                On Mar 7, 8:39 am, "jlab13" <johnla...@gmai l.comwrote:
                >
                i was sure that in vb6 the syntax to open a form via a button was
                "form.show" . I'm doing that in Vis Studio 2005 and it doesn't seem to
                do anything. Any suggestions?
                >
                Thanks!!!
                >
                The .Show method is the way to show a form in VS2005. You will need to
                post more of your code, there is something else you are not doing.
                >
                Thanks to all. Got it goin now with these tips. Trying to fly through
                my VS book to learn changes from vb6 so pardon some of the dumb
                questions!
                >
                Thanks again!

                Comment

                Working...