hi friends;
do you have any idea how i can save contents of list box by a common dialogue?
I know how to di it when I have a rich text box;but I want to use list box.Code:With CommonDialog1 'use this because we will have a lot of code with the box .DialogTitle = "Open" 'this sets the caption for the title bar on the dialog .InitDir = "C:\" 'this sets the initial director for the dialog box .Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" 'the filter property is what specifies which file types to display. The '(*.txt) is not necessary. 'as you can see, the file name comes first then the *.type comes 'next after the |. This is important .ShowOpen 'this event actually displays the open dialog box End With 'Close the with statement RTB1.LoadFile CommonDialog1.FileName
thanks




Reply With Quote