Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
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 
Questionhow can i make asynchronous calls to webmethods in webservices from aspx pages?how can i get its result? Pin
syamooo28-Jan-08 20:25
syamooo28-Jan-08 20:25 
AnswerRe: how can i make asynchronous calls to webmethods in webservices from aspx pages?how can i get its result? Pin
Mohan Kumar28-Jan-08 20:29
Mohan Kumar28-Jan-08 20:29 
GeneralRe: how can i make asynchronous calls to webmethods in webservices from aspx pages?how can i get its result? Pin
syamooo28-Jan-08 20:45
syamooo28-Jan-08 20:45 
Questionhow to get date,month and year from datetime format Pin
chithra.r28-Jan-08 19:27
chithra.r28-Jan-08 19:27 
AnswerRe: how to get date,month and year from datetime format Pin
pmarfleet28-Jan-08 19:45
pmarfleet28-Jan-08 19:45 
AnswerRe: how to get date,month and year from datetime format Pin
Nouman Bhatti28-Jan-08 20:28
Nouman Bhatti28-Jan-08 20:28 
QuestionTool tip in email messages Pin
M. J. Jaya Chitra28-Jan-08 19:23
M. J. Jaya Chitra28-Jan-08 19:23 
GeneralRe: Tool tip in email messages Pin
TJoe30-Jan-08 11:13
TJoe30-Jan-08 11:13 
Generalto get date, month, year from date seperately Pin
trilokharry28-Jan-08 19:16
trilokharry28-Jan-08 19:16 
GeneralCross post Pin
pmarfleet28-Jan-08 19:46
pmarfleet28-Jan-08 19:46 
GeneralRe: to get date, month, year from date seperately Pin
J a a n s28-Jan-08 20:18
professionalJ a a n s28-Jan-08 20:18 
GeneralRe: to get date, month, year from date seperately Pin
Nouman Bhatti28-Jan-08 20:47
Nouman Bhatti28-Jan-08 20:47 
QuestionWord.Comments colelction Pin
PS@Codeproj28-Jan-08 17:06
PS@Codeproj28-Jan-08 17:06 

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.