Moved from VB6 to VS2005 and stumped on simple task

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kardon Coupé

    Moved from VB6 to VS2005 and stumped on simple task

    Dear All,

    I'm bemused, I'm moving an application I've written from VB6 into VS2005,
    and I'm getting all the fundamentals over before I delve into the hard part,
    like getting the forms layout etc....and the simple things, like the 'About'
    option, opens another form....

    Well here is the problem (which has me stumped)....

    My VB6 Application, I click 'About' and it opens a form, from that form,
    there is an 'ok' to close that form or 'information' which opens another
    form with 'information' on it...

    So I tried this in VS2005.....both forms get opened? but the code isn't
    telling it too?

    Form1 is the main form, Form3 is the About Box and Form2 is the Information
    Box, I choose About and Form2 and 3 open....even though the code is

    Form3.Show(), there is no reference to opening Form2, so why is form2
    deciding to open?

    I'm confused....

    Also, whilst I'm here, it is getting apparent, VS2005 is much more advanced
    that VB6, but on the flip side, so is the MSDN for it...Does anybody know of
    any sites that are for beginners for VS2005?

    Regards
    Paul.


  • David Glienna

    #2
    Re: Moved from VB6 to VS2005 and stumped on simple task

    Public Class Form1
    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Form2.ShowDialo g()
    End Sub
    End Class
    and then this

    Public Class Form2
    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Me.Close()
    End Sub
    End Class

    --
    David Glienna
    MVP - Visual Developer (Visual Basic)
    2006 thru 2008
    "Kardon Coupé" <prefer.to@read on.newsgroupswr ote in message
    news:u0FXiuWrIH A.1236@TK2MSFTN GP02.phx.gbl...
    Dear All,
    >
    I'm bemused, I'm moving an application I've written from VB6 into VS2005,
    and I'm getting all the fundamentals over before I delve into the hard
    part, like getting the forms layout etc....and the simple things, like the
    'About' option, opens another form....
    >
    Well here is the problem (which has me stumped)....
    >
    My VB6 Application, I click 'About' and it opens a form, from that form,
    there is an 'ok' to close that form or 'information' which opens another
    form with 'information' on it...
    >
    So I tried this in VS2005.....both forms get opened? but the code isn't
    telling it too?
    >
    Form1 is the main form, Form3 is the About Box and Form2 is the
    Information Box, I choose About and Form2 and 3 open....even though the
    code is
    >
    Form3.Show(), there is no reference to opening Form2, so why is form2
    deciding to open?
    >
    I'm confused....
    >
    Also, whilst I'm here, it is getting apparent, VS2005 is much more
    advanced that VB6, but on the flip side, so is the MSDN for it...Does
    anybody know of any sites that are for beginners for VS2005?
    >
    Regards
    Paul.
    >

    Comment

    • Michel Posseth  [MCP]

      #3
      Re: Moved from VB6 to VS2005 and stumped on simple task


      "Kardon Coupé" <prefer.to@read on.newsgroupssc hreef in bericht
      news:u0FXiuWrIH A.1236@TK2MSFTN GP02.phx.gbl...
      Dear All,
      >
      I'm bemused, I'm moving an application I've written from VB6 into VS2005,
      and I'm getting all the fundamentals over before I delve into the hard
      part, like getting the forms layout etc....and the simple things, like the
      'About' option, opens another form....
      >
      Well here is the problem (which has me stumped)....
      >
      My VB6 Application, I click 'About' and it opens a form, from that form,
      there is an 'ok' to close that form or 'information' which opens another
      form with 'information' on it...
      >
      So I tried this in VS2005.....both forms get opened? but the code isn't
      telling it too?
      >
      Form1 is the main form, Form3 is the About Box and Form2 is the
      Information Box, I choose About and Form2 and 3 open....even though the
      code is
      >
      Form3.Show(), there is no reference to opening Form2, so why is form2
      deciding to open?
      >
      I'm confused....
      >
      Also, whilst I'm here, it is getting apparent, VS2005 is much more
      advanced that VB6, but on the flip side, so is the MSDN for it...Does
      anybody know of any sites that are for beginners for VS2005?
      >
      Regards
      Paul.
      >

      If you are looking for good info as a VB6 developer Moving to VB.Net



      As a VB6 developer you might remember Francesco as the writer of
      "Programmin g Microsoft Visual basic 6" wich is considered "the" VB6
      reference
      with the .Net series Francesco is bringing these Core reference guides to
      ..Net and gives special attention to pre .Net VB coders


      HTH

      Michel Posseth [MCP]



      Comment

      • kimiraikkonen

        #4
        Re: Moved from VB6 to VS2005 and stumped on simple task

        On May 4, 12:47 pm, "Michel Posseth [MCP]" <M...@posseth.c omwrote:
        "Kardon Coupé" <prefer...@read on.newsgroupssc hreef in berichtnews:u0F XiuWrIHA.1236@T K2MSFTNGP02.phx .gbl...
        >
        >
        >
        Dear All,
        >
        I'm bemused, I'm moving an application I've written from VB6 into VS2005,
        and I'm getting all the fundamentals over before I delve into the hard
        part, like getting the forms layout etc....and the simple things, like the
        'About' option, opens another form....
        >
        Well here is the problem (which has me stumped)....
        >
        My VB6 Application, I click 'About' and it opens a form, from that form,
        there is an 'ok' to close that form or 'information' which opens another
        form with 'information' on it...
        >
        So I tried this in VS2005.....both forms get opened? but the code isn't
        telling it too?
        >
        Form1 is the main form, Form3 is the About Box and Form2 is the
        Information Box, I choose About and Form2 and 3 open....even though the
        code is
        >
        Form3.Show(), there is no reference to opening Form2, so why is form2
        deciding to open?
        >
        I'm confused....
        >
        Also, whilst I'm here, it is getting apparent, VS2005 is much more
        advanced that VB6, but on the flip side, so is the MSDN for it...Does
        anybody know of any sites that are for beginners for VS2005?
        >
        Regards
        Paul.
        >
        If you are looking for good info as a VB6 developer Moving to VB.Net
        >
        http://www.amazon.com/Programming-Mi...c-2005/dp/0735...
        >
        As a VB6 developer you might remember Francesco as the writer of
        "Programmin g Microsoft Visual basic 6" wich is considered "the" VB6
        reference
        with the .Net series Francesco is bringing these Core reference guides to
        .Net and gives special attention to pre .Net VB coders
        >
        HTH
        >
        Michel Posseth [MCP]
        Hi Michel,
        BTW, i have Balena's "Programmin g Visual Basic 2005: The Language"
        book but buyers should be aware of that book doesn't cover many high-
        level topics such as Windows Forms, ADO.NET, and ASP.NET, GD+,
        Remoting, Isolated Storage, Custom Controls, XML, Web Services, Socket
        Programming etc. which are all covered in 2003("Programmi ng Microsoft
        Visual Basic .NET 2003") version. It's great and valuable book for
        experienced programmers from the master Balena, and a revised version
        of 2003 without covering the topics described before. I wish there
        were all the topics that are included in 2003 version, it's a bit
        disappoinment when you think of learning these .NET-related
        technologies which are in interaction with VB.NET language.

        Thanks,

        Onur

        Comment

        • Tom Dacon

          #5
          Re: Moved from VB6 to VS2005 and stumped on simple task

          Kardon, I'd recommend a book by Dan Appleman called Moving to VB.NET:
          Strategies, Concepts, and Code, published by APress in 2001.

          Sure this is an old book, published when the very first release of VB.Net
          was coming out, but it was designed specifically for the VB6 programmer
          who's looking to start into the .Net framework. The framework library has
          been through a couple of updates since then - 1.0 to 1.1 to 2 to 3 to 3.5,
          but no fundamental changes in the philosophy of the framework or the
          language have occurred since it was published, and with the exception of
          changes to the Visual Studio IDE's user interface, most of the practices you
          go through in development remain the same.

          I was coming from VB6 myself, back in the day, and I found it to be a very
          useful resource. You'll most likely have good luck finding a used copy in
          something like Barnes and Noble's web site's (www.bn.com) used and
          out-of-print section. Once you've been through it, you'll be ready for more
          advanced texts.

          Tom Dacon
          Dacon Software Consulting


          "Kardon Coupé" <prefer.to@read on.newsgroupswr ote in message
          news:u0FXiuWrIH A.1236@TK2MSFTN GP02.phx.gbl...
          Dear All,
          >
          I'm bemused, I'm moving an application I've written from VB6 into VS2005,
          and I'm getting all the fundamentals over before I delve into the hard
          part, like getting the forms layout etc....and the simple things, like the
          'About' option, opens another form....
          >
          Well here is the problem (which has me stumped)....
          >
          My VB6 Application, I click 'About' and it opens a form, from that form,
          there is an 'ok' to close that form or 'information' which opens another
          form with 'information' on it...
          >
          So I tried this in VS2005.....both forms get opened? but the code isn't
          telling it too?
          >
          Form1 is the main form, Form3 is the About Box and Form2 is the
          Information Box, I choose About and Form2 and 3 open....even though the
          code is
          >
          Form3.Show(), there is no reference to opening Form2, so why is form2
          deciding to open?
          >
          I'm confused....
          >
          Also, whilst I'm here, it is getting apparent, VS2005 is much more
          advanced that VB6, but on the flip side, so is the MSDN for it...Does
          anybody know of any sites that are for beginners for VS2005?
          >
          Regards
          Paul.
          >

          Comment

          • Joergen Bech

            #6
            Re: Moved from VB6 to VS2005 and stumped on simple task

            On Sat, 3 May 2008 23:18:35 +0100, "Kardon Coupé"
            <prefer.to@read on.newsgroupswr ote:
            >Also, whilst I'm here, it is getting apparent, VS2005 is much more advanced
            >that VB6, but on the flip side, so is the MSDN for it...Does anybody know of
            >any sites that are for beginners for VS2005?
            Study these examples:

            Read the code. Anything you do not understand, look it up.
            ....
            Also, find a general reference on object-oriented programming,
            if this subject is new to you. You might have been able to avoid
            it in VB6, but there is no getting around it in .Net.
            ....
            Have a look at the requirements to become an MCSD in .Net,
            e.g. 70-306:

            ....
            I am sure you can find something of interest using this page as
            a starting point:
            Gain technical skills through documentation and training, earn certifications and connect with the community

            ....
            Finally, in addition to all the books that have been written
            on the subject over the years, you might find this site of use:

            More than 500 (short) videos covering a huge range of
            topics. At little more than $50 (the price of a single book) for
            one year's access to all the videos, this is a great resource
            if you are just getting started.

            /Joergen Bech



            Comment

            Working...