Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Focus?

Status
Not open for further replies.

savok

Technical User
Jan 11, 2001
303
AT
I have a grid, and when you click and select something on it a command button is enabled.

In form load the grid is loaded with data. For some reason after its loaded it executes the on click code and the command button is enabled. Why does it do that? when the grid wasnt actually clicked on? And what can I do to stop the command button from being enabled unless the grid is actually clicked on.

thank you.
 
yeah thats what i am probably going to do. thanks for the help :)

never thought vb could have this problem
 

In the VB documentation it says that you cannot have both the click and double click events for any control because the click event will intercept the double click event twice, i.e. a double click is interpreted as two single clicks.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top