View Full Version : adding a file browse button
R3_TBH
02-03-2009, 07:14 PM
Hi all, im new to coding and am looking for a bit of advice. Iv been set a group project to create a program. My contribution to the group is to create the code for a file browse button. This should allow the user to points to the location of a CSV which will then be read by the program. If anyone could help me out then i would be grateful.
Thank you
R3_TBH
Millenia
02-03-2009, 07:29 PM
Can you give us more information on what you are actually trying to do.
What language are you using, and what do you mean by a 'file browse' button?
R3_TBH
02-03-2009, 07:59 PM
hi, yeah sure. Im using C. Not C+ or C#. What im trying to do is create a button which will allow the user to locate a file, in my case it will be a CSV file. This CSV file shiould then be read by the program.
Thanks
R3_TBH
oracleguy
02-03-2009, 08:04 PM
On what platform? Windows? OS X? Linux?
R3_TBH
02-03-2009, 09:15 PM
Hi oracleguy, im using windows and im coding in visual studio 08.
Thanks
R3_TBH
flynch01
02-05-2009, 03:45 PM
Do you literally mean like, a button? On it's own. Just a button that appears that you click and search for a file? How do you intend to output the calculations that your program does on the csv file?
R3_TBH
02-05-2009, 11:08 PM
Hi flynch01, thanks for your reply. yeah im just trying to create a button which when clicked on, it will allow you to browse for a file. The file that will be run is a csv format.
R3_TBH
flynch01
02-05-2009, 11:36 PM
If you look for a win32 guide on google, just create the window with styles that hide the borders. WS_POPUP I think is what you want. I'm pretty sure after reading any win32 tutorial creating the button will be self explanatory.
http://letmegooglethatforyou.com/?q=WIN32+Programming+Tutorial
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.