answersLogoWhite

0


Best Answer

I can help you by opening a file but Idk my self how to close one, (it saves too).

Dim temp As String

Dim strNames(10) As String

Dim strfilename, n As String

Dim x, inner, outer As Integer

CommonDialogName.ShowOpen

CommonDialogName.ShowSave

strfilename = CommonDialogName.FileName

Open strfilename For Input As #1

x = 1

Do While Not EOF(1)

Input #1, n

txtCount(x).Text = n

txtPop(x).Text = n

x = x + 1

Loop

Close #1

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use a common Dialog in vb6 so that you can open and exit a file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What purpose does the Common Dialog Box Control serve?

The Common Dialog Box Control lets you display some common Windows dialog boxes from within your application. This lets you provide a user experience that is uniform with that of other common applications on Windows. These dialogs include: 1. File Open - Displays a dialog box in which the user can type or select the name of a file or shell name-space object to open. 2. File Save - Displays a dialog box in which the user can type or select the name with which to save a file or shell name-space object. 3. Print - Displays information about the installed printer and its configuration. The user can select print job options, such as the range of pages to print and the number of copies, and start the printing process. 4. Color - Displays available colors and optionally lets the user create custom colors. 5. Font - Displays a dialog box in which the user can select a font family and associated font style, point sizes, and other font attributes such as font color, underline, or strike-through. 6. Help - Shows the Help window.


How do you convert from Excel to open office?

Save your file as Excel xls format. Use the File-->Save As... menu and select the file type in the save dialog. For a video How to, see related links.


What is the keyboard shortcut to open the 'Save As' dialog box?

It depends on the application. Not all applications provide shortcuts for each and every command, although most will provide the conventional ones (CTRL-S for File>Save, CTRL-N for File>New, CTRL-C for Edit>Cut, and so on). SHIFT-CTRL-S is a reasonably common user-defined shortcut for the File>Save As... dialogue, however for application-specific help you'll have to consult the application's documentation.


How do you open a svd file saved on a disc?

To open a SVD file saved on a disc, double click on it. If the file doesn't open, you need a software application for SVD file extensions.


How do you make applescript type in Text Edit?

display dialog "Please Enter Text:" default answer "Insert Text Here… " set a to text returned of result set nu_file to (choose file name default name "File" with prompt "Please choose where you want to save the file") set the_file to (open for access nu_file with write permission) write a to the_file

Related questions

What is common dialog box in visual basic control?

The common dialog box in visual basic is an insertable control that allows users to display a number of common dialog boxes in their program. These include Open and Save As file dialog boxes; the Find and Replace editing dialog boxes; the Print, Print Setup, Print Property Sheet, and Page Setup printing dialog boxes; and the Color and Font dialog boxes.


how to open a saved presentation?

click on file tab click the open button **(**A dialog box appers on the screen.) select your our saved file click on the open button


How do I save psd file as an .eps vector file?

Open PSD file in Photoshop then go to File > Save As. In Save As dialog choose from Format drop down list at bottom of dialog: Photoshop EPS.


1 Write short notes on dialog boxes in VB?

The common dialog box in visual basic is an insertable control that allows users to display a number of common dialog boxes in their program. These include Open and Save As file dialog boxes; the Find and Replace editing dialog boxes; the Print, Print Setup, Print Property Sheet, and Page Setup printing dialog boxes; and the Color and Font dialog boxes.


How do you open Photoshop in multiple files?

Go to File > Open. In Open dialog select first image, hold down Ctrl and select second, third.. then click Open at right bottom of Open dialog.


When you open dialog box you can locate the disk drive that contains the file you want to open from the?

disk drive box


What Windows keyboard shortcut will bring up the dialog box to open a file?

Ctrl + O


Rename a file in Excel?

You wouldn't rename a file in Excel. You would normally do it through Windows Explorer. However when opening a file in Excel, when the Open Dialog is open, it is possible to click on a file and rename it or do it through the Tools menu in the Open Dialog box. However you would rarely use that approach. The other thing you can do is use Save As and choose a new name, which will give you a copy and retain the old file.


Mac Photoshop open bmp files?

Clario Tech Limited the UK-based company present product MacKeeper, an award-winning system utility which includes a set of powerful maintenance features for Mac Optimization, Security, Data Control and Cleaning. So it is like 911 for your Mac. cutt.ly/3jQkIhj


How do you open database created in Access 2003 in Access 2007?

just open them in the File>Open dialog. See: http://office.microsoft.com/en-us/access/HA102091151033.aspx


What kind of dialog boxes does Microsoft Office programs use for performing actions such as opening and saving files?

There are a wide range of Microsoft Office programs, so there is a wide range of dialog boxes. There are some that they all use, sometimes referred to as Common Dialog boxes. These would include the Open Dialog box, the Save Dialog box and the Print Dialog Box. Others are similar, but not exactly the same in each application, such as formatting dialog boxes.


What purpose does the Common Dialog Box Control serve?

The Common Dialog Box Control lets you display some common Windows dialog boxes from within your application. This lets you provide a user experience that is uniform with that of other common applications on Windows. These dialogs include: 1. File Open - Displays a dialog box in which the user can type or select the name of a file or shell name-space object to open. 2. File Save - Displays a dialog box in which the user can type or select the name with which to save a file or shell name-space object. 3. Print - Displays information about the installed printer and its configuration. The user can select print job options, such as the range of pages to print and the number of copies, and start the printing process. 4. Color - Displays available colors and optionally lets the user create custom colors. 5. Font - Displays a dialog box in which the user can select a font family and associated font style, point sizes, and other font attributes such as font color, underline, or strike-through. 6. Help - Shows the Help window.