Click here to Skip to main content
15,885,080 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Excel VBA - Directory Controls/Codes, File Names with Dates Pin
'Drew10-Aug-07 11:49
'Drew10-Aug-07 11:49 
AnswerRe: Excel VBA - Directory Controls/Codes, File Names with Dates Pin
Senthil S10-Aug-07 18:52
Senthil S10-Aug-07 18:52 
QuestionHow do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 7:49
Polymorpher10-Aug-07 7:49 
AnswerRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Dave Kreskowiak10-Aug-07 8:37
mveDave Kreskowiak10-Aug-07 8:37 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 8:38
Polymorpher10-Aug-07 8:38 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 9:31
Polymorpher10-Aug-07 9:31 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Dave Kreskowiak10-Aug-07 10:40
mveDave Kreskowiak10-Aug-07 10:40 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 10:47
Polymorpher10-Aug-07 10:47 
It is under a modual with my Sub Main. The only way I could make it work so far is to use

Private Sub mKeyLogger_KeyPressed(ByVal theKey As System.Windows.Forms.Keys, ByVal isDown As Boolean) Handles mKeyLogger.KeyPressed
If isDown Then
Dim f As Form = mFrmMain.ActiveMdiChild
If Not f Is Nothing Then
If TypeOf f Is IHandlesDirectInput Then
DirectCast(f, IHandlesDirectInput).HandleInput(theKey, isDown)
End If
End If
End If
End Sub

The problem with this is that it limits me to only MDI childre, and not a dialog that could be showing...I need the top level form or dialog at the time the key is pressed so that I can dispatch the key directly to that form or dialog and let it handle it.

--
"Keyboard not found. Press < F1 > to RESUME. "
Source unknown (appears in many common BIOSes as a real error message)

GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Dave Kreskowiak10-Aug-07 12:32
mveDave Kreskowiak10-Aug-07 12:32 
AnswerRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
nlarson1110-Aug-07 10:49
nlarson1110-Aug-07 10:49 
AnswerRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
nlarson1110-Aug-07 11:26
nlarson1110-Aug-07 11:26 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 12:09
Polymorpher10-Aug-07 12:09 
QuestionCompact and Repair Access Database. Pin
NANCO10-Aug-07 7:37
NANCO10-Aug-07 7:37 
AnswerRe: Compact and Repair Access Database. Pin
Kschuler10-Aug-07 8:14
Kschuler10-Aug-07 8:14 
QuestionChart In VB.Net 2003 Pin
ejaz_pk10-Aug-07 6:45
ejaz_pk10-Aug-07 6:45 
AnswerRe: Chart In VB.Net 2003 Pin
ohart10-Aug-07 7:43
ohart10-Aug-07 7:43 
QuestionRe: Chart In VB.Net 2003 Pin
ejaz_pk11-Aug-07 0:49
ejaz_pk11-Aug-07 0:49 
AnswerRe: Chart In VB.Net 2003 Pin
ohart13-Aug-07 5:26
ohart13-Aug-07 5:26 
QuestionInserting Data In SQL Database Pin
dreamerboy10-Aug-07 6:45
dreamerboy10-Aug-07 6:45 
AnswerRe: Inserting Data In SQL Database Pin
Kschuler10-Aug-07 8:04
Kschuler10-Aug-07 8:04 
AnswerRe: Inserting Data In SQL Database Pin
Vimalsoft(Pty) Ltd16-Aug-07 23:43
professionalVimalsoft(Pty) Ltd16-Aug-07 23:43 
QuestionCharacters other than english Pin
ejaz_pk10-Aug-07 6:40
ejaz_pk10-Aug-07 6:40 
AnswerRe: Characters other than english Pin
i gr810-Aug-07 20:19
i gr810-Aug-07 20:19 
QuestionVisual Basic Code Highlighting in Visual Studio 2003 Pin
Michaeljd10-Aug-07 6:37
Michaeljd10-Aug-07 6:37 
AnswerRe: Visual Basic Code Highlighting in Visual Studio 2003 Pin
Dave Kreskowiak10-Aug-07 6:58
mveDave Kreskowiak10-Aug-07 6:58 

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.