- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having problems showing a modeless form when it is called from another form. (the main start form)
I can show the main start from as modeless without a problem.
Again the problem is trying to hide a modal from and then show a modeless from.
I have tried disposing of the first (main start) form but still no sucess.
********************** MAIN START CLASS **************************
Public Class ClassMainStart
<CommandMethod("BT")> Public Sub BodeTools()
Dim form_Main As System.Windows.Forms.Form = New MainForm
Application.ShowModalDialog(form_Main)
End Sub
*********************** A button click the main start from *******************
Public Class MainForm
Private Sub OneButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTextFill.Click
Dim form_Main As System.Windows.Forms.Form = New MainForm
Dim form_Second As System.Windows.Forms.Form = New formOther
form_Main.Hide()
Application.ShowModelessDialog(form_Second)
End Sub
Solved! Go to Solution.