.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Window Jump!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I use VB.NET design 4 windows for user input in AutoCad, when I hit the next button on the 1st window, then the 2nd window jump out, however, it jumps out behind the Autocad main window. the window 3 and 4 works fine. Is there anyone knows how to fix this little BUG?
Thank you in advanced!
I use VS2010 and AutoCad2011
I use the following to get the 1st window.
<CommandMethod("CoreInput")> _
Public Sub ShowForm()
Dim ModalForm As Form1 = New Form1()
Autodesk.AutoCAD.ApplicationServices.Application.S
End Sub
--------------------------------------------------
use the following to hide the 1st window and jump out the 2nd window.
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Form2Open As New Form2
Form2Open.Show()
'Form2.Show()
Me.Hide()
End Sub
Solved! Go to Solution.
Re: Window Jump!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Why you do not use the Aplication.ShowModalDialog method on your Button_Click event as you did on your Command method? You are not supposed to call the Form.Show methods directly because it could result in unexpected behavior.
Re: Window Jump!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It fixed, thanks John!![]()

