Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Question] Visual Basic 6

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 10:52 am    Post subject: [Question] Visual Basic 6 Reply with quote

Right So Im Creating Yet Another Trainer (Oh No Another Kickme93 Trainer!)
I Was Wondering... How Do You Make Them Tool Box Things At The Top You Know Like In IE Or Any Other Program You Click File And It Has A Menu Appear. Scroll Down Menu Or Somthing Like That, Im Not Sure About The Name.

Anyways Back To My Question. How Do I Make One Of Them?

Thanks
Kickme93

I Will +Rep You Smile
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Nov 15, 2007 11:25 am    Post subject: Reply with quote

vb6:
Right click form and click menu editor

c/c++:
Create resource and add to the window

.NET:
Use MenuStrip

These are the languages I know how to add a menu. I believe delphi has a control for the menu, but I'm not too sure.
Back to top
View user's profile Send private message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 11:26 am    Post subject: Reply with quote

How Do I Use The Menu Editor In Vb6?
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Nov 15, 2007 11:36 am    Post subject: Reply with quote

You enter the caption and give it a name. Say I want to only have File and under that is Open and Exit. I would first put in File for caption and give it a name like mnuFile. In the listbox below you should see the caption. Click under File so a blank line is selected. Then put Open for caption then give it a name like mnuOpen. Then press insert. Now, click Open in the listbox and press the right arrow. Do the same for Exit as you did for Open. If there are no blank lines, press the insert button. Hope this was clear.
Back to top
View user's profile Send private message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 11:41 am    Post subject: Reply with quote

Im Completly Lost From That..

So First I Enter Something In Caption For Example Hacks. Then What?
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Nov 15, 2007 11:53 am    Post subject: Reply with quote

Made .wmv to show what I wrote.


The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 11:55 am    Post subject: Reply with quote

Thanks Smile, This Will Be Dead Helpful!

Now Then..
How Do I Add Little Submenus Into That?
How Do I Program Exit To Close The Trainer?
Will I Be Programming It The Same Way With Adding Hacks?
How Do I Add More Menu's (File, Edit, View Etc)
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games Smile
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Thu Nov 15, 2007 3:04 pm    Post subject: Reply with quote

kickme93 wrote:
Thanks Smile, This Will Be Dead Helpful!

Now Then..
How Do I Add Little Submenus Into That?
How Do I Program Exit To Close The Trainer?
Will I Be Programming It The Same Way With Adding Hacks?
How Do I Add More Menu's (File, Edit, View Etc)
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games Smile

How Do I Program Exit To Close The Trainer?
Code:
End

How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games Smile
Code:
Form2.Show

How Do I Add Little Submenus Into That?
Click the -> button on the menu.[/code]
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 15, 2007 3:09 pm    Post subject: Reply with quote

Moller wrote:
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games Smile
Code:
Form2.Show


Just a quick note, if you are loading more then one form in your project, or objects being set and so on, you need to unload them before exiting the program or they will just get stuck in memory causing memory leaks.

So if you have multiple forms you will need to, for example:

Code:
Unload Form3
Unload Form2
Unload Form1
End


And if you are setting objects to things, make sure you set them to nothing when you are done using them.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Nov 15, 2007 3:20 pm    Post subject: Reply with quote

Quote:

How Do I Add More Menu's (File, Edit, View Etc)


To add more you just add the caption and name, but it should not have any dots. So if you want File, Edit, and About it would look like this in the listview

Code:

File
''''Something
Edit
''''Something
About
''''Something


If you want something to have a sub menu, it would look something like this
Code:

File
''''Something
'''''''''Something2

This would mean click the right arrow two times for something2.
Back to top
View user's profile Send private message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 3:30 pm    Post subject: Reply with quote

Im Lost... Explain With A Little Bit More Detail Please?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 15, 2007 4:14 pm    Post subject: Reply with quote

kickme93 wrote:
Im Lost... Explain With A Little Bit More Detail Please?


Killer explained it fine. Just use the shift to right button in the menu editor twice to move it into a menu items sub menu.



untitled.PNG
 Description:
 Filesize:  11 KB
 Viewed:  5887 Time(s)

untitled.PNG



_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Thu Nov 15, 2007 5:15 pm    Post subject: Reply with quote

I See It Now! Thanks!
Any Possible Explanation On The Others (Sorry Im Rubbish With Codes And Programming But Im Learning!)
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Thu Nov 15, 2007 6:09 pm    Post subject: Reply with quote

To show a new form, you can use set.
Code:

Set f = new Form2


Depending if you want it so you can play with the parent form with the other form open, you wouldn't add vbModal. If you want to restrict it to only play time with one form, you add vbModal to show

Code:

f.Show
------------------
f.Show vbModal


As wiccaan said, you need to unload it. You can do this with the terminate event. I usually do it on the form that closes instead of unloading them all at the same time. If you have vbModal with show, you can put unload after that line

Code:

f.show vbModal
Unload f



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 15, 2007 8:23 pm    Post subject: Reply with quote

When you use vbModal on a form that form takes control (inherits the handle) and the other form that called it will stop what it's doing until the loaded form is done. With that, if you are using Set to create the new form, you need to set it to nothing when you are done with it:

Code:
Set f = New Form2
Form2.Show vbModal, Form1
Set f = Nothing


The form sub Form_Unload will be called in form2 when you close it normally so you do not need to unload it yourself. If you don't use Set blah = Nothing, you are leaving the memory allocated to a blank instance of the form which will / can cause memory leaks.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites