tomjowitt
August 23rd, 2001, 04:11 AM
how do you bring up the default windows import/export dialog boxes?
the VB help files draw a total blank here
thanks in advance.
the VB help files draw a total blank here
thanks in advance.
|
Click to See Complete Forum and Search --> : export dialog boxes tomjowitt August 23rd, 2001, 04:11 AM how do you bring up the default windows import/export dialog boxes? the VB help files draw a total blank here thanks in advance. Cakkie August 23rd, 2001, 05:38 AM You can use the commondialog control for that. This allows the user to select a file for opening, saving and stuff. You will have to write the code to save/load yourself, it's only the looks you get. You can customize it, by setting the caption of the control, specifying which files he should show, and some other things. To use it, add the component to the project and place it on a form CommonDialog1.DialogTitle = "Select file to open" CommonDialog1.Filter = "Text Files|*.txt|All files|*.*" CommonDialog1.ShowOpen = "Text Files|*.txt|All files|*.*" If CommonDialog1.FileName <> "" then ' do stuff to open it End if Tom Cannaerts slisse@planetinternet.be Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook Cakkie August 23rd, 2001, 05:38 AM You can use the commondialog control for that. This allows the user to select a file for opening, saving and stuff. You will have to write the code to save/load yourself, it's only the looks you get. You can customize it, by setting the caption of the control, specifying which files he should show, and some other things. To use it, add the component to the project and place it on a form CommonDialog1.DialogTitle = "Select file to open" CommonDialog1.Filter = "Text Files|*.txt|All files|*.*" CommonDialog1.ShowOpen If CommonDialog1.FileName <> "" then ' do stuff to open it End if Tom Cannaerts slisse@planetinternet.be Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook tomjowitt August 23rd, 2001, 09:45 AM thanks a lot ... it was the common dialog bit that was giving me the problem. all fixed now. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |