C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Windows »

Open a two winform simultaneously


Posted Date: 04 Nov 2009      Posted By: SuganyaCMR      Member Level: Gold     Points: 1   Responses: 2



Hi,

we develop an windows application. .exe also created. if any person install the exe at first. database also created newly. at first its an empty DB, at that time , while i run that application, (i have 2 forms in that application Form1, form2) . both the form must run, but form1 is in disable state and form2 is in enable state. after i give the DB connection in form2. form1 is enable.

giva a sample for that

Regards,
Suganya

In order to succeed, you must first be willing to fail!
Rate my post!.If u found useful





Responses

Author: :) Bob (:    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hai

try this...

On the form load of first form give a checking for connection and if connection is failed trigger this code

Form2 obj = new Form2();
obj.Show();
this.Enabled = false;



Author: Anil Kumar Pandey    05 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

hi,

you can show as many form as possible..
make the first one as Disable and the other as Enable as u enter values.. hide that and enable the other one..


Form1 obj1 = new Form1();
Form2 obj2 = new Form2();
obj1.Show();
obj1.Enabled = false;
obj2.Show();


Thanks & Regards
Anil Kumar Pandey



Post Reply
You must Sign In to post a response.
Next : setup for windows application that usesAsp.net2005&SQLSERVER2005
Previous : System.IO; Ecception?
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use