Circuit Negma

C++, C, VB.NET, PCB, Electronics, Circuit Design


Posted by Circuit Negma on May 25, 2006

Download Tutorial- PDF File:

Step-By-Step Instructions:

1. From ToolBox ——> Select “Dialogs” Category ——> Click on “SaveFileDialog”

2. In the Properties Window ———> Change the “SaveFileDialog1” to “SaveFileDialog” under (Name)

3. Read the Following Function:

Private Sub SaveFileName(ByVal extStr As String, ByVal ExtNameStr As String)

Dim filename As String

On Error GoTo SaveAsErr

' display the Save dialog

SaveFileDialog.AddExtension = True ‘ This is one of Dialog Properties

SaveFileDialog.DefaultExt = extStr ‘ This is one of Dialog Properties: Ex: { jpg or pdf or doc}

SaveFileDialog.Filter = ExtNameStr + " (*." + extStr + ")|*." + extStr ‘ This is one of Dialog Properties

' Check if yes or Cancel btn is clicked

' get the resulting filename

If SaveFileDialog.ShowDialog = Windows.Forms.DialogResult.Cancel Then

If extStr = "doc" Then

filename = "opt-out." + extStr

ElseIf extStr = "txt" Then

filename = "opt-out." + extStr

End If


filename = SaveFileDialog.FileName

End If


Exit Sub

End Sub


16 Responses to “How to USE SAVE DIALOG BOX and OPEN DIALOG BOX:”

  1. ertyuykiulo said

    Here are some links that I believe will be interested

  2. VipTest said

    Nice site! Big thanx to webmaster! 🙂

  3. jojqus said

    hello. i just wanna say hallo:)h

  4. ronquv said

    Your website has been very helpfull to meR

  5. erhuhl said

    So interesting information! Great. Thank U+

  6. yukzeh said

    fantastico! So interestanto! Cumo va?

  7. kuphyg said

    Thanx thanx thanx for such great job done above your website!.

  8. Fetichismo said

    I can’t get this to work! Grrr, I get division by zero!

  9. Bobrila said

    But you are say, that this idead is bad?,

  10. >>Fetichismo Says:
    >>August 17, 2007 at 12:50 pm e
    >>I can’t get this to work! Grrr, I get division by zero!

    I am not sure why you are getting a division by zero. there is nothing in the above code that requires to do an arithmetic calculations.

    try again in an empty project.

  11. Pedsfeed said

    Я бы сказала о монументальности, грандиозности некоторых сюжетов. А назвала бы – “нефильтрованный реал”. На мой взгляд, красота – это все-таки другое: лучшее, чистое, избранное, заставляющее трепетать и поражаться. Можно найти красоту во всем, но всё скопом – не есть красота. Имхо.

  12. Прикольно. Ждем новых сообщений на эту тему 🙂

  13. плoxaя said

    Да уж, автор блога на самом деле добрый и отзывчивый человек. Спасибо 🙂

  14. Hello

    I just want to thank every one for their comments.

    Unfortunately, it is going to be a while before I post new topics on Visual basic. I have moved away from visual basic programming due to my busy work that requires from me to work on C programming for now.

  15. Спасибо за пост.

  16. thanks to all of your comments

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: