954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

code for this button

Hi all. I am doing a project with visual basic 2008, i'm using c++ windows form.
i have a question about the code for this particular button, where i wan tis button click to be link to another folder.
For example, when clicking this button [btnDownload], it will open the folder name Download in Local Disk C. I would like to get the complete code for this button if it's possible.

if i dont make my question cleary, please point it out.
anyhelp is welcome, thx.

ckjie
Newbie Poster
9 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

When the user clicks the button do you want a Save dialog box to pop up so they can name the file or what do you want to happen?

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 

when clicking the button, i want it to appears like i double click the Download folder itself, mean it will opens the folder and show wat is inside the folder.
u get wat i mean?

ckjie
Newbie Poster
9 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

I know what you mean. I found this (it's in C# but can be converted to C++/CLI) to make a (File) Explorer setup in your program. It's fairly lengthy but if that's what you need you can probably whittle it down a bit.Strangely enough there's not a built in widget for this kind of thing you are describing, at least AFAIK.

My first thought was to just use a SaveFileDialog. It will show you what's there already and you can filter by extension and such. If your folder is a "downloads" you need to pick where to save something anyway, right?

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 

thank you so much jonsca.
i will consider to change it to a save dialog box if the previous way i mentioned is too troublesome.

ckjie
Newbie Poster
9 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You