943,844 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 566
  • C++ RSS
Oct 8th, 2008
0

RightClick Menus

Expand Post »
How is it possible to get a menu where you rightclick on the Form ?
I am not sure if this is the contextmenu. I tried to add this to the Form and also some
components to it but that did however not work.
Reputation Points: 10
Solved Threads: 1
Posting Pro
Jennifer84 is offline Offline
563 posts
since Feb 2008
Oct 8th, 2008
1

Re: RightClick Menus

I don't want to sound mean, but you should try a different method of study, or perhaps consider that you may not be suited to programming. I've watched you ask questions for months without making any progress at all, and it's kind of depressing.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Oct 8th, 2008
0

Re: RightClick Menus

Narue, I have to answer you well here because this is also not your first time you write this to me.
First I respect what you say, I dont want to be mean either. I begun programming in January this year without knowing anything and until this date I have coded the program that I am doing and it is going great. So far I have coded over 800 A4 pages and almost 500of these pages is an interpreter where you can code yourself in that program. This is not easy to do as you know.
This whole solution has a base built up on 3D vectors that you should have noticed also that I have asked some questions about ?
Consider that I have asked few A4 pages about this, Yes.
And from that very thankful help I have myself been taken this information and myself created 500 A4 pages. Look at my posts, there is a gap between 30 Jul - 31 Aug. Here I did 300 pages without help.
The Interpreter speed is 10 times faster than worldleading programs that I am on my way to beat in other functions. That is deep thinking.
So understand me right. You are wrong when you say that I am not suited to programming.
It is not only knowing how to do all the Toolbox functions but very much how you actually do the solutions. I get one help and I do 100 of things with that help. Trust me on that.
Anyway I dont meen anything bad with this and I do appriciate the help that I´ve got from before very much. Without that I would never come this far !!



Click to Expand / Collapse  Quote originally posted by Narue ...
I don't want to sound mean, but you should try a different method of study, or perhaps consider that you may not be suited to programming. I've watched you ask questions for months without making any progress at all, and it's kind of depressing.
Last edited by Jennifer84; Oct 8th, 2008 at 5:34 pm.
Reputation Points: 10
Solved Threads: 1
Posting Pro
Jennifer84 is offline Offline
563 posts
since Feb 2008
Oct 8th, 2008
0

Re: RightClick Menus

Jennifer,

If you still need an answer on this, here it is:

Add a ContextMenuStrip to the form and put some elements in it, then add an event handler for the "MouseDown" event, and add the following code:
C++ Syntax (Toggle Plain Text)
  1. if (e->Button == System::Windows::Forms::MouseButtons::Right)
  2. {
  3. contextMenuStrip1->Show(e->X, e->Y);
  4. }
That should pop the menu when you right-click on the form.
Reputation Points: 57
Solved Threads: 64
Posting Whiz in Training
mcriscolo is offline Offline
218 posts
since Apr 2008
Oct 8th, 2008
0

Re: RightClick Menus

Thanks, mcriscolo, I think I could have found a solution also by adding Items and choosing "contextMenuStrip1" on the Form properties. I will check your method out also.
/j
Last edited by Jennifer84; Oct 8th, 2008 at 8:07 pm.
Reputation Points: 10
Solved Threads: 1
Posting Pro
Jennifer84 is offline Offline
563 posts
since Feb 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Homework Help $$ in return
Next Thread in C++ Forum Timeline: strings and pointers





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC