Archive for the ‘Windows.Net’ Category

Create Shortcut on Desktop From Setup Wizard VS2008

This item was filled under [ Windows.Net ]

Iin Visual Studio you view the “File System” window when you right click the setup project from the solution explorer and select View -> File System.
The opened window has 2 panes.
The one on the left lists the folders that you can use for installation: Application folder, User’s Desktop, User’s Programs Menu (You might already know all that [...]

Continue reading...

Close Login Form and Open Another/Main Form

This item was filled under [ Windows.Net ]

In Program.cs keep Login as starting form
Application.Run(new LoginForm());
In Login Form Put the following code ….
Step 1:  using System.Threading;
Step 2: Put the Code in Valid Login Section
private void btnLogin_Click(object sender, System.EventArgs e)
{
// On Valid Login
this.Close();
Thread th = new Thread(new ThreadStart(myForm));
th.Start();
}
Step 3: Create the Function to open the next form
//
private void myForm()
{
Form2 f  = new Form2();
f.ShowDialog();
}
Reference : [...]

Continue reading...