Sign in to follow this  
Followers 0
DeviousDude

[SOLVED]file to text box

3 posts in this topic

#1 ·  Posted (edited)

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??

Edited by DeviousDude

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thanks that worked

Share this post


Link to post
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
Sign in to follow this  
Followers 0