Guest slash1020 Posted November 5, 2002 Posted November 5, 2002 I want to Hide the form when the application start. I write : Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Hide() End Sub But when the application start, I still see the form. The form doesn't hide....... How could I do? Thanks. Quote
Guest ths Posted November 5, 2002 Posted November 5, 2002 Hello there create a class with a method named . . . Public Shared Sub Main() End Sub After create this class change the Startup Object in the properties off aplication to this class created Create a instance of your form in this class and call him when you need him . . . oks Intehhhhh SKOL Rulez!!!!!!!!! Quote
Guest slash1020 Posted November 6, 2002 Posted November 6, 2002 thank you, Mr.ths I got a new method it is set the opacity=0, then the form is like hide..... maybe it is not a correct method Quote
*Gurus* divil Posted November 6, 2002 *Gurus* Posted November 6, 2002 That would be a terrible way of doing it. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
tcomputerchip Posted November 6, 2002 Posted November 6, 2002 Here is what you do. Public Class frmMain Inherits System.Windows.Forms.Form Dim myForm As New frmMain() 'Instatiate my new form object, used to overide default form object Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myForm.Hide() End Sub Protected Overrides Sub Finalize() MyBase.Finalize() myForm = Nothing 'Clear the mySettings Object End Sub End Class 'Please let me know if this works, it worked for me Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.