Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids ...
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00400922
Message ID:
00400947
Views:
15
>Hi All:
>
>I have a problem with a run-time created grid.
>
>How do i assign the right click method to a text box in the grid ?
>In the begining of the form the grid as -1 columns (because the content changes a lot!), as the grid is created , i make the new columns and assign controlsource's to the new grid columns.
>
>The problem is that i need (much) a right click event on the grid , but when i right click the grid , is always the text box right click event that is called and , of course , that one is empty !
>
>TIA

You could create a sub-classed textbox with the code required in the .RightClick event. You will need to programmatically add that textbox to a grid column and then set the .CurrentControl property to the newly added textbox.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform