Tuesday, August 25, 2009

Visual Basic

Shell function to call executable files from your application.In this function two arguments are accepted one is program name and other is window state of program (1- for normal mode ie: VbNormal ; VbMaximized,VbMinimized)

Private Sub Form_Load( )
Dim r as variant
r =Shell ("Calc.exe,1);
End Sub


AppActivate Statement


Send Keys

Values to submitted in sendkeys

Shift ------ +
Control ----- ^
Alt ------ %
Backspace ---- {BACKSPACE}
Break ---- {BREAK}
Caps ---- {CAPSLOCK}
Clear -------- {CLEAR}
Del --------- {DELETE}
DownArrow ---- {DOWN}
End ---- {END}
Enter -------- {ENTER}
Esc ---------- {ESCAPE}
Help --------- {HELP}
etc.................................

Five arguments for MessageBox

MessageBox(Message,style,heading,helpfile,helpcontextid);

No comments:

Post a Comment