Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
AnswerRe: fetch the physical path of file saved in cache Pin
Richard Andrew x6431-Oct-10 12:23
professionalRichard Andrew x6431-Oct-10 12:23 
AnswerRe: fetch the physical path of file saved in cache Pin
T M Gray1-Nov-10 4:32
T M Gray1-Nov-10 4:32 
QuestionAdd control to form ,from UserControl Pin
Said Ali Jalali30-Oct-10 22:30
Said Ali Jalali30-Oct-10 22:30 
AnswerRepost Pin
OriginalGriff30-Oct-10 22:39
mveOriginalGriff30-Oct-10 22:39 
GeneralRe: Repost Pin
Said Ali Jalali30-Oct-10 23:18
Said Ali Jalali30-Oct-10 23:18 
GeneralRe: Repost Pin
Abhinav S31-Oct-10 23:47
Abhinav S31-Oct-10 23:47 
AnswerRe: Add control to form ,from UserControl Pin
Shuaib wasif khan1-Nov-10 1:50
Shuaib wasif khan1-Nov-10 1:50 
GeneralRe: Add control to form ,from UserControl Pin
Said Ali Jalali2-Nov-10 23:53
Said Ali Jalali2-Nov-10 23:53 
Rose | [Rose]
Hi.
Let me tell you again.
I create a UserControl .OK!.
In Load event i write this:
<pre>

private void UserControl1_Load(object sender, EventArgs e)
{
//Add Form1 to your UserControl with one Button on(button 1) it.Think we did design it.
Form1 f1=new Form1();
f1.Show Dialog();
}
</pre>
And now in that button(f1.button1) write this:
<pre>
private void button1_Click(object sender, EventArgs e)
{
TextBox textBox= new TextBox();
textBox.Text="Name";
//And now work start.
//Now i want to get the Form that you add the<b> UserControl</b> on it,Got it??The Main Form that Contain the UserControl.
//Form1 or any other name
Form1 f1=new Form1();
f1.Controls.Add(textBox);
//
}
</pre>
The question is How to get that form and throw(Add) the textBox on it!!We don't have it now!!??What a code should we write?
I hope you understand what i am telling you.
Thank you.
Rose | [Rose]

CanI
QuestionHow to use Get Post in C# Pin
Sonu J30-Oct-10 20:38
Sonu J30-Oct-10 20:38 
AnswerRe: How to use Get Post in C# Pin
Abhinav S31-Oct-10 0:02
Abhinav S31-Oct-10 0:02 
AnswerRe: How to use Get Post in C# Pin
Eddy Vluggen31-Oct-10 0:05
professionalEddy Vluggen31-Oct-10 0:05 
AnswerRe: How to use Get Post in C# Pin
Ravi Bhavnani31-Oct-10 16:33
professionalRavi Bhavnani31-Oct-10 16:33 
AnswerRe: How to use Get Post in C# Pin
VarunSharma432-Nov-10 20:44
professionalVarunSharma432-Nov-10 20:44 
QuestionPopulate c# datastructure from table or view [modified] Pin
Michael Pauli30-Oct-10 14:48
Michael Pauli30-Oct-10 14:48 
AnswerRe: Populate c# datastructure from table or view Pin
Karthik. A30-Oct-10 15:59
Karthik. A30-Oct-10 15:59 
QuestionResizing form according to the screen resolution Pin
Nouman Bhatti29-Oct-10 22:03
Nouman Bhatti29-Oct-10 22:03 
AnswerRe: Resizing form according to the screen resolution Pin
OriginalGriff29-Oct-10 22:31
mveOriginalGriff29-Oct-10 22:31 
GeneralRe: Resizing form according to the screen resolution Pin
Michael Pauli30-Oct-10 14:55
Michael Pauli30-Oct-10 14:55 
GeneralRe: Resizing form according to the screen resolution Pin
OriginalGriff30-Oct-10 20:53
mveOriginalGriff30-Oct-10 20:53 
AnswerRe: Resizing form according to the screen resolution Pin
Eddy Vluggen31-Oct-10 0:14
professionalEddy Vluggen31-Oct-10 0:14 
AnswerRe: Resizing form according to the screen resolution Pin
fjdiewornncalwe31-Oct-10 9:40
professionalfjdiewornncalwe31-Oct-10 9:40 
Questiondatagridview KeyDown event doesnt working Pin
Erdinc2729-Oct-10 21:45
Erdinc2729-Oct-10 21:45 
AnswerRe: datagridview KeyDown event doesnt working Pin
Richard MacCutchan29-Oct-10 22:45
mveRichard MacCutchan29-Oct-10 22:45 
GeneralRe: datagridview KeyDown event doesnt working Pin
Erdinc2730-Oct-10 1:14
Erdinc2730-Oct-10 1:14 
GeneralRe: datagridview KeyDown event doesnt working Pin
Dave Kreskowiak30-Oct-10 9:02
mveDave Kreskowiak30-Oct-10 9:02 

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.