|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ContextMenuStripHi,
I want to write a dynamic program to find ContextMenuStrip in the form, but I cannot find this control see the code below. How can I solve it? ------------------------------------------------ For i = 0 To Me.Controls.Count - 1 MessageBox.Show(CStr(Me.Controls(i).Name)) Next ------------------------------------------------ Thanks! the contextmenustrip is in the components collection and not the
controls. James Wong wrote: Show quoteHide quote > Hi, > > I want to write a dynamic program to find ContextMenuStrip in the form, > but I cannot find this control see the code below. > How can I solve it? > > ------------------------------------------------ > For i = 0 To Me.Controls.Count - 1 > MessageBox.Show(CStr(Me.Controls(i).Name)) > Next > ------------------------------------------------ > > Thanks! Hi James,
I have added a reply to you in microsoft.public.dotnet.framework.windowsforms.controls newsgroup, please check it there. Thanks! Best regards, Jeffrey Tan Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Mouse/Screen Image Status
Datagrids Counting rows in an SQL table how to launch media player and a selected file from within VB.Net app? Locking a Combo-Box asp.net template for user registration How do I make my computer unstupid? how do i compare two string and get the difference? Calling .Net DLL functions in Excel 2003 How to update application settings in vb.net code |
|||||||||||||||||||||||