Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
AnswerRe: Winforms Update form label from a class library Pin
BobJanova9-Jan-12 5:05
BobJanova9-Jan-12 5:05 
GeneralRe: Winforms Update form label from a class library Pin
Member 43365949-Jan-12 5:17
Member 43365949-Jan-12 5:17 
GeneralRe: Winforms Update form label from a class library Pin
BobJanova9-Jan-12 6:46
BobJanova9-Jan-12 6:46 
AnswerRe: Winforms Update form label from a class library Pin
RexGrammer9-Jan-12 8:11
RexGrammer9-Jan-12 8:11 
AnswerRe: Winforms Update form label from a class library Pin
Luc Pattyn9-Jan-12 8:15
sitebuilderLuc Pattyn9-Jan-12 8:15 
GeneralRe: Winforms Update form label from a class library Pin
DaveyM699-Jan-12 8:43
professionalDaveyM699-Jan-12 8:43 
AnswerRe: Winforms Update form label from a class library Pin
BillWoodruff10-Jan-12 6:17
professionalBillWoodruff10-Jan-12 6:17 
QuestionHow to access the control of a form from diffrent form? Pin
Paramu19739-Jan-12 4:08
Paramu19739-Jan-12 4:08 
In Form2()
=========
In Form2 I have one Button and One richtextbox. And from the Button-1 I have created new form called "MyAppFrm" My requirement is while the mouse move away from MyAppFrm, Form2-RichTextBox - has to Fous(). But its not focusing...When I try to click on RichTextBox1, the control shows always in MyAppFrm. So How to achieve this...

C#
private void Form2_Load(object sender, EventArgs e)
{
Form MyAppFrm = new Form();
MyAppFrm.MouseLeave += new EventHandler(this.MyAppFrm_MouseLeave); 
}

private void button1_Click(object sender, EventArgs e)
{
MyAppFrm.Size = new System.Drawing.Size(775, 125);
MyAppFrm.StartPosition = FormStartPosition.CenterParent;
MyAppFrm.ShowDialog();  
}

public void MyAppFrm_MouseLeave(object sender, System.EventArgs e)
{
richTextBox1.Text = sender.GetType().ToString() + ": MouseLeave";
richTextBox1.Focus();
}

ThanksThumbs Up | :thumbsup:
AnswerRe: How to access the control of a form from diffrent form? Pin
Ravi Bhavnani9-Jan-12 4:15
professionalRavi Bhavnani9-Jan-12 4:15 
AnswerRe: How to access the control of a form from diffrent form? Pin
RexGrammer9-Jan-12 8:09
RexGrammer9-Jan-12 8:09 
AnswerRe: How to access the control of a form from diffrent form? Pin
DaveyM699-Jan-12 9:07
professionalDaveyM699-Jan-12 9:07 
AnswerRe: How to access the control of a form from diffrent form? Pin
BillWoodruff10-Jan-12 6:55
professionalBillWoodruff10-Jan-12 6:55 
GeneralRe: How to access the control of a form from diffrent form? Pin
Paramu197310-Jan-12 19:03
Paramu197310-Jan-12 19:03 
Questiondesktop sharing Pin
Member 38923438-Jan-12 21:24
Member 38923438-Jan-12 21:24 
AnswerRe: desktop sharing Pin
RexGrammer9-Jan-12 1:56
RexGrammer9-Jan-12 1:56 
AnswerRe: desktop sharing Pin
Ravi Bhavnani9-Jan-12 2:06
professionalRavi Bhavnani9-Jan-12 2:06 
QuestionReading an image from an array of data on disk Pin
Subterranean8-Jan-12 1:36
Subterranean8-Jan-12 1:36 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 1:46
sitebuilderLuc Pattyn8-Jan-12 1:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:06
harold aptroot8-Jan-12 4:06 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 4:46
sitebuilderLuc Pattyn8-Jan-12 4:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:55
harold aptroot8-Jan-12 4:55 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 5:08
sitebuilderLuc Pattyn8-Jan-12 5:08 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 5:22
harold aptroot8-Jan-12 5:22 
GeneralRe: Reading an image from an array of data on disk Pin
BobJanova9-Jan-12 0:59
BobJanova9-Jan-12 0:59 
QuestionSearch engine for LAN Pin
archies_gall8-Jan-12 0:50
archies_gall8-Jan-12 0:50 

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.