Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a Form from another form

Status
Not open for further replies.

mushin

Programmer
Oct 4, 2000
49



I have a form 'myform.vb', with some menu options on it, one of which is 'new'. When I select 'new', I want to run
a different form, 'myform2.vb',to collect some data.


So, How do you run 1 form from another ?

On my home planet I would just code:

Run c:\myDir\myForm2.exe.


Both forms are separate .vb files in the same project.

Is this not the correct structure ? or should both forms classes be in the same file ?


 
You should learn the basics before starting programming in a language you don(t know. And you should do a search on this forum you will find hundreds of posts about it. But anyway this one more.

dim tempmyform2 as new myform2
tempmyform2.show

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Actually I have 4 vb.net books I have been using and you might be suprised to learn that it is not particularly easy to locate information about specific syntax when you are unfamiliar with the keywords in that syntax.

I have searched this forum many times for various questions and have found that those who have replied did so willingly
and with a desire to actually help.

Your reply is in a somewhat different category, but thanks anyway.
 
I agree, getting started in vb.net as a newby is a pain. I was up until 12pm last nite digging around tek tips and my books for info on combo boxes.

I am now on a search for how to use the menu program. There isnt much on tek tips about it, and my books dont have chapters on it either.

I have found these books helpful. I have also had some great help from various posters on tek tips.

murachs vb.net database programming
Visual Basic.Net Database programming

Hopefully others will post some useful documents to read.



 
Another good bVB net beginners book is 'Beginning VB.Net 2003' from WROX. It teaches the fundementals, including data access and web page programming.

And for you, GaryWilsonCPA, there is a whole chapter on meu programming. Also includes a fair amount of info on combo boxes.

What I find frustrating is that no one book includes all the information I want or need. Altho I am a programmer by trade, most work I do is in support of Document workflow, storage and retrieval. Basically it means I am a system Admin, programmer, and help desk for the products I have to support. VB.net is still in the hobby phase, altho I hope the future will see my division switch. We do a lot of Foxpro programming as it is easy, fast and meets our needs well, to a point (altho VFP 6 is showing it's age). Most programming I do is to create applications to print barcode seperator pages for our imaging system. The barcodes provide the index info. And foxpro has a very nice report geneator to print the barcodes.

Wish I could say crystal reports was a s easy. It isn't. I find the net framework to be bloated. Never had to use so many namespaces to access data as the net framework forces you to do.

On the otherhand, vb.net seems to be easier to accomplish certain tasks than older versions of vb, once you learn how and understand whats going on.

Ok, I'm off my soap box now.
 
Have you found any good examples of setting up a crystal reports within a vb.net form.

I have been using crystal reports for 5 years now, at first i hated crystal, but now crystal is like my best friend.

 
crystal your best friend. Then you should get a real reporting engine. :)

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Even though we are straying a bit from the original topic which is long since solved.... I'm not so enamoured with
Crystal either so

What would a REAL reporting engine be ?

 
9rays sharpshooter


Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Oh, I'm having TONS of fun with crystal. Trying to figure out why/how to use a barcode font (SKANDATAC39). Using this font I need to append an asterisk on both ends.

Plus Crystal doesn't print much other than garbage, no matter what font I try. Have been told this may be a PCL problem. I'm printing to a networked HO 5simx printer (which prints everything else properly).
 
Code 39 always needs stars at the end and the beginning else it can't be read by the barcodereader. try code 128 A,B or C depending on what characters you need. or those really kewl 2D codes makes it look a lot more professional.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top