.NET FileSelection Macro
Visual Studio
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I've written a Macro to output a file to the output window, but the file selection dialog sometimes appears behind the .NET window (so I have to alt tab to it), any ideas how I can force this to the front? I have...
Dim openFileDialog1 As New OpenFileDialog() openFileDialog1.InitialDirectory = "c:\" openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" openFileDialog1.FilterIndex = 2 openFileDialog1.RestoreDirectory = True If openFileDialog1.ShowDialog() = DialogResult.OK Then ' Display file End If
Cheers for any help DAve