Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
AnswerRe: Please Check Pin
_Erik_24-Jan-11 3:43
_Erik_24-Jan-11 3:43 
Questioni want to solve this Pin
Nabawoka21-Jan-11 22:21
Nabawoka21-Jan-11 22:21 
AnswerRe: i want to solve this Pin
Richard MacCutchan21-Jan-11 22:35
mveRichard MacCutchan21-Jan-11 22:35 
GeneralRe: i want to solve this Pin
Nabawoka21-Jan-11 22:39
Nabawoka21-Jan-11 22:39 
AnswerRe: i want to solve this Pin
Nabawoka21-Jan-11 22:55
Nabawoka21-Jan-11 22:55 
GeneralRe: i want to solve this Pin
Estys21-Jan-11 23:00
Estys21-Jan-11 23:00 
GeneralRe: i want to solve this Pin
Nabawoka22-Jan-11 0:02
Nabawoka22-Jan-11 0:02 
AnswerRe: i want to solve this Pin
Estys22-Jan-11 0:30
Estys22-Jan-11 0:30 
GeneralRe: i want to solve this Pin
OriginalGriff22-Jan-11 0:41
mveOriginalGriff22-Jan-11 0:41 
GeneralRe: i want to solve this Pin
Dave Kreskowiak22-Jan-11 9:03
mveDave Kreskowiak22-Jan-11 9:03 
GeneralRe: i want to solve this Pin
Estys22-Jan-11 11:26
Estys22-Jan-11 11:26 
AnswerRe: i want to solve this Pin
Estys21-Jan-11 23:00
Estys21-Jan-11 23:00 
Questionhow to run a sever when the IIS runs? Pin
xaq69388826521-Jan-11 21:55
xaq69388826521-Jan-11 21:55 
AnswerRe: how to run a sever when the IIS runs? Pin
R. Giskard Reventlov21-Jan-11 22:12
R. Giskard Reventlov21-Jan-11 22:12 
QuestionMAPI Windows Live mail Pin
M Riaz Bashir21-Jan-11 20:31
M Riaz Bashir21-Jan-11 20:31 
AnswerRe: MAPI Windows Live mail Pin
dan!sh 21-Jan-11 22:00
professional dan!sh 21-Jan-11 22:00 
GeneralRe: MAPI Windows Live mail Pin
M Riaz Bashir21-Jan-11 22:40
M Riaz Bashir21-Jan-11 22:40 
Questionproblem with capturing images through webcam in win7 Pin
prasadbuddhika21-Jan-11 16:29
prasadbuddhika21-Jan-11 16:29 
AnswerRe: problem with capturing images through webcam in win7 Pin
Luc Pattyn21-Jan-11 17:13
sitebuilderLuc Pattyn21-Jan-11 17:13 
QuestionMDI form with contents? Pin
patr1c1a21-Jan-11 5:34
patr1c1a21-Jan-11 5:34 
AnswerRe: MDI form with contents? Pin
Dave Kreskowiak21-Jan-11 7:02
mveDave Kreskowiak21-Jan-11 7:02 
GeneralRe: MDI form with contents? [modified] Pin
patr1c1a21-Jan-11 7:52
patr1c1a21-Jan-11 7:52 
GeneralRe: MDI form with contents? Pin
Dave Kreskowiak21-Jan-11 10:29
mveDave Kreskowiak21-Jan-11 10:29 
AnswerRe: MDI form with contents? Pin
KarlRhodes24-Jan-11 6:22
KarlRhodes24-Jan-11 6:22 
QuestionCopying DropDownItems from one ToolStripDropDownItem to another Pin
Dewald21-Jan-11 2:24
Dewald21-Jan-11 2:24 
Hi all,

I have a ToolStripMenuItem in my MenuStrip. I've added a few ToolStripMenuItems as dropdown items at design time. Now I'd like to copy that list of dropdown items to a ToolStripDropDownButton at runtime but I seem to move the items from the ToolStripMenuItem to the ToolStripDropDownButton, not duplicate it.

Here is the code I'm using:
ToolStripItem[] newitems = new ToolStripItem[myToolStripMenuItem.DropDownItems.Count];
myToolStripMenuItem.DropDownItems.CopyTo(newitems, 0);
myToolStripDropDownButton.DropDownItems.AddRange(newitems);


But the problem is that as soon as the last line executes the DropDownItems collection for the ToolStripMenuItem becomes empty. Does anyone have advice for me? Thanks in advance.

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.