<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VBForums - Application Testing</title>
		<link>http://www.vbforums.com/</link>
		<description>Application Testing deals with tests for the entire application that you have developed.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 20:43:12 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.png</url>
			<title>VBForums - Application Testing</title>
			<link>http://www.vbforums.com/</link>
		</image>
		<item>
			<title><![CDATA[[RESOLVED] Voice recording Test]]></title>
			<link>http://www.vbforums.com/showthread.php?724831-RESOLVED-Voice-recording-Test&amp;goto=newpost</link>
			<pubDate>Sat, 15 Jun 2013 07:38:54 GMT</pubDate>
			<description><![CDATA[Hi,

Can someone with a microphone please test this code for me. I have tried testing it myself but for some reason my voice is not being picked up by the microphone even though it is switched on.

You need:

Label1     (Label)
Command1 (Command Button)
Command2 (Command Button)
Command3 (Command Button)

Form code

Private Declare Function mciSendString Lib "winmm.dll" _
Alias "mciSendStringA" (ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, ByVal uReturnLength As Long, _
ByVal hwndCallback As Long) As Long

Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long

Const MAX_PATH As Long = 260

Dim url As String

Private Sub Command1_Click()
 Command2.Enabled = True
 url = GetShortFileName(ShowOpenDialog(App.Path, "All Files|*.*", "*.*"))
    mciSendString "play " & url, "", 0, 0
     Label1.Caption = "Playing..."
End Sub
Private Function GetShortFileName(ByVal sFileName As String) As String
    Dim sBuffer As String
    sBuffer = String$(MAX_PATH, vbNullChar)
    Call GetShortPathName(sFileName, sBuffer, MAX_PATH)
    GetShortFileName = Left$(sBuffer, InStr(sBuffer, vbNullChar) - 1)
End Function

Private Sub Command2_Click()
url = ShowSaveAsDialog(App.Path, "", "All Files|*.*", "*.*")
    mciSendString "open new Type waveaudio Alias recsound", url, 0, 0
   mciSendString "record recsound", url, 0, 0
   MsgBox (url)
   Command2.Caption = "Recording..."
   Label1.Caption = "Recording..."
End Sub

Private Sub Command3_Click()
 mciSendString "save recsound " & url, "", 0, 0
 mciSendString "close recsound", "", 0, 0
 Command2.Caption = "Stopped..."
 Label1.Caption = "Stopped..."
 MsgBox "File Created: " & url
End Sub

Private Sub Form_Load()
 Command1.Caption = "Play"
 Command2.Caption = "Record"
 Command3.Caption = "Stop"
End Sub

and this code from Ellis Dee which, needs to be put in a module (the code that is)


Author: Ellis Dee
'Website: [url]http://www.vbforums.com/showthread.php?t=605402&highlight=Common+Dialog[/url]
       Option Explicit
     
    Private Enum FlagsEnum
        feOpen
        feSaveAs
    End Enum
     
    Private Type OPENFILENAME
        lStructSize As Long
        hwndOwner As Long
        hInstance As Long
        lpstrFilter As String
        lpstrCustomFilter As String
        nMaxCustFilter As Long
        nFilterIndex As Long
        lpstrFile As String
        nMaxFile As Long
        lpstrFileTitle As String
        nMaxFileTitle As Long
        lpstrInitialDir As String
        lpstrTitle As String
        Flags As Long
        nFileOffset As Integer
        nFileExtension As Integer
        lpstrDefExt As String
        lCustData As Long
        lpfnHook As Long
        lpTemplateName As String
    End Type
     
    Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
    Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long
     
    ' Common Dialog - Open
    Public Function ShowOpenDialog(pstrInitialPath As String, pstrFilter As String, pstrDefaultExt As String) As String
        Dim typFileName As OPENFILENAME
               
        typFileName = GetStructure(pstrInitialPath, "", pstrFilter, pstrDefaultExt, feOpen)
        If GetOpenFileName(typFileName) Then ShowOpenDialog = Left$(typFileName.lpstrFile, InStr(typFileName.lpstrFile, Chr$(0)) - 1)
    End Function
     
    ' Common Dialog - SaveAs
    Public Function ShowSaveAsDialog(pstrInitialPath As String, pstrFile As String, pstrFilter As String, pstrDefaultExt As String) As String
        Dim typFileName As OPENFILENAME
       
        typFileName = GetStructure(pstrInitialPath, pstrFile, pstrFilter, pstrDefaultExt, feSaveAs)
        If GetSaveFileName(typFileName) Then ShowSaveAsDialog = Left$(typFileName.lpstrFile, InStr(typFileName.lpstrFile, Chr$(0)) - 1)
    End Function
     
    Private Function GetStructure(pstrPath As String, pstrFile As String, pstrFilter As String, pstrDefaultExt As String, penFlags As FlagsEnum) As OPENFILENAME
        Const OFN_FILEMUSTEXIST = &H1000
        Const OFN_PATHMUSTEXIST = &H800
        Const OFN_HIDEREADONLY = &H4
        Const OFN_LONGNAMES = &H200000
        Const OFN_OVERWRITEPROMPT = &H2
        Const OF_WRITE = &H1
        Const MAX_PATH = 260
        Dim frm As Form
     
        With GetStructure
            .lStructSize = Len(GetStructure)
            ' Get any form's window handle
            For Each frm In Forms
                Exit For
            Next
            .hwndOwner = frm.hWnd
            Set frm = Nothing
            .hInstance = App.hInstance
            .lpstrFilter = Replace(pstrFilter, "|", Chr(0)) & Chr(0)
            .nMaxFile = MAX_PATH + 1
            .nMaxFileTitle = MAX_PATH + 1
            .lpstrFileTitle = Space(MAX_PATH)
            .lpstrInitialDir = pstrPath
            .lpstrDefExt = pstrDefaultExt
            Select Case penFlags
                Case feOpen
                    .lpstrTitle = "Open"
                    .lpstrFile = Space(MAX_PATH)
                    .Flags = OFN_FILEMUSTEXIST + OFN_HIDEREADONLY + OFN_LONGNAMES
                Case feSaveAs
                    .lpstrTitle = "Save As"
                    .lpstrFile = pstrFile & Space$(MAX_PATH - Len(pstrFile))
                    .Flags = OFN_PATHMUSTEXIST + OFN_HIDEREADONLY + OFN_LONGNAMES + OF_WRITE ' + OFN_OVERWRITEPROMPT
            End Select
        End With
    End Function

Thanks,

Nightwalker]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Can someone with a microphone please test this code for me. I have tried testing it myself but for some reason my voice is not being picked up by the microphone even though it is switched on.<br />
<br />
You need:<br />
<br />
Label1     (Label)<br />
Command1 (Command Button)<br />
Command2 (Command Button)<br />
Command3 (Command Button)<br />
<br />
Form code<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">vb Code:</div>
	<pre class="alt2" style="margin:0px; padding:px; border:1px inset; width:; max-height:372px;overflow:auto"><div dir="ltr" style="text-align:left;"><div class="vb" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> mciSendString Lib <span style="color: #ff0000;">&quot;winmm.dll&quot;</span> _</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Alias <span style="color: #ff0000;">&quot;mciSendStringA&quot;</span> <span style="color: #66cc66;">&#40;</span>ByVal lpstrCommand <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, _</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ByVal lpstrReturnString <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal uReturnLength <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, _</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ByVal hwndCallback <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetShortPathName Lib <span style="color: #ff0000;">&quot;kernel32&quot;</span> Alias <span style="color: #ff0000;">&quot;GetShortPathNameA&quot;</span> <span style="color: #66cc66;">&#40;</span>ByVal lpszLongPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal lpszShortPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal cchBuffer <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> MAX_PATH <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span> = <span style="color: #cc66cc;">260</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> url <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Command2.<span style="color: #66cc66;">Enabled</span> = <span style="color: #b1b100;">True</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;url = GetShortFileName<span style="color: #66cc66;">&#40;</span>ShowOpenDialog<span style="color: #66cc66;">&#40;</span>App.<span style="color: #66cc66;">Path</span>, <span style="color: #ff0000;">&quot;All Files|*.*&quot;</span>, <span style="color: #ff0000;">&quot;*.*&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; mciSendString <span style="color: #ff0000;">&quot;play &quot;</span> &amp; url, <span style="color: #ff0000;">&quot;&quot;</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;Label1.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Playing...&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Function</span> GetShortFileName<span style="color: #66cc66;">&#40;</span>ByVal sFileName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> sBuffer <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; sBuffer = <span style="color: #b1b100;">String</span>$<span style="color: #66cc66;">&#40;</span>MAX_PATH, <span style="color: #b1b100;">vbNullChar</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Call</span> GetShortPathName<span style="color: #66cc66;">&#40;</span>sFileName, sBuffer, MAX_PATH<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; GetShortFileName = <span style="color: #b1b100;">Left</span>$<span style="color: #66cc66;">&#40;</span>sBuffer, <span style="color: #b1b100;">InStr</span><span style="color: #66cc66;">&#40;</span>sBuffer, <span style="color: #b1b100;">vbNullChar</span><span style="color: #66cc66;">&#41;</span> - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command2_Click<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">url = ShowSaveAsDialog<span style="color: #66cc66;">&#40;</span>App.<span style="color: #66cc66;">Path</span>, <span style="color: #ff0000;">&quot;&quot;</span>, <span style="color: #ff0000;">&quot;All Files|*.*&quot;</span>, <span style="color: #ff0000;">&quot;*.*&quot;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; mciSendString <span style="color: #ff0000;">&quot;open new Type waveaudio Alias recsound&quot;</span>, url, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;mciSendString <span style="color: #ff0000;">&quot;record recsound&quot;</span>, url, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">MsgBox</span> <span style="color: #66cc66;">&#40;</span>url<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Command2.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Recording...&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Label1.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Recording...&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command3_Click<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;mciSendString <span style="color: #ff0000;">&quot;save recsound &quot;</span> &amp; url, <span style="color: #ff0000;">&quot;&quot;</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;mciSendString <span style="color: #ff0000;">&quot;close recsound&quot;</span>, <span style="color: #ff0000;">&quot;&quot;</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Command2.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Stopped...&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Label1.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Stopped...&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">&quot;File Created: &quot;</span> &amp; url</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Form_Load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Command1.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Play&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Command2.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Record&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Command3.<span style="color: #66cc66;">Caption</span> = <span style="color: #ff0000;">&quot;Stop&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div></li></ol></div></div></pre>
</div><br />
and this code from Ellis Dee which, needs to be put in a module (the code that is)<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">vb Code:</div>
	<pre class="alt2" style="margin:0px; padding:px; border:1px inset; width:; max-height:372px;overflow:auto"><div dir="ltr" style="text-align:left;"><div class="vb" style="font-family: monospace;"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Author: Ellis Dee</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Website: [url]http://www.vbforums.com/showthread.php?t=605402&amp;highlight=Common+Dialog[/url]</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Option</span> <span style="color: #b1b100;">Explicit</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Enum</span> FlagsEnum</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; feOpen</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; feSaveAs</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Enum</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Type</span> OPENFILENAME</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lStructSize <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; hwndOwner <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; hInstance <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrCustomFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nMaxCustFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nFilterIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrFile <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nMaxFile <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrFileTitle <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nMaxFileTitle <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrInitialDir <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrTitle <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Flags <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nFileOffset <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; nFileExtension <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpstrDefExt <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lCustData <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpfnHook <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lpTemplateName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Type</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetOpenFileName Lib <span style="color: #ff0000;">&quot;comdlg32.dll&quot;</span> Alias <span style="color: #ff0000;">&quot;GetOpenFileNameA&quot;</span> <span style="color: #66cc66;">&#40;</span>pOpenfilename <span style="color: #b1b100;">As</span> OPENFILENAME<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetSaveFileName Lib <span style="color: #ff0000;">&quot;comdlg32.dll&quot;</span> Alias <span style="color: #ff0000;">&quot;GetSaveFileNameA&quot;</span> <span style="color: #66cc66;">&#40;</span>pOpenfilename <span style="color: #b1b100;">As</span> OPENFILENAME<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">' Common Dialog - Open</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> ShowOpenDialog<span style="color: #66cc66;">&#40;</span>pstrInitialPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrDefaultExt <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> typFileName <span style="color: #b1b100;">As</span> OPENFILENAME</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; typFileName = GetStructure<span style="color: #66cc66;">&#40;</span>pstrInitialPath, <span style="color: #ff0000;">&quot;&quot;</span>, pstrFilter, pstrDefaultExt, feOpen<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> GetOpenFileName<span style="color: #66cc66;">&#40;</span>typFileName<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">Then</span> ShowOpenDialog = <span style="color: #b1b100;">Left</span>$<span style="color: #66cc66;">&#40;</span>typFileName.<span style="color: #66cc66;">lpstrFile</span>, <span style="color: #b1b100;">InStr</span><span style="color: #66cc66;">&#40;</span>typFileName.<span style="color: #66cc66;">lpstrFile</span>, <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">' Common Dialog - SaveAs</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> ShowSaveAsDialog<span style="color: #66cc66;">&#40;</span>pstrInitialPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrFile <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrDefaultExt <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> typFileName <span style="color: #b1b100;">As</span> OPENFILENAME</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; typFileName = GetStructure<span style="color: #66cc66;">&#40;</span>pstrInitialPath, pstrFile, pstrFilter, pstrDefaultExt, feSaveAs<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> GetSaveFileName<span style="color: #66cc66;">&#40;</span>typFileName<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">Then</span> ShowSaveAsDialog = <span style="color: #b1b100;">Left</span>$<span style="color: #66cc66;">&#40;</span>typFileName.<span style="color: #66cc66;">lpstrFile</span>, <span style="color: #b1b100;">InStr</span><span style="color: #66cc66;">&#40;</span>typFileName.<span style="color: #66cc66;">lpstrFile</span>, <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Function</span> GetStructure<span style="color: #66cc66;">&#40;</span>pstrPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrFile <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrFilter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, pstrDefaultExt <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, penFlags <span style="color: #b1b100;">As</span> FlagsEnum<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">As</span> OPENFILENAME</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OFN_FILEMUSTEXIST = &amp;H1000</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OFN_PATHMUSTEXIST = &amp;H800</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OFN_HIDEREADONLY = &amp;H4</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OFN_LONGNAMES = &amp;H200000</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OFN_OVERWRITEPROMPT = &amp;H2</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> OF_WRITE = &amp;H1</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Const</span> MAX_PATH = <span style="color: #cc66cc;">260</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> frm <span style="color: #b1b100;">As</span> Form</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">With</span> GetStructure</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lStructSize</span> = <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">&#40;</span>GetStructure<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">' Get any form's window handle</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">For</span> Each frm In Forms</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">For</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Next</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">hwndOwner</span> = frm.<span style="color: #66cc66;">hWnd</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Set</span> frm = <span style="color: #b1b100;">Nothing</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">hInstance</span> = App.<span style="color: #66cc66;">hInstance</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrFilter</span> = Replace<span style="color: #66cc66;">&#40;</span>pstrFilter, <span style="color: #ff0000;">&quot;|&quot;</span>, <span style="color: #b1b100;">Chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #b1b100;">Chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">nMaxFile</span> = MAX_PATH + <span style="color: #cc66cc;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">nMaxFileTitle</span> = MAX_PATH + <span style="color: #cc66cc;">1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrFileTitle</span> = <span style="color: #b1b100;">Space</span><span style="color: #66cc66;">&#40;</span>MAX_PATH<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrInitialDir</span> = pstrPath</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrDefExt</span> = pstrDefaultExt</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Select <span style="color: #b1b100;">Case</span> penFlags</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> feOpen</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrTitle</span> = <span style="color: #ff0000;">&quot;Open&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrFile</span> = <span style="color: #b1b100;">Space</span><span style="color: #66cc66;">&#40;</span>MAX_PATH<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">Flags</span> = OFN_FILEMUSTEXIST + OFN_HIDEREADONLY + OFN_LONGNAMES</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> feSaveAs</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrTitle</span> = <span style="color: #ff0000;">&quot;Save As&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">lpstrFile</span> = pstrFile &amp; <span style="color: #b1b100;">Space</span>$<span style="color: #66cc66;">&#40;</span>MAX_PATH - <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">&#40;</span>pstrFile<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">Flags</span> = OFN_PATHMUSTEXIST + OFN_HIDEREADONLY + OFN_LONGNAMES + OF_WRITE <span style="color: #808080;">' + OFN_OVERWRITEPROMPT</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> Select</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">With</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div></li></ol></div></div></pre>
</div><br />
Thanks,<br />
<br />
Nightwalker</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?92-Application-Testing">Application Testing</category>
			<dc:creator>Nightwalker83</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724831-RESOLVED-Voice-recording-Test</guid>
		</item>
		<item>
			<title>My First (Offical) Windows Phone App</title>
			<link>http://www.vbforums.com/showthread.php?724311-My-First-(Offical)-Windows-Phone-App&amp;goto=newpost</link>
			<pubDate>Mon, 10 Jun 2013 03:33:59 GMT</pubDate>
			<description><![CDATA[So, I've been avoiding the inevitable. Developing for my Windows Phone I've had for about 2 years now. :-P

I started a quick project last night. It's a simple password storage app. Hides behind a basic login (master password) and stores username/password combos with url and note.

What I'm hoping to get out of this is some input on what I could have done differently. Or in other words, better. Lol Also note that I haven't read any books yet, though one is on my mind. It's just something I tackled, with many many google searches of course.



Thanks in advance!
Dave]]></description>
			<content:encoded><![CDATA[<div>So, I've been avoiding the inevitable. Developing for my Windows Phone I've had for about 2 years now. :-P<br />
<br />
I started a quick project last night. It's a simple password storage app. Hides behind a basic login (master password) and stores username/password combos with url and note.<br />
<br />
What I'm hoping to get out of this is some input on what I could have done differently. Or in other words, better. Lol Also note that I haven't read any books yet, though one is on my mind. It's just something I tackled, with many many google searches of course.<br />
<br />
<br />
<br />
Thanks in advance!<br />
Dave</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100985&amp;stc=1&amp;d=1370837911" alt="" />&nbsp;<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100987&amp;stc=1&amp;d=1370837912" alt="" />&nbsp;<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100989&amp;stc=1&amp;d=1370837913" alt="" />&nbsp;<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100991&amp;stc=1&amp;d=1370837914" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.vbforums.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://www.vbforums.com/attachment.php?attachmentid=100993&amp;d=1370838043">Password Locker.zip</a> 
(232.5 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?92-Application-Testing">Application Testing</category>
			<dc:creator>DavesChillaxin</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724311-My-First-(Offical)-Windows-Phone-App</guid>
		</item>
	</channel>
</rss>
