General information
Title:
Difference between a functionkey and a pushbutton
On my form everything is disabled and it holds a datagrid, keypreview is true.
When I press a functionkey the datagrid has to be enabled, the current row has to be highlighted and when I press the down arrow key I have to scroll in the grid.
This code written under the functionkey doesn’t work, when I put the same code under a pushbutton it works.
Code:
With dgdgrid
.Enabled = True
.MarqueeStyle = 3
.SetFocus
End With
Can someone please tell me why it doesn’t work under a functionkey and what the solution is?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only