-1
ContextMenuStrip의 모든 항목을 반복하고 싶습니다.VB.NET에서 ContextMenuStrip 항목을 반복하십시오.
누군가 나를 도와주세요.
나는이 시도했다, 그러나 그것은 작동하지 않았다
For Each it As ToolStripItem In Me.ContextMenuStrip1.Items
감사합니다!
ContextMenuStrip의 모든 항목을 반복하고 싶습니다.VB.NET에서 ContextMenuStrip 항목을 반복하십시오.
누군가 나를 도와주세요.
나는이 시도했다, 그러나 그것은 작동하지 않았다
For Each it As ToolStripItem In Me.ContextMenuStrip1.Items
감사합니다!
오류는 나에게 꽤 분명합니다. 루프가 끝나는 곳에 Next
이라는 단어를 추가하십시오.
For Each it As ToolStripItem In Me.ContextMenuStrip1.Items
'Loop Contents
Next
저에게 맞는 것처럼 보이지만 오류가 무엇입니까? –
LOL, 죄송합니다. 오류는 "다음 '을 추가합니다 :-) – tmighty