| View previous topic :: View next topic |
| Author |
Message |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Tue Feb 05, 2008 4:56 am Post subject: Help: HELP ME FAST! |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Feb 05, 2008 5:08 am Post subject: |
|
|
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 |
|
 |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Tue Feb 05, 2008 5:23 am Post subject: |
|
|
| 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 |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Feb 05, 2008 7:02 am Post subject: |
|
|
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 |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Feb 05, 2008 7:59 am Post subject: |
|
|
| 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
Since the "Show" procedure takes no parameters?
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Feb 05, 2008 8:23 am Post subject: |
|
|
vb08 forces those brackets to be made - try it
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Feb 05, 2008 8:29 am Post subject: |
|
|
| 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
Since the "Show" procedure takes no parameters? |
_________________
|
|
| Back to top |
|
 |
SwedenS Cheater
Reputation: 0
Joined: 12 Dec 2007 Posts: 44
|
Posted: Thu Feb 07, 2008 2:17 am Post subject: |
|
|
| 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
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 |
|
 |
|