Click here to Skip to main content
15,894,630 members
Home / Discussions / C#
   

C#

 
AnswerRe: Monitor letter Drive (D:) Pin
stancrm11-Jan-07 19:53
stancrm11-Jan-07 19:53 
AnswerRe: Monitor letter Drive (D:) Pin
Nader Elshehabi11-Jan-07 21:37
Nader Elshehabi11-Jan-07 21:37 
QuestionAccessing Image from MS Access. [modified] Pin
Shaurya_Rastogi11-Jan-07 18:09
Shaurya_Rastogi11-Jan-07 18:09 
QuestionDataGrid Pin
swjam11-Jan-07 17:57
swjam11-Jan-07 17:57 
AnswerRe: DataGrid Pin
Nader Elshehabi11-Jan-07 21:48
Nader Elshehabi11-Jan-07 21:48 
Questionerror in storage.InsertRecords [modified] Pin
tahreen shah11-Jan-07 17:11
tahreen shah11-Jan-07 17:11 
QuestionWhen is a DropDownItem not a DropDownItem? [modified] Pin
JoeRip11-Jan-07 16:55
JoeRip11-Jan-07 16:55 
AnswerRe: When is a DropDownItem not a DropDownItem? Pin
JoeRip11-Jan-07 17:29
JoeRip11-Jan-07 17:29 
I get the idea people just wait to see how often I'll Reply to myself.

Here's the code I came up with to replace that one line of code. If anybody knows a better method - say, using a different Type than "ToolStripDropDownItem " in my foreach loop - please feel free to let me know.

private void miImport_DropDownOpening(object sender, EventArgs e)<br />
{<br />
  foreach (object item in miImport.DropDownItems)<br />
  {<br />
    Type typ = item.GetType();<br />
    if (typ == typeof(ToolStripMenuItem))<br />
    {<br />
       ToolStripMenuItem mi = (ToolStripMenuItem)item;<br />
       mi.Enabled = myFlag;<br />
    }<br />
  }<br />
}

AnswerRe: When is a DropDownItem not a DropDownItem? Pin
ChandruIT11-Jan-07 17:37
ChandruIT11-Jan-07 17:37 
GeneralRe: When is a DropDownItem not a DropDownItem? Pin
JoeRip11-Jan-07 18:25
JoeRip11-Jan-07 18:25 
QuestionPreview Type Window (Form) Pin
Nooie11-Jan-07 15:19
Nooie11-Jan-07 15:19 
Questiontopic for final year proj inj c# Pin
Mri1a11-Jan-07 12:56
Mri1a11-Jan-07 12:56 
AnswerRe: topic for final year proj inj c# Pin
Not Active11-Jan-07 14:42
mentorNot Active11-Jan-07 14:42 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt11-Jan-07 15:45
Stephen Hewitt11-Jan-07 15:45 
GeneralRe: topic for final year proj inj c# Pin
J4amieC11-Jan-07 22:28
J4amieC11-Jan-07 22:28 
GeneralRe: topic for final year proj inj c# Pin
Adam Crawford12-Jan-07 4:45
Adam Crawford12-Jan-07 4:45 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt14-Jan-07 12:11
Stephen Hewitt14-Jan-07 12:11 
GeneralRe: topic for final year proj inj c# Pin
ednrgc12-Jan-07 4:04
ednrgc12-Jan-07 4:04 
AnswerRe: topic for final year proj inj c# Pin
Christian Graus11-Jan-07 16:30
protectorChristian Graus11-Jan-07 16:30 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt11-Jan-07 17:19
Stephen Hewitt11-Jan-07 17:19 
GeneralRe: topic for final year proj inj c# Pin
Christian Graus11-Jan-07 17:45
protectorChristian Graus11-Jan-07 17:45 
GeneralRe: topic for final year proj inj c# Pin
ednrgc12-Jan-07 4:06
ednrgc12-Jan-07 4:06 
GeneralRe: topic for final year proj inj c# Pin
ednrgc12-Jan-07 4:08
ednrgc12-Jan-07 4:08 
AnswerRe: topic for final year proj inj c# Pin
PavanPareta11-Jan-07 17:48
PavanPareta11-Jan-07 17:48 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt11-Jan-07 18:05
Stephen Hewitt11-Jan-07 18:05 

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.