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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Button 1

Status
Not open for further replies.

sha123

Programmer
Nov 13, 2002
58
ZA
Hi Please help

I am new at visual basic(Just started to study it).
What will the code be for opening a form from a command button???
 
At this level of your studies, you might try a few VB books or an online course.

The VB for Dummies book will be a good starting point in books

will start you online

For now, just try Form2.Show
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 

And, create a new project using the project wizard.
It will code for you some of the basic operations. [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
and Tek-Tips is for software professionals... All the Best
Praveen Menon
pcmin@rediffmail.com
 

>and Tek-Tips is for software professionals...

Tek-Tips VB 5 & 6 forum is for any serious VB software developer....also for beginners!!

"Professional" doesn't mean "experienced" or non-beginner! [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 

I posted that because I feel that sha123 asking this question here is perfectly alright.

And, along with that, I believe that johnwm's answer was the proper and professional answer to that question.

Not ignoring a beginner, but showing them that they are welcomed here, and not just giving "easy" code to a beginner (or possibly, in other cases, a lazy person), but directing them where to find the right answers, and in doing so, helping them the best possible way:
Showing them how to help one's self.


[/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
I am also relatively new to programming in VB6 and that sort of comment would have made me stop coming here. As it is i was lucky not to have any of that, and now i am occasionaly able to offer help to newbies. And in other forums.

Well done CCLINT.

sha123 you may find also that: Deitel & deitel : VB6 how to program is a good book, it is not the best for explinations but has a lot of good and helpful content.

Good Luck! __________________________________
Create like a God, Command like a King, Work like a slave..
 
Thanks eveyone! I played and I figured out the code for my problem it would be:

Form1.show
Me.Hide
(Form being whatever your form is called)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top