Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and databases Pin
Star096-Feb-08 10:22
Star096-Feb-08 10:22 
GeneralRe: C# and databases Pin
Ravi Bhavnani6-Feb-08 11:03
professionalRavi Bhavnani6-Feb-08 11:03 
GeneralRe: C# and databases Pin
Vasudevan Deepak Kumar29-Jan-08 1:25
Vasudevan Deepak Kumar29-Jan-08 1:25 
GeneralRe: C# and databases Pin
cycnus29-Jan-08 20:05
cycnus29-Jan-08 20:05 
GeneralWorking With Excel Pin
umashankergr829-Jan-08 0:37
umashankergr829-Jan-08 0:37 
GeneralRe: Working With Excel Pin
Vasudevan Deepak Kumar29-Jan-08 1:30
Vasudevan Deepak Kumar29-Jan-08 1:30 
Generalsetup problem Pin
RajeevKumarSharma29-Jan-08 0:20
RajeevKumarSharma29-Jan-08 0:20 
AnswerRe: setup problem Pin
Vasudevan Deepak Kumar29-Jan-08 1:32
Vasudevan Deepak Kumar29-Jan-08 1:32 
GeneralRe: setup problem Pin
Praveen02929-Jan-08 17:08
Praveen02929-Jan-08 17:08 
GeneralListView management Pin
ilgale28-Jan-08 23:37
ilgale28-Jan-08 23:37 
GeneralRe: ListView management Pin
mav.northwind29-Jan-08 0:56
mav.northwind29-Jan-08 0:56 
GeneralKeyboard Input... Pin
Illegal Operation28-Jan-08 22:51
Illegal Operation28-Jan-08 22:51 
GeneralRe: Keyboard Input... Pin
J a a n s28-Jan-08 23:20
professionalJ a a n s28-Jan-08 23:20 
QuestionDirectory.GetLogicalDrives() Pin
Sunshine Always28-Jan-08 22:41
Sunshine Always28-Jan-08 22:41 
GeneralRe: Directory.GetLogicalDrives() Pin
J a a n s28-Jan-08 23:26
professionalJ a a n s28-Jan-08 23:26 
GeneralRe: Directory.GetLogicalDrives() Pin
Sunshine Always28-Jan-08 23:37
Sunshine Always28-Jan-08 23:37 
QuestionTimer intervals Pin
Derick Magagula28-Jan-08 21:58
Derick Magagula28-Jan-08 21:58 
GeneralRe: Timer intervals Pin
phannon8628-Jan-08 22:04
professionalphannon8628-Jan-08 22:04 
QuestionHow to make the scrollbar in a treeview to the start position? Pin
Seraph_summer28-Jan-08 21:29
Seraph_summer28-Jan-08 21:29 
AnswerRe: How to make the scrollbar in a treeview to the start position? Pin
J a a n s28-Jan-08 21:45
professionalJ a a n s28-Jan-08 21:45 
QuestionHow to Enable a parent menu from child class? Pin
DeepOceans28-Jan-08 20:59
DeepOceans28-Jan-08 20:59 
Hi,
I want to enable a menu, which is in main class, against any child class function but it is not activating.
Instead If I enable it against any button of main class it becomes enable.
as here udb-main is main class and from its button of start I open another form like:
private void bstart_Click(object sender, EventArgs e)<br />
{<br />
            <br />
            UserLogin uslog = new UserLogin();<br />
<br />
            uslog.Show();  <br />
}

Now in userlogin class login button I want to active main class activities menu against successful login.Here just relevant code is:
<br />
private void bLogin_Click(object sender, EventArgs e)<br />
 {<br />
 <br />
 DialogResult ds;<br />
ds = MessageBox.Show("   you are successfully login  ","Login Success", MessageBoxButtons.OKCancel);<br />
  if (ds == DialogResult.Cancel)<br />
       this.Close();<br />
   else if (ds == DialogResult.OK)<br />
   {<br />
  udb-main hmain=new udb-main();// Main class<br />
hmain.activitiesToolStripMenuItem.Enable=true;<br />
 hmain.hessloadfunc();<br />
this.Close();<br />
   }          <br />
           <br />
}<br />

plz tell me how I can enable/disable any control from another class.
Thanx.

Shanzay

AnswerRe: How to Enable a parent menu from child class? Pin
J a a n s28-Jan-08 21:26
professionalJ a a n s28-Jan-08 21:26 
GeneralRe: How to Enable a parent menu from child class? Pin
DeepOceans28-Jan-08 21:47
DeepOceans28-Jan-08 21:47 
AnswerRe: How to Enable a parent menu from child class? Pin
J a a n s28-Jan-08 23:05
professionalJ a a n s28-Jan-08 23:05 
GeneralRe: How to Enable a parent menu from child class?Finishing thread prob. Pin
DeepOceans30-Jan-08 22:09
DeepOceans30-Jan-08 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.