add a way to get iwin32Window from linqpad
Dim wnd As New NativeWindow()
wnd.AssignHandle(Process.GetProcessById (Util.HostProcessID).MainWindowHandle)
'Add the above code or the c# version of it to a Util function that lets us pop up dialogs that show above the linqpadwindow.
'_____
Dim browser = New FolderBrowserDialog With {.ShowNewFolderButton = False, .SelectedPath = pth}
If browser.ShowDialog(wnd) = DialogResult.OK Then
pth = browser.SelectedPath
End If
-
Jay Michael Asbury commented
public static IWin32Window LinqpadWindow( this object obj)
{
NativeWindow wnd = new NativeWindow();
wnd.AssignHandle(Process.GetProcessById(Util.HostProcessID).MainWindowHandle);
return wnd;
}Extension method.