Results 1 to 4 of 4

Thread: ContextMenu (SOLVED)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98

    ContextMenu (SOLVED)

    Hi,

    I have a form with a textbox and a button
    When I click the button, a contextmenu pops up.
    this menu has 4 items ("car, "bike", "plane", "ship")
    When the user clicks on one of those items, I would like the text of this item to be displayed in the textbox.

    How do I do this ??
    Last edited by R@emdonck; Dec 31st, 2002 at 09:11 AM.

  2. #2
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    You have to create an instance of the ContextMenu class, populate the necessary properties and then assign it to the ContextMenu property of the form.
    If you using VS.NET do a search on "ContextMenu", the first item will be "Adding Context Menus to windows forms" and you will have all the necessary instructions to do what you're looking for.

    Happy New Year
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    is this what you're talking about ?
    Attached Files Attached Files

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98

    Solved

    I solved my problem with an inherits from contextmenu

    Thanks for the effort

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width