View Full Version : Startup form covers other forms?

11-30-2006, 02:19 PM
This should be a fairly basic request but it's had me stumped for a while now. I have a startup form with a couple menus. I select an option from a menu and want another form to come up. This worked fine until I added some text to the startup form. Now this text shows up on top of other forms. When I select a new form, I want it to be on top of my startup form.

This is my code to popup the new form:

Private Sub sdvinfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sdvinfo.Click
Cursor.Current = Cursors.WaitCursor
Dim fsdvinfo as sdvinfo_form = New sdvinfo_form
fsdvinfo.Parent = Me
End Sub

The form is created, but most of it is hidden by the text from my startup form.

11-30-2006, 03:19 PM
Is this Windows Forms?


11-30-2006, 06:46 PM
Yes, sorry I forgot to specify this is for Windows Forms. I came across that article while searching and when I try fsdvinfo.show(me) I get an error: "Too many arguments to 'Public Sub Show()'".

I'll look for more info at that link though. Thank you.

11-30-2006, 07:14 PM
Note: This method is new in the .NET Framework version 2.0.

You may need to stick with setting parent if you're still using 1.1.
fsdvinfo.Parent = Me