Click here to Skip to main content
15,912,082 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: problem with assignment Pin
Dinesh Vitharana4-May-09 23:19
Dinesh Vitharana4-May-09 23:19 
GeneralRe: problem with assignment Pin
Christian Graus5-May-09 12:17
protectorChristian Graus5-May-09 12:17 
GeneralRe: problem with assignment Pin
_Damian S_5-May-09 15:05
professional_Damian S_5-May-09 15:05 
QuestionAn existing connection was forcibly closed by the remote host? [modified] Pin
AliAmjad4-May-09 18:43
AliAmjad4-May-09 18:43 
AnswerRe: An existing connection was forcibly closed by the remote host? Pin
Dinesh Vitharana4-May-09 23:06
Dinesh Vitharana4-May-09 23:06 
AnswerRe: An existing connection was forcibly closed by the remote host? Pin
daveice19-Oct-09 2:28
daveice19-Oct-09 2:28 
QuestionVisual Basic 2008 Express: Sendkeys Pin
helen004-May-09 16:46
helen004-May-09 16:46 
AnswerRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak4-May-09 17:21
mveDave Kreskowiak4-May-09 17:21 
helen00 wrote:
My.Computer.Keyboard.SendKeys("%( )X", True) 'ALT+SPACEBAR to restore minimize window


I'd avoid using SendKeys altogether. It's a bad method for controlling another application since the input focus can change to any window at ANY time. This includes the time between your call to SetForegroundWindow and the call to SendKeys.

Alt-Space, X closes the current window. It does not "restore minimize window".

helen00 wrote:
the notepad window stops at ALT+TAB


Your code doesn't mention anything about Alt-Tab.


Your should be using .NET classes and methods to do this. The Process class makes it a lot easier and you don't have to PInvoke any Win32 functions to do it.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
helen004-May-09 18:08
helen004-May-09 18:08 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Christian Graus4-May-09 19:51
protectorChristian Graus4-May-09 19:51 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak5-May-09 3:24
mveDave Kreskowiak5-May-09 3:24 
QuestionConstructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:30
professionalAlaric_4-May-09 10:30 
AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
MidwestLimey4-May-09 10:39
professionalMidwestLimey4-May-09 10:39 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 11:30
professionalAlaric_4-May-09 11:30 
AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) [modified] Pin
Alaric_4-May-09 10:52
professionalAlaric_4-May-09 10:52 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:57
professionalAlaric_4-May-09 10:57 
Questionif statement.... Pin
Jamal Abdul Nasir4-May-09 9:55
Jamal Abdul Nasir4-May-09 9:55 
AnswerRe: if statement.... Pin
MidwestLimey4-May-09 10:05
professionalMidwestLimey4-May-09 10:05 
AnswerRe: if statement.... Pin
Dalek Dave4-May-09 10:25
professionalDalek Dave4-May-09 10:25 
GeneralRe: if statement.... Pin
Andy Missico4-May-09 14:57
Andy Missico4-May-09 14:57 
AnswerRe: if statement.... Pin
Tiyani Miyambo4-May-09 22:42
Tiyani Miyambo4-May-09 22:42 
GeneralRe: if statement.... Pin
Christian Graus4-May-09 22:46
protectorChristian Graus4-May-09 22:46 
GeneralRe: if statement.... Pin
Dave Kreskowiak5-May-09 3:20
mveDave Kreskowiak5-May-09 3:20 
Questionsourcecode download Pin
Vb200914-May-09 5:05
Vb200914-May-09 5:05 
AnswerRe: sourcecode download Pin
Tom Deketelaere4-May-09 5:16
professionalTom Deketelaere4-May-09 5:16 

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.