hc_gupta
asked on
How to change type of UserControl to ContextMenuStrip?
Sir,
How to change System.Windows.Forms.UserC ontrol to System.Windows.Forms.Conte xtMenuStri p?
Thanks in advance
How to change System.Windows.Forms.UserC
Thanks in advance
ASKER
My user control name is UserControlCMS1 and on using above line i.e.
Dim cms As System.Windows.Forms.Conte xtMenuStri p = CType(UserControlCMS1, System.Windows.Forms.Conte xtMenuStri p)
I'm getting an error :
" Value of type UserControlCMS can not be converted to 'System.Windows.ContextMen uStrip' "
Dim cms As System.Windows.Forms.Conte
I'm getting an error :
" Value of type UserControlCMS can not be converted to 'System.Windows.ContextMen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window