Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regular Expression Pin
subrata.jana4-Oct-06 23:24
subrata.jana4-Oct-06 23:24 
AnswerRe: Regular Expression Pin
User 66585-Oct-06 1:31
User 66585-Oct-06 1:31 
QuestionControlling Application Volume in C# Pin
Brett Nottingham4-Oct-06 16:15
Brett Nottingham4-Oct-06 16:15 
AnswerRe: Controlling Application Volume in C# [edit] Pin
Edbert P4-Oct-06 16:50
Edbert P4-Oct-06 16:50 
Questionreading network binary data from LEFT or RIGHT? Pin
mmatteson4-Oct-06 14:40
mmatteson4-Oct-06 14:40 
Questionparse error [modified] Pin
Naji.A4-Oct-06 13:11
Naji.A4-Oct-06 13:11 
AnswerRe: parse error Pin
Christian Graus4-Oct-06 14:14
protectorChristian Graus4-Oct-06 14:14 
Questionc# won't display sub menuitems Pin
tmaung4-Oct-06 11:05
tmaung4-Oct-06 11:05 
Can someone tell me what I am doing wrong with the following code? It is supposed to create a set of sub menu items, under "Plot RPM" menu item. It works the first time it is called. But if I call the code the second time, using the same set of parameters, I can't see any the sub menu items. But I can see an arrow that denotes the existence of sub menu items. If I display myMenu.MenuItems.Count, it returns the correct number of sub menu items. Stranger still is that if the number of sub menu items is 1, it is ok. Any help on this matter is greatly appreciated.


Thein

<pre>
MenuItem myMenu=null;
foreach (MenuItem myMenu1 in this.My_Context_Menu.MenuItems)
{
if (myMenu1.Text == "Plot RPM") // check for menu item
{
myMenu = myMenu1; // found, assign to temp menuitem
break; // exit loop
}
}

if (myMenu.Text == "Plot RPM") // double check just in case
{
myMenu.MenuItems.Clear(); // clear all define rpm source list
for (i=0; i<myNewMenuItemCount; i++) // add list
{
{
MenuItem myItem = new MenuItem((i+1).ToString() +" " + myMenuID[i]);
myMenu.MenuItems.Add(myItem);
}
}
}
</pre>

Thein
QuestionLoading user controls from filename... Pin
Kasic Slobodan4-Oct-06 11:02
Kasic Slobodan4-Oct-06 11:02 
AnswerRe: Loading user controls from filename... Pin
Andrei Ungureanu4-Oct-06 23:35
Andrei Ungureanu4-Oct-06 23:35 
GeneralRe: Loading user controls from filename... Pin
Kasic Slobodan5-Oct-06 2:29
Kasic Slobodan5-Oct-06 2:29 
QuestionHelp with Collections Pin
TheBlindWatchmaker4-Oct-06 10:40
TheBlindWatchmaker4-Oct-06 10:40 
AnswerRe: Help with Collections Pin
eggsovereasy4-Oct-06 10:49
eggsovereasy4-Oct-06 10:49 
GeneralPerfect! Thank you! Pin
TheBlindWatchmaker4-Oct-06 11:07
TheBlindWatchmaker4-Oct-06 11:07 
QuestionReferencing a textBox on a tabControl Pin
TCHamilton4-Oct-06 10:35
TCHamilton4-Oct-06 10:35 
AnswerRe: Referencing a textBox on a tabControl Pin
Edbert P4-Oct-06 16:59
Edbert P4-Oct-06 16:59 
GeneralRe: Referencing a textBox on a tabControl Pin
TCHamilton5-Oct-06 7:46
TCHamilton5-Oct-06 7:46 
GeneralRe: Referencing a textBox on a tabControl Pin
Edbert P5-Oct-06 13:01
Edbert P5-Oct-06 13:01 
Questionenlarging picture box Pin
rzvme4-Oct-06 9:20
rzvme4-Oct-06 9:20 
AnswerRe: enlarging picture box Pin
Christian Graus4-Oct-06 9:34
protectorChristian Graus4-Oct-06 9:34 
GeneralRe: enlarging picture box Pin
rzvme4-Oct-06 9:37
rzvme4-Oct-06 9:37 
QuestionRe: enlarging picture box Pin
rzvme4-Oct-06 23:42
rzvme4-Oct-06 23:42 
QuestionRemoting - interface vs proxy (soapsuds) Pin
Chuck Bevitt4-Oct-06 8:48
Chuck Bevitt4-Oct-06 8:48 
AnswerRe: Remoting - interface vs proxy (soapsuds) Pin
led mike4-Oct-06 10:17
led mike4-Oct-06 10:17 
Question3 state Button - weird behaviour Pin
seq-4-Oct-06 8:41
seq-4-Oct-06 8:41 

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.