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 


Help: HELP ME FAST!

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

Joined: 12 Dec 2007
Posts: 44

PostPosted: Tue Feb 05, 2008 4:56 am    Post subject: Help: HELP ME FAST! Reply with quote

Hi, i am coding a program, and i want a function thta if u translate some word right and click a button Form2 opens.

:
If TextBox1 "This is a good prog" Form2.show"
Something like that...

pls help..
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Feb 05, 2008 5:08 am    Post subject: Reply with quote

Language?
Looks like a combination of delphi and vb or something...

if its delphi then
Code:
if TextBox1.Text = '...' then begin
Form2:=TForm2.Create(Form1); //Creating form2 as a child window to Form1.
Form2.Show();
end;
Back to top
View user's profile Send private message
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

PostPosted: Tue Feb 05, 2008 5:23 am    Post subject: Reply with quote

Symbol wrote:
Language?
Looks like a combination of delphi and vb or something...

if its delphi then
Code:
if TextBox1.Text = '...' then begin
Form2:=TForm2.Create(Form1); //Creating form2 as a child window to Form1.
Form2.Show();
end;


Its Visual Basic 2008..
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Feb 05, 2008 7:02 am    Post subject: Reply with quote

if text2.text="lol" then
form2.show()
end if

sorry, im trying to code that in this text box. try it for yourself.

_________________
Get kidnapped often.
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: Tue Feb 05, 2008 7:59 am    Post subject: Reply with quote

Symbol wrote:
Language?
Looks like a combination of delphi and vb or something...

if its delphi then
Code:
if TextBox1.Text = '...' then begin
Form2:=TForm2.Create(Form1); //Creating form2 as a child window to Form1.
Form2.Show();
end;


Wouldn't it be

Code:

Form2.Show;


Since the "Show" procedure takes no parameters?

_________________
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: Tue Feb 05, 2008 8:23 am    Post subject: Reply with quote

vb08 forces those brackets to be made - try it
_________________
Get kidnapped often.
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: Tue Feb 05, 2008 8:29 am    Post subject: Reply with quote

samuri25404 wrote:
Symbol wrote:
Language?
Looks like a combination of delphi and vb or something...

if its delphi then
Code:
if TextBox1.Text = '...' then begin
Form2:=TForm2.Create(Form1); //Creating form2 as a child window to Form1.
Form2.Show();
end;


Wouldn't it be

Code:

Form2.Show;


Since the "Show" procedure takes no parameters?

_________________
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
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

PostPosted: Thu Feb 07, 2008 2:17 am    Post subject: Reply with quote

samuri25404 wrote:
Symbol wrote:
Language?
Looks like a combination of delphi and vb or something...

if its delphi then
Code:
if TextBox1.Text = '...' then begin
Form2:=TForm2.Create(Form1); //Creating form2 as a child window to Form1.
Form2.Show();
end;


Wouldn't it be

Code:

Form2.Show;


EDIT: Blland's code worked, now iam progressing with the program.

Since the "Show" procedure takes no parameters?

No, that would only open up the form, without answer the question. I rather test the code that Blland told.
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