Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

how to mimimize an application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saravanan - 28 Feb 2007 06:54 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.