Connecting Tech Pros Worldwide Help | Site Map

how to open a new form automaticaly at runtime?

Newbie
 
Join Date: Oct 2009
Posts: 2
#1: 3 Weeks Ago
hi friends...

i am new to C#.net. how can i open a new form automatical in c#.net 2005.i have created one table which contain username and password.if i select one user and click ok button then the new form will open. if i want to add another new user to the table then the new form will automatically open for that particular user. please any one help me to make this one........

thank you
Faisal
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: 3 Weeks Ago

re: how to open a new form automaticaly at runtime?


First you make a new form. Then you show it.

Expand|Select|Wrap|Line Numbers
  1. Form bob = new Form();
  2. bob.show();
What is on that form and what you have it do with your database is up to you
Reply