Jump to content

[SOLVED]file to text box


Recommended Posts

i was wondering how to get it to where when i click on the file in the browse window it will put where its at in my text box??

FileOpenDialog()

#include <guiconstantsex.au3>
GUICreate("FileOpenDialogue", 250, 100)
$Input = GUICtrlCreateInput("", 25, 40, 155, 20)
$Browse = GUICtrlCreateButton("Browse", 190, 40, 50, 20)
GUISetState(@SW_SHOW)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Browse
            $File = FileOpenDialog("Browse", @DesktopDir, "All (*.*)", 3)
            GUICtrlSetData($Input, $File)
    EndSwitch
WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...