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
|
| Author: :) Bob (: 04 Nov 2009 | Member Level: Gold | Rating:  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 2009 | Member Level: Diamond | Rating:  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
|