Hi
I am using C#, i dont know to know how to minimize the application in
Taskbar when i click the button(its not minimizebox button), that means how
to handle it?? normally if u click the minimize button on the form it will
minimize the form, how can i do it in a simple button click event
Regards
Saravanan
Manish Bafna - 28 Feb 2007 08:48 GMT
Hi,
This link should help you:
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20947279.html
Search for NotifyIcon on that page.

Signature
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
> Hi
>
[quoted text clipped - 5 lines]
> Regards
> Saravanan
Saravanan - 28 Feb 2007 09:18 GMT
Hi iam planning to handle this in some different way.
using sendkeys.send() method to minimize the application, for that i have to
pass the argument of (LWin+M). Lwin is for windows logo key and M, these
combination will minimize the application, but the problem is how to pass
this combination to sendkeys.Send(), i searched in the net but so far nothing
i got regarding this, Can u please help so that i can implement this feature
Regards
> Hi,
> This link should help you:
[quoted text clipped - 12 lines]
> > Regards
> > Saravanan
Manish Bafna - 28 Feb 2007 10:06 GMT
Hi,
try this code in the click event of the button:
myForm.WindowState = FormWindowState.Minimized;

Signature
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
> Hi
>
[quoted text clipped - 5 lines]
> Regards
> Saravanan
Saravanan - 28 Feb 2007 10:41 GMT
I am using UserControl, that property is not there
> Hi,
> try this code in the click event of the button:
[quoted text clipped - 9 lines]
> > Regards
> > Saravanan
Herfried K. Wagner [MVP] - 28 Feb 2007 15:34 GMT
"Saravanan" <Saravanan@discussions.microsoft.com> schrieb:
>I am using UserControl, that property is not there
\\\
Dim ParentForm As Form = Me.FindForm()
If ParentForm IsNot Nothing Then
ParentForm.WindowState = FormWindowState.Minimized
End If
///

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Manish Bafna - 28 Feb 2007 13:56 GMT
Hi,
you can get reference to parent form by this code:
this.ParentForm.WindowState = FormWindowState.Minimized;

Signature
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
> Hi
>
[quoted text clipped - 5 lines]
> Regards
> Saravanan
Saravanan - 28 Feb 2007 14:02 GMT
Thanks its working, How can i do it with Sendkeys.Send() method..
> Hi,
> you can get reference to parent form by this code:
[quoted text clipped - 9 lines]
> > Regards
> > Saravanan
Herfried K. Wagner [MVP] - 28 Feb 2007 15:35 GMT
"Saravanan" <Saravanan@discussions.microsoft.com> schrieb:
> Thanks its working, How can i do it with Sendkeys.Send() method..
Why would you want to do that? 'SendKeys.Send' is always problematic
because there is no guarantee the input is directed to the expected window.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Manish Bafna - 28 Feb 2007 14:34 GMT
Hi,
I think senkeys is not appropriate in this scenario.By that it will become
unnecessarily complex.I have one request is that if you have found my post
helpful then please do click "Yes" at "Was this post helpful to you?"

Signature
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
> Hi
>
[quoted text clipped - 5 lines]
> Regards
> Saravanan