Creating windows application

Posted on 2005-04-08
Last Modified: 2011-09-20
I am creating a windows application using .NET and new to this programming.

        I am working on a Stand alone application. I created a form which has got five buttons
1.Add a User
2.Add a Project.
3. Assign the project to a User.
4.Assign the User to a Project.
When I click on option '1'
A new page should open asking for additional information.

For example:

User Name :
Project name :

Can we have multiple forms in a single project.Also, Please suggest me what you would do to achieve this?

Thanks for your help

Question by:g46905
    1 Comment
    LVL 85

    Accepted Solution

    You can have as many forms as you want...

    Click on Project --> Add Windows Form and click on "Open" to keep the default form name which in your case would be "Form2".

    Then you can use code like this to create an instance of Form2 and show it:

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim f2 As New Form2
            f2.ShowDialog() ' code executions stops here until f2 is closed

            ' if you need to get data off the form...
            Dim UserName As String = f2.TextBox1.Text
            Dim ProjectName As String = f2.TextBox2.Text
        End Sub

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    Linq Query Add new object array 10 43 euclidean math 2 26
    Visual Studio 2013 Publish 13 30
    DataGridView 2 6
    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now