I am using VB 2008, Vista Home Ed...need to use 2 forms in the same program...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poijoy
    New Member
    • Apr 2010
    • 5

    #1

    I am using VB 2008, Vista Home Ed...need to use 2 forms in the same program...

    I need to use two forms in one program for another school project. The textbook is annoyingly vague as to how to do this.

    It states that I should use the line

    Dim secondForm as New Form2()

    but it doesn't say anything enlightening after that.

    The program is a supposed to get information about travel expenses, sum it up, and display the information in a separate window in a listbox. I get how to add items to a list box. I get how to do the calculations. I even get how to call sub procedures and functions. What I don't understand is how to do this all in more than one form within the same program. I also do not understand where in the first form I am supposed to put the above line of code.

    Any ideas?

    poijoy
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Bytes has a policy regarding assisting students with their homework.

    The short version is that the volunteers here can't help you with schoolwork.
    A) We don't know what material you have and have not learned in class.
    B) We don't know the guidelines you must follow.
    C) In the long run giving you the answers actually short changes your education.

    Hint 1: Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events" or "VB datagrid Excel". I've found this to be a very effective tool.
    Hint 2: Your text book
    Hint 3: Your instructor
    Hint 4: Posting guidelines regarding homework assignments.

    Comment

    Working...