Results 1 to 12 of 12

Thread: [RESOLVED] How to ?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    57

    Resolved [RESOLVED] How to ?

    How can i make button whos load .ini file ?
    please help me












    Added [RESOLVED] to thread title and green "resolved" checkmark - Hack
    Last edited by Hack; Dec 20th, 2005 at 07:03 AM.

  2. #2

  3. #3
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: How to ?

    you mean a button that loads an ini file? what would the ini file load into? textbox?, label, table ? please explain more fully

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    57

    Re: How to ?

    when i click on the button i wana just open a .ini file
    i was try with shell "brum.ini", vbNormalNoFocus
    but i got "Type Michmash"
    now i think correctly

  5. #5

  6. #6
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: How to ?

    i'm assuming he wants to open the file and read it

  7. #7

  8. #8

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    57

    Re: How to ?

    i just wana open the file (launch)
    any ideas?

  9. #9

  10. #10
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How to ?

    In case that doesn't work for you (I can't think about why not) then here is more robust api sample:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    4.     (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
    5.     ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    6.  
    7. Private Const SW_SHOWNORMAL = 1
    8.  
    9. Private Sub Command1_Click()
    10.     ShellExecute Me.hwnd, vbNullString, "test.ini", vbNullString, "C:\", SW_SHOWNORMAL
    11. End Sub

  11. #11

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    57

    Re: How to ?

    ty very much working perfectly i am happy now

  12. #12

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