How to apply a mouse click via code to a control?

  • Thread starter Thread starter Gary Kahrau
  • Start date Start date
G

Gary Kahrau

How do I programatically apply a click to a particular row and column
0 of a datagrid?

I want to do this in code as if the user did a mouse click on the
leftmost column.
 
Why not just place the code you have in the click event into a Subroutine or
Function? That way you could call the function from the click event and from
a mouse up event on the leftmost column.

I'm assuming you can code up mouse events on datagrids. I don't use data
grids so I could be wrong.
 
Half of that is what I was planning to do. I do plan to place the code
in a sub. However, I guess it is what you are used to. In the 4GL I
work with, applying a mouse click is common.
I will have to read up on selecting a datagrid row via code, then
calling the subroutine.
 
LOL! Too many hours at work! You should just iqnore me. After re-reading
your request I realized that I completely miss-understood you. I thought you
had a Button click enent that you wanted to clikc programatically. Sorry ...

To progamatically add a click you need to code an event and, as I stated
below, I don't know what events are available for datagrids.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top