Results 1 to 5 of 5

Thread: If ya know anything!

  1. #1

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Exclamation If ya know anything!

    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
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: [email protected]

    Check out these sites:
    My Blog

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Thanks

    Thank you very much it works.

    -Flame
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: [email protected]

    Check out these sites:
    My Blog

  4. #4

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Another Question

    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
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: [email protected]

    Check out these sites:
    My Blog

  5. #5
    spetnik
    Guest

    RE: Another Question

    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal _
    4.     lpApplicationName As String, ByVal lpKeyName As String, ByVal lpDefault As String, _
    5.         ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
    6.  
    7. Private Sub Command1_Click()
    8. Dim rc As Long
    9. Dim strPic As String * 256
    10. Dim newString As String
    11. Dim intSize As Integer
    12.  
    13.     intSize = 256
    14.    
    15.     rc = GetPrivateProfileString("Pictures", "Pic1", "", strPic, intSize, "C:\temp.ini")
    16.    
    17.     newString = Left(strPic, rc)
    18.     Picture1.Picture = LoadPicture(newString)
    19.  
    20. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width