I have a VB.NET app in which I am trying to provide the ability to select a directory to which you would like to save data.
The code for this is below:
Me.FolderBrowserDialog1.Description = _
"Select the directory that you want to use As the default."
If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
txtCardLoc.Text = FolderBrowserDialog1.SelectedPath
When I run the code I get the following error:
An unhandled exception of type 'System.StackOverflowException' occurred in system.windows.forms.dll
Please help. The microsoft documentation seems to show the same basic method for this functionality. Is there something else that I am supposed to reference or a component I need to add?