We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Problem with system tray application

Thread ID:

Created:

Updated:

Platform:

Replies:

55907 Feb 6,2007 04:16 PM Mar 22,2007 03:17 AM Windows Forms 1
loading
Tags: FAQ
S Prabhu
Asked On February 6, 2007 04:16 PM

This is a small system tray application (.NET 2.0, C#, VS 2005) with notify icon component. It has two forms.

The parent form has a multiline textbox control and is launched minimized/hidden; places the notify icon in the system tray.

On a single click of the notify icon, the child form is supposed to popup and present the user with a textbox for entering data. On closing this second form, any data in the textbox of the child form should be transfered to the textbox of the parent form.

This application works well in debug mode within VS 2005. But does not function properly in standalone mode.

The problem is when the child form is launched subsequent to the click of the notify icon, the textbox of the child form does not receive focus. The user will have to click the mouse in the textbox before entering any data.

Will appreciate if somebody can throw some light. Project is enclosed.

Thanks much in advance.
- bsp


NotifyIconTest.zip

Joy K George [Syncfusion]
Replied On March 22, 2007 03:17 AM

Hi Bspeng,
It seems the application is not active at that time.Please try activating the same.

this.Activate(); //This does it.

// display the child form
if (f2.ShowDialog() == DialogResult.OK){
// get the text entered by the user on the child form
textBox1.Text = f2.tbText;
}
Regards,
Joy

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;