473,388 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to capture right click ...

38
Hello ,

I'm doing project in vb 6 and i have a flex grid now i need to right click on the cell of a flexgrid and after right click it should open a msgbox .The problem is what should i write in flxgrid Click event in order to capture right click of the mouse button.
Please halp me with the code..

Thanks in anticipation...
Oct 18 '07 #1
9 2256
kadghar
1,295 Expert 1GB
Hello ,

I'm doing project in vb 6 and i have a flex grid now i need to right click on the cell of a flexgrid and after right click it should open a msgbox .The problem is what should i write in flxgrid Click event in order to capture right click of the mouse button.
Please halp me with the code..

Thanks in anticipation...
In the event mousedown and mouseup you'll have the parameter Button, so if its 1 its the left one, 2 is for the right one.

so just write in any of those events something like:

if button = 2 then msgbox("Hello world")

HTH
Oct 18 '07 #2
sumuka
38
In the event mousedown and mouseup you'll have the parameter Button, so if its 1 its the left one, 2 is for the right one.

so just write in any of those events something like:

if button = 2 then msgbox("Hello world")

HTH


Thanks 4 replying but im not using any buttons here im using a flexgrid and when the user right clicks on the cells of 3rd column it should open the msgbox.
how should i do this .

Regards,
Oct 19 '07 #3
sumuka
38
Thanks 4 replying but im not using any buttons here im using a flexgrid and when the user right clicks on the cells of 3rd column it should open the msgbox.
how should i do this .

Regards,

Thank You so much it 's working like anything..
It helped me a lot.
Thanks once again.
Oct 19 '07 #4
Killer42
8,435 Expert 8TB
Thanks 4 replying but im not using any buttons here im using a flexgrid and when the user right clicks on the cells of 3rd column it should open the msgbox.
:) Priceless!

That was "button" as in "mouse button". As in "right mouse button". Which is what you want to detect.

EDIT: Nuts! You were too quick for me. :(
Oct 19 '07 #5
kadghar
1,295 Expert 1GB
All that was too weird for me.

Im glad it helped.
Oct 19 '07 #6
sumuka
38
All that was too weird for me.

Im glad it helped.

Hello everyone,

I'm able to establish right click but now i need to achieve for left double click . The user has to left double click on the flex grid's cell and the msgbox is to be displayed .
So how can i do this.

Thanks in anticipation,
Oct 22 '07 #7
Killer42
8,435 Expert 8TB
I'm able to establish right click but now i need to achieve for left double click.
You should be able to just use the DoubleClick event.
Oct 22 '07 #8
sumuka
38
You should be able to just use the DoubleClick event.


Thanks a lot it's Working...
Thank you so much
Oct 23 '07 #9
Killer42
8,435 Expert 8TB
Thanks a lot it's Working...
Thank you so much
Glad we could help. :)
Oct 23 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Madestro | last post by:
Hi guys, I have a little problem. I have a class that uses Windows API to capture a snapshot of the screen. I have this class in a library that I include in my projects. When I try to use...
1
by: Sakharam Phapale | last post by:
Hi All, How to capture Mouse Single click and mouse double click event on Commnad Button. I am doing as follows. Private void Button1_MouseUp(Object sender,...
5
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
8
by: Ken Sturgeon | last post by:
I have a button inside a panel control. Apparently I can't expect VB to respond to the button's _Click event. How do I capture the click event? Thanks Ken
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
11
by: Randy | last post by:
I have a MonthCalendar on one of my forms. I have disovered that the DateChanged event is triggered not only when the user clicks on a new date, but also if they click on the Previous or Next...
3
by: dolittle | last post by:
Hi, I want to create a screen capture using java. I'm new to java and I'm overwhelmed by the so many terms: SE, EE, FX, Swing... I saw a nice product written in java that let you start the...
6
by: Don | last post by:
How can I capture the name of the file a user right clicks in the open file dialog using the common dialog box control? I can capture the name if a file is double clicked, or OPEN is clicked...
5
by: vasilis | last post by:
I have a list box in a site with which I capture a selected value with the onChange event using the capture_value() function (code listed below). This function passes 2 arguments, i.e., 'str' which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.