How do you get one of those screens to pop up which allows you to save a file and navigate around windows folders to do so.
Also how to you get the open a file screen.
|
Go4Expert Founder
|
![]() |
| 13Jul2007,08:18 | #2 |
|
You have OpenFileDialog and SaveFileDialog which help you doing that.
|
|
Go4Expert Member
|
|
| 16Jul2007,20:21 | #3 |
|
I cannot find any information about how to use this with my VisualBasic 6 (it has no help files), can someone please help.
from what I understand OpenFileDialog returns the entire path of the location that you select. but my code doesnt seem to do anything. 'This does nothing FName = OpenFileDialog 'This gives me an error FName = OpenFileDialog() |
|
Go4Expert Founder
|
![]() |
| 16Jul2007,20:41 | #4 |
|
I though you would be using the .NET but VB 6 there is a control for the same.
|
|
Go4Expert Member
|
|
| 16Jul2007,21:19 | #5 |
|
Use the CommonDialog Control.
|
|
Go4Expert Member
|
|
| 18Jul2007,01:49 | #6 |
|
Ok when i click cancel in the open file dialogue i want to execute a command. But by using
"on error goto cancel" the code in Cancel wont execute one i have executed the loaded a file once. in fact crazy things start to happen. is there any sort of "On cancel exit sub" or something, this is the outline of my code Private Sub cmdLoad_Click() On Error GoTo Cancel ... Exit Sub Cancel: ... Exit Sub End Sub thank you for your time |
|
Go4Expert Member
|
|
| 18Jul2007,06:25 | #7 |
|
nevermind i needed to click the "cancel error" box in the properties of the dialogue box. Apparently without that it wont always give an error.
|

