Click here to Skip to main content
15,891,184 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: can i retrieve the primary keys of a table? Pin
Nicholas Cardi16-Apr-05 5:07
Nicholas Cardi16-Apr-05 5:07 
GeneralRe: can i retrieve the primary keys of a table? Pin
sumit2116-Apr-05 17:16
sumit2116-Apr-05 17:16 
GeneralRead a MP3 Bite rate Pin
FastFriedMonkey15-Apr-05 6:07
FastFriedMonkey15-Apr-05 6:07 
GeneralRe: Read a MP3 Bite rate Pin
Anonymous16-Apr-05 11:37
Anonymous16-Apr-05 11:37 
GeneralDirectDraw in VB 6.0 Pin
timothyl15-Apr-05 6:03
timothyl15-Apr-05 6:03 
GeneralDynamically loaded controls Pin
Member 188578015-Apr-05 4:19
Member 188578015-Apr-05 4:19 
Generalrecording sound over .net Pin
goalzeze15-Apr-05 4:17
goalzeze15-Apr-05 4:17 
Generalshifting focus from datagrids Pin
Paps215-Apr-05 3:29
Paps215-Apr-05 3:29 
Hi,
I would like to use the F1 and F2 key to set the focus between 2 grids in the form.
Lets say the cursor focus is in DBgrid1, on hitting F1 I want the focus to shift to Dbgrid2.
And again on hiting F2 I want the focus to go back to DBgrid1.

Here is a piece of my code but wont work.
It does not give me an error mssg but wont fire.
If I change it to DbGrid2.Focus = True then I get an error mssg.

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.F2 Then
DBGrid2.Item(0, 0).Focus = True
'Dbgrid2.Focus = True
End If
End Sub



GeneralRe: shifting focus from datagrids Pin
Anonymous15-Apr-05 22:24
Anonymous15-Apr-05 22:24 
Questionhow to reload dataReader? Pin
Lisana15-Apr-05 2:25
Lisana15-Apr-05 2:25 
AnswerRe: how to reload dataReader? Pin
Dave Kreskowiak15-Apr-05 3:54
mveDave Kreskowiak15-Apr-05 3:54 
GeneralRe: how to reload dataReader? Pin
Lisana15-Apr-05 3:58
Lisana15-Apr-05 3:58 
GeneralRe: how to reload dataReader? Pin
Dave Kreskowiak15-Apr-05 4:20
mveDave Kreskowiak15-Apr-05 4:20 
GeneralRe: how to reload dataReader? Pin
Lisana15-Apr-05 4:30
Lisana15-Apr-05 4:30 
GeneralRe: how to reload dataReader? Pin
Dave Kreskowiak15-Apr-05 7:26
mveDave Kreskowiak15-Apr-05 7:26 
GeneralRe: how to reload dataReader? Pin
Lisana15-Apr-05 8:06
Lisana15-Apr-05 8:06 
QuestionHow to chage query at runtime Pin
Sheel Gohe15-Apr-05 2:01
Sheel Gohe15-Apr-05 2:01 
Questionhow to retrieve primary key of a database ? Pin
sumit2115-Apr-05 1:49
sumit2115-Apr-05 1:49 
GeneralToolbars with Icons/Images Pin
Errol Obrique14-Apr-05 23:58
Errol Obrique14-Apr-05 23:58 
GeneralRe: Toolbars with Icons/Images Pin
Jim Matthews15-Apr-05 2:57
Jim Matthews15-Apr-05 2:57 
GeneralWrite procedure description Pin
nitin_ion14-Apr-05 23:30
nitin_ion14-Apr-05 23:30 
GeneralRe: Write procedure description Pin
Dave Kreskowiak15-Apr-05 3:46
mveDave Kreskowiak15-Apr-05 3:46 
GeneralCrystal Report Help Pin
dpagka14-Apr-05 20:41
dpagka14-Apr-05 20:41 
GeneralRe: Crystal Report Help Pin
Jim Matthews15-Apr-05 2:50
Jim Matthews15-Apr-05 2:50 
General.dbf handler Pin
fuel2run14-Apr-05 20:32
fuel2run14-Apr-05 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.