Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Basic differences Pin
Dan Morris2-Feb-04 2:38
Dan Morris2-Feb-04 2:38 
GeneralRe: Basic differences Pin
Edbert P2-Feb-04 19:35
Edbert P2-Feb-04 19:35 
GeneralRe: Basic differences Pin
RichardGrimmer3-Feb-04 2:18
RichardGrimmer3-Feb-04 2:18 
GeneralRe: Basic differences Pin
Steve S9-Feb-04 7:22
Steve S9-Feb-04 7:22 
QuestionHow to open a file Pin
M_M_G31-Jan-04 5:04
sussM_M_G31-Jan-04 5:04 
AnswerRe: How to open a file Pin
Matthew Hazlett31-Jan-04 10:38
Matthew Hazlett31-Jan-04 10:38 
GeneralRe: How to open a file Pin
M_M_G1-Feb-04 1:38
sussM_M_G1-Feb-04 1:38 
GeneralRe: How to open a file Pin
RichardGrimmer4-Feb-04 0:38
RichardGrimmer4-Feb-04 0:38 
I always use ShellExecute:

<br />
'ShellExecute<br />
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _<br />
            (ByVal hwnd As Long, ByVal lpOperation As String, _<br />
            ByVal lpFile As String, ByVal lpParameters As String, _<br />
            ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long<br />
<br />
Public Const SW_NORMAL = 1         ' Displays the window normalised<br />
Public Const SW_SHOWMINIMIZED = 2  ' Displays the window minimised<br />
Public Const SW_SHOWMAXIMIZED = 3  ' Displays the window maximised<br />
Public Const SW_SHOWNOACTIVATE = 4 ' Displays the window normalised without focus<br />
Public Const SW_SHOW = 5           ' Activates a window at its current size<br />
Public Const SW_SHOWNA = 8         ' Displays the window at its current size without focus<br />
Public Const SW_SHOWDEFAULT = 10   ' Displays the window at its default size<br />
<br />
ShellExecute Me.hwnd, "Open", m_strFilename, "", "", SW_SHOWMAXIMIZED<br />


That should do everything you need!

"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
GeneralRe: How to open a file Pin
M_M_G4-Feb-04 5:44
sussM_M_G4-Feb-04 5:44 
GeneralRe: How to open a file Pin
RichardGrimmer4-Feb-04 5:52
RichardGrimmer4-Feb-04 5:52 
GeneralRe: How to open a file Pin
M_M_G4-Feb-04 6:09
sussM_M_G4-Feb-04 6:09 
GeneralRe: How to open a file Pin
Steve S9-Feb-04 7:21
Steve S9-Feb-04 7:21 
Generalicons, opening files, loading with forms Pin
Namboy8231-Jan-04 0:17
Namboy8231-Jan-04 0:17 
GeneralRe: icons, opening files, loading with forms Pin
Matthew Hazlett31-Jan-04 10:33
Matthew Hazlett31-Jan-04 10:33 
GeneralHelp Required Pin
Tahir Khaliq31-Jan-04 0:13
sussTahir Khaliq31-Jan-04 0:13 
Questionhow to add update delete records in datagrid of vb.net Pin
ghoshamit30-Jan-04 23:17
ghoshamit30-Jan-04 23:17 
QuestionWhich control should I use. Part2? Pin
rgoyal30-Jan-04 21:17
rgoyal30-Jan-04 21:17 
QuestionWhich control should I use? Pin
rgoyal30-Jan-04 21:04
rgoyal30-Jan-04 21:04 
QuestionHow to make SetUP,,,Please dont UPSet me Pin
Het210930-Jan-04 18:37
Het210930-Jan-04 18:37 
AnswerRe: How to make SetUP,,,Please dont UPSet me Pin
Colin Angus Mackay31-Jan-04 4:27
Colin Angus Mackay31-Jan-04 4:27 
AnswerRe: How to make SetUP,,,Please dont UPSet me Pin
krluke6-Feb-04 19:26
krluke6-Feb-04 19:26 
GeneralDate format Pin
Lim Goh Tong30-Jan-04 15:11
Lim Goh Tong30-Jan-04 15:11 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo30-Jan-04 12:27
kimsangwoo30-Jan-04 12:27 
QuestionHow do you link ADODC to a DataGrid to a DataBase On VisualBasic 6.0 Pin
Anonymous30-Jan-04 10:25
Anonymous30-Jan-04 10:25 
AnswerRe: How do you link ADODC to a DataGrid to a DataBase On VisualBasic 6.0 Pin
Hesham Amin1-Feb-04 1:32
Hesham Amin1-Feb-04 1: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.