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 


How do you....?

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

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 2:19 pm    Post subject: How do you....? Reply with quote

FIXEDDDDD.

Make a form hide from a button, than make it re-appear next time you click that button?

Code:
Form2.Hide

Hides Form2

Code:
Form2.Show

Opens Form2

Fixed:
Code:
If Form1.Visible = True Then
            Form1.Show()
            Form3.Hide()
            Me.Hide()
        ElseIf Form1.Visible = False Then
            Form1.Hide()
            Form3.Show()
            Me.Hide()

        End If

_________________
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Fri Mar 14, 2008 3:10 pm    Post subject: Re: How do you....? Reply with quote

AndrewMan wrote:
FIXEDDDDD.

Make a form hide from a button, than make it re-appear next time you click that button?

Code:
Form2.Hide

Hides Form2

Code:
Form2.Show

Opens Form2

Fixed:
Code:
If Form1.Visible = True Then
            Form1.Show()
            Form3.Hide()
            Me.Hide()
        ElseIf Form1.Visible = False Then
            Form1.Hide()
            Form3.Show()
            Me.Hide()

        End If

hey nice if both forms have same size and on same psoition it will look like its the same form Razz
but wont me.hide cause the button to disappear?

_________________
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 3:27 pm    Post subject: Reply with quote

Thats what I thought, but guess not Very Happy
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Mar 14, 2008 3:36 pm    Post subject: Reply with quote

the Me (or this in C#) is a way to use a current instance of a class or object.

like... Me.Button1.Text = "Cocks"
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Mar 14, 2008 3:48 pm    Post subject: Reply with quote

slovach wrote:
the Me (or this in C#) is a way to use a current instance of a class or object.

like... Me.Button1.Text = "Cocks"


So me would refer to the current form you are on?

Like of you are doing something on form1, you would use Me.

And if you were doing something on Form2, you would use Me?

_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Mar 14, 2008 4:04 pm    Post subject: Reply with quote

AndrewMan wrote:
slovach wrote:
the Me (or this in C#) is a way to use a current instance of a class or object.

like... Me.Button1.Text = "Cocks"


So me would refer to the current form you are on?

Like of you are doing something on form1, you would use Me.

And if you were doing something on Form2, you would use Me?


First off, it isn't just with Forms, it's with all classes.

Second, this (C#--and I'm pretty sure it's the same in VB.NET) is not necessary (maybe it might be necessary in VB.NET for Me.Computer or whatever);

Code:

this.Close();


is exactly the same as

Code:

Close();


I use it for style and readability, but you don't need to.

It's also an easy way to access the current class's properties, fields, and methods.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Fri Mar 14, 2008 7:44 pm    Post subject: Reply with quote

have you tried layered containers on one form instead of two forms on each other?
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Fri Mar 14, 2008 9:13 pm    Post subject: Reply with quote

for trainers i mostly only use show cause user always want to see the flash game
_________________
Back to top
View user's profile Send private message
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