Alright, i need to know how to start another program from my program. If you know howto do this please help me.
Thank you,
-Flame
Printable View
Alright, i need to know how to start another program from my program. If you know howto do this please help me.
Thank you,
-Flame
If you wanna fire up an exe from your vb program then u can simply use Shell command.
eg
Private Sub Command1_Click()
Shell "c:\winnt\system32\notepad.exe", vbNormalFocus
End Sub
Thank you very much it works.
-Flame
How do I load a picture from an INI file, you know like me.picture=and then put in the code for the ini thing.
-Flame
VB Code:
Option Explicit Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal _ lpApplicationName As String, ByVal lpKeyName As String, ByVal lpDefault As String, _ ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long Private Sub Command1_Click() Dim rc As Long Dim strPic As String * 256 Dim newString As String Dim intSize As Integer intSize = 256 rc = GetPrivateProfileString("Pictures", "Pic1", "", strPic, intSize, "C:\temp.ini") newString = Left(strPic, rc) Picture1.Picture = LoadPicture(newString) End Sub