?
Solved

Creating windows application

Posted on 2005-04-08
1
Medium Priority
?
173 Views
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

0
Comment
Question by:g46905
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 13737234
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
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

850 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