Jump to content

Handling Usercontrol with menu items in C#

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Hammad Rasheed

Hammad Rasheed

    Newbie

  • Members
  • Pip
  • 2 posts
Hello Developers:

I am new in programming C#, i have a question about handling Usercontrol in win forms. i have started new project, in it i added a menu strip.

Menu have following List of Item:

  • New Member
  • Modify Member
  • Delete Member

i have add three usercontrol for each of menu items and named them:
  • NewMember_UserControl
  • ModifyMember_UserControl
  • DeleteMember_UserControl

Now what i want to do is: when i click on the New Member Menu Item, Usercontrol "NewMember_UserControl" display on the Main form's area below the menustrip.

Please help me in writing menu even handler for UserControl.

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
So something like, on item click create control?

You could either .show a control that's hidden on the form, or you could try this tutorial. http://forum.codecal...c-controls.html

If you need more help post back.
~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users