| View previous topic :: View next topic |
| Author |
Message |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 2:19 pm Post subject: How do you....? |
|
|
FIXEDDDDD.
Make a form hide from a button, than make it re-appear next time you click that button?
Hides Form2
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 |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Fri Mar 14, 2008 3:10 pm Post subject: Re: How do you....? |
|
|
| AndrewMan wrote: | FIXEDDDDD.
Make a form hide from a button, than make it re-appear next time you click that button?
Hides Form2
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
but wont me.hide cause the button to disappear?
_________________
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 3:27 pm Post subject: |
|
|
Thats what I thought, but guess not
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Mar 14, 2008 3:36 pm Post subject: |
|
|
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 |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 3:48 pm Post subject: |
|
|
| 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 |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Fri Mar 14, 2008 4:04 pm Post subject: |
|
|
| 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);
is exactly the same as
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.
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Fri Mar 14, 2008 7:44 pm Post subject: |
|
|
have you tried layered containers on one form instead of two forms on each other?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Fri Mar 14, 2008 9:13 pm Post subject: |
|
|
for trainers i mostly only use show cause user always want to see the flash game
_________________
|
|
| Back to top |
|
 |
|