Information générale
Catégorie:
Programmation Orientée Object
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement