OT: .NET Visual Basic

  • Thread starter Thread starter bojan.sekoranja
  • Start date Start date
B

bojan.sekoranja

Sorry for the off topic but which group would you recomend for
questions about .NET Visual Basic?
I have some beginners questions and i need some help.
I'm going to ask them here so if someone can help me I would apriciate
that.
This are questions for the .NET Visual Basic program:not integrated
in access.
How can I make a form in visual basic and open it from another form
because i know how to make a main form but i cant make other forms. Or
is there a way to make this from the main menu? How can i work with
main manu? How can it open new forms and so on...
Please help or just point me to a god news group or web page!

Thanks

Bojan
 
For general VB.NET questions ...
microsoft.public.dotnet.languages.vb

This looks like a Windows Forms question, so the following newsgroup might
also by relevant ...
microsoft.public.dotnet.framework.windowsforms

As for web pages - there are more web pages devoted to VB.NET than you could
shake a stick at, but MSDN is probably as good a starting point as any ...
http://msdn.microsoft.com/vbasic/
 
Microsoft's site has some great video tutorials.
and an accompanying pdf. if you click navigate to the express area of
their site. I'd reccomend them.

To your question : -

To add a new form you use the 'add item' command. (third button on the
toolbar) or hotkey: Cntrl + Shift + A - then from the options select
'Windows Form'.

To open this form from a button on your first form - drop a button onto
your first form from the toolbox, double click it (which gets you to
the part of the code which is executed when the button is clicked).

Your newly created form assuming you leave it's name as the default and
is your second form can be opened using the following command.

Form2.Show()

This isn't very good code however, because Form2 is a class, VB.net
actually creates an 'instance' of the class (remember a class is a
blueprint not the actual form.) and when you type this it figures you
are referring to the instance of the class, and so it works.

A better way of showing your second form however would be to use the
following code: -
Dim frm As New Form2()
frm.Show()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top