how to hide/minimize an application

Posted by Subbiraj under VB.NET on 11/22/2012 | Points: 10 | Views : 1978 | Status : [Member] | Replies : 3
I have an appliction through it opening/starting another software which always come front of my application and i have to minimize it manualy.

I want when any application/software open through my applicaion should be open in background and minimize always(no reflection).

using code like this but not working.

Any suggestion or something new.


Diagnostics.Process.Start("path\Notepad.exe")

then calling below functions

FindAndMinimizeWindowByTitle("notepad")

Public Const SW_MINIMIZE As Integer = 6
Public Function ShowWindow(ByVal hWnd As IntPtr, ByVal nCmdShow As Integer) As Integer
End Function

Public Function FindAndMinimizeWindowByTitle(ByVal Title As String) As Boolean

For Each clsProcess As System.Diagnostics.Process In System.Diagnostics.Process.GetProcesses
If (clsProcess.ProcessName = Title) Then

ShowWindow(clsProcess.MainWindowHandle, SW_MINIMIZE)

Return True
End If
Next
Return False

End Function








Subhash.C


Responses

Posted by: aswinialuri-19361 on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi,

I think its very useful for you
http://www.a2zmenu.com/Blogs/Silverlight/WPF-Hide-minimize-button-of-a-window.aspx
please search on this site.

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Subbiraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi
we will use jquery for text hiding process
it is very easy and as well as simple to do.

<html>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>


thanks



Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Subbiraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Subbiraj on: 11/30/2012 [Member] Starter | Points: 25

Up
0
Down
I think,

You can't control other exe/application accordingly, you need to change in your application accordingly.

Subhash.C

Subbiraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response