Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Linking button to textbox

  1. #1
    BrasilianBR is offline Newbie
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    Linking button to textbox

    Sort of.

    I'm using Visual Studio 2005 and coding in Visual c++. The problem I'm having is linking my browse button to a text box. I'd like a file selected in the browse window to display in a textbox next to it (the file's path, if you will). If anyone could help me out here, it'd be much appreciated.

    Thanks in advanced.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Linking button to textbox

    It depends on how you opened the file. If you have a string variable somewhere, then just use that. If you used the CommonDialog object, there's a LPSTR field in the OFNSTRUCT that you can read. Otherwise you'll have to post more information.

  4. #3
    directoryxd is offline Newbie
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Re: Linking button to textbox

    I will try as i am a new here i heve to get some knowledge ...

  5. #4
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Linking button to textbox

    How did you open the file, anyway?

  6. #5
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Linking button to textbox

    With a spanner.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #6
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Linking button to textbox

    I don't get it.

  8. #7
    Join Date
    Jan 2008
    Posts
    1,725
    Blog Entries
    4
    Rep Power
    29

    Re: Linking button to textbox

    Xav meant a file scanner. In order to read text out of a file, you need to read it using a text scanner from the standard libraries provided

  9. #8
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Linking button to textbox

    Quote Originally Posted by morefood2001 View Post
    Xav meant a file scanner. In order to read text out of a file, you need to read it using a text scanner from the standard libraries provided
    Once again your wrong.... You don't have to use a 'standard library' to read a text file.

    You can use APIs. CreateFile() ReadFile()

    Sigh... Please stop.

  10. #9
    Join Date
    Jan 2008
    Posts
    1,725
    Blog Entries
    4
    Rep Power
    29

    Re: Linking button to textbox

    Quote Originally Posted by MeTh0Dz|Reb0rn View Post
    Once again your wrong.... You don't have to use a 'standard library' to read a text file.

    You can use APIs. CreateFile() ReadFile()

    Sigh... Please stop.
    I have always used the standard template library to read a file. I have never seen the APIs such as ReadFile() read files.

    Programming has many approaches which are all right, it all depends on which method you like more (or are more familiar with).

  11. #10
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    Re: Linking button to textbox

    If you aren't educated on something, then don't say you have to do it a certain way...

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Beginner Working with TextBox, ComboBox, ListBox and Button controls
    By Tonchi in forum CSharp Tutorials
    Replies: 0
    Last Post: 03-28-2011, 07:55 AM
  2. Replies: 2
    Last Post: 01-06-2011, 02:58 AM
  3. Linking
    By pokevitek in forum C and C++
    Replies: 4
    Last Post: 02-15-2010, 11:57 PM
  4. linking
    By kenex in forum HTML Programming
    Replies: 24
    Last Post: 02-15-2009, 01:40 PM
  5. Linking??
    By bobpot in forum C and C++
    Replies: 1
    Last Post: 01-26-2007, 06:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

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