Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
GeneralRe: parameterized query Pin
jdkulkarni25-Aug-05 19:47
jdkulkarni25-Aug-05 19:47 
GeneralRe: parameterized query Pin
nidhelp25-Aug-05 20:02
nidhelp25-Aug-05 20:02 
GeneralRe: parameterized query Pin
jdkulkarni25-Aug-05 20:47
jdkulkarni25-Aug-05 20:47 
GeneralRe: parameterized query Pin
nidhelp25-Aug-05 20:58
nidhelp25-Aug-05 20:58 
GeneralRe: parameterized query Pin
nidhelp25-Aug-05 21:19
nidhelp25-Aug-05 21:19 
GeneralRe: parameterized query Pin
jdkulkarni25-Aug-05 23:48
jdkulkarni25-Aug-05 23:48 
GeneralRe: parameterized query Pin
nidhelp26-Aug-05 5:42
nidhelp26-Aug-05 5:42 
GeneralRe: parameterized query Pin
jdkulkarni28-Aug-05 18:19
jdkulkarni28-Aug-05 18:19 
Hi,
Ok, I thought u were waiting for my answer. It seems that Form2 does not contain txtBox1. What u need to do is create a simple textbox in Form2 and make it public. If u do not make it public it will not work.

There is another solution. Define a public property which will set the valus of text box.
Something like this..
in Form2:
private string setValue = string.Empty;
public string SetMyValue
{
set
{
this.txtBox1.Text = value;
}
}

in Form1's button click:

Form2 frm = new Form2();
frm.SetMyValue = "I got the value";
this.Hide();
frm.Show(); Big Grin | :-D

Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
GeneralRe: parameterized query Pin
Luis Alonso Ramos25-Aug-05 19:43
Luis Alonso Ramos25-Aug-05 19:43 
GeneralRe: parameterized query Pin
jdkulkarni25-Aug-05 19:54
jdkulkarni25-Aug-05 19:54 
GeneralRe: parameterized query Pin
Daniel Turini26-Aug-05 2:12
Daniel Turini26-Aug-05 2:12 
GeneralRe: parameterized query Pin
Not Active26-Aug-05 3:08
mentorNot Active26-Aug-05 3:08 
GeneralRe: parameterized query Pin
jdkulkarni26-Aug-05 3:23
jdkulkarni26-Aug-05 3:23 
GeneralRe: parameterized query Pin
Not Active26-Aug-05 3:33
mentorNot Active26-Aug-05 3:33 
AnswerRe: parameterized query Pin
Luis Alonso Ramos26-Aug-05 3:54
Luis Alonso Ramos26-Aug-05 3:54 
GeneralRe: parameterized query Pin
nidhelp26-Aug-05 6:10
nidhelp26-Aug-05 6:10 
QuestionTEXT BOX TEXT TO DOUBLE? Pin
...---...25-Aug-05 14:56
...---...25-Aug-05 14:56 
AnswerRe: TEXT BOX TEXT TO DOUBLE? Pin
Luis Alonso Ramos25-Aug-05 16:49
Luis Alonso Ramos25-Aug-05 16:49 
GeneralRe: TEXT BOX TEXT TO DOUBLE? Pin
...---...25-Aug-05 17:02
...---...25-Aug-05 17:02 
JokeRe: TEXT BOX TEXT TO DOUBLE? Pin
Luis Alonso Ramos25-Aug-05 18:03
Luis Alonso Ramos25-Aug-05 18:03 
QuestionRetrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 11:35
tsramkumar25-Aug-05 11:35 
AnswerRe: Retrieve the value of Inout parameter Pin
miah alom25-Aug-05 11:42
miah alom25-Aug-05 11:42 
GeneralRe: Retrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 11:46
tsramkumar25-Aug-05 11:46 
GeneralRe: Retrieve the value of Inout parameter Pin
miah alom25-Aug-05 11:52
miah alom25-Aug-05 11:52 
GeneralRe: Retrieve the value of Inout parameter Pin
tsramkumar25-Aug-05 12:56
tsramkumar25-Aug-05 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.