Want a help about vb .net programming, Want the steps, & some samples for programming. I know vb 6 verywell. I m not finding the proper method for load, unload, close application. How to install on machine to use? etc.
Hi, i'm new to .Net too, so i can't answer all but i use this:
Public MyForm as Form1
then
MyForm = New Form1
This way i can use MyForm like i use to do it in VB6.
If you find out more plz post it. I want to learn
sorry for my english
14-08-2006 at 09:31 PM
|
shahidmojid Level: Professor Registered: 09-05-2002 Posts: 85
Re: Newer IN .Net
Few more tips for you.
1. Add two forms in your project form1 and form2
2. Make startup form = form1 (from project properties)
3. Add one button in form1 and double click and write below codes (only middle three lines)
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
Dim f As New Form2 'to load form
f.ShowDialog() 'or f.show to show form
f = Nothing 'to clear the memory
End Sub
it will will be a startng only.
to close a form just write
me.close
If you want more code just goto search and your will find tons of answers from this forum or from Google search.