Click here to Skip to main content
16,013,548 members
Home / Discussions / C#
   

C#

 
Questionhow do i pass a parameter to Pin
robmays20-May-04 5:17
robmays20-May-04 5:17 
AnswerRe: how do i pass a parameter to Pin
Heath Stewart20-May-04 5:35
protectorHeath Stewart20-May-04 5:35 
GeneralRe: how do i pass a parameter to Pin
robmays20-May-04 7:38
robmays20-May-04 7:38 
GeneralSwitching Between Applications Pin
Harihara Subramanian20-May-04 5:10
Harihara Subramanian20-May-04 5:10 
GeneralRe: Switching Between Applications Pin
Heath Stewart20-May-04 5:28
protectorHeath Stewart20-May-04 5:28 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian20-May-04 5:46
Harihara Subramanian20-May-04 5:46 
GeneralRe: Switching Between Applications Pin
Heath Stewart20-May-04 5:52
protectorHeath Stewart20-May-04 5:52 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian21-May-04 2:21
Harihara Subramanian21-May-04 2:21 
Thanks again. ShowWindow API displays the Window only when it is present in the Task bar. It is not able to launch the window that is not present in the Task bar.

The following code snippet is what i used.

[DllImport("user32.dll")]
public static extern long ShowWindow(Int32 hwnd, Int32 ncmdShow);

private void App1_Exit(object sender, System.EventArgs e)
{
p = System.Diagnostics.Process.GetProcessesByName("Framework");
ShowWindow(p[0].MainWindowHandle.ToInt32(),1);
}


However in the main application while launching the other applications i used the below mentioned code

private void App1_Launch(object sender, System.EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
}

both the API FindWindowEx and the usage of process to find the handle returns a 0 (zero) when the window is not shown in the task bar. Kindly help me in this regard.

Harihara Subramanian
GeneralRe: Switching Between Applications Pin
Heath Stewart21-May-04 3:48
protectorHeath Stewart21-May-04 3:48 
GeneralRe: Switching Between Applications Pin
Harihara Subramanian21-May-04 5:38
Harihara Subramanian21-May-04 5:38 
GeneralRe: Switching Between Applications Pin
Heath Stewart21-May-04 6:08
protectorHeath Stewart21-May-04 6:08 
General.NET App Performance and Scalability Guide Pin
Dave Kreskowiak20-May-04 4:31
mveDave Kreskowiak20-May-04 4:31 
GeneralDir Search On Server Pin
IrishSonic20-May-04 4:14
IrishSonic20-May-04 4:14 
GeneralRe: Dir Search On Server Pin
Heath Stewart20-May-04 4:16
protectorHeath Stewart20-May-04 4:16 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:29
IrishSonic20-May-04 4:29 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:37
IrishSonic20-May-04 4:37 
GeneralRe: Dir Search On Server Pin
Heath Stewart20-May-04 4:43
protectorHeath Stewart20-May-04 4:43 
GeneralProblems with Screen.PrimaryScreen.Bounds Pin
kaloyan20-May-04 3:21
kaloyan20-May-04 3:21 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
Heath Stewart20-May-04 4:14
protectorHeath Stewart20-May-04 4:14 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
kaloyan20-May-04 21:52
kaloyan20-May-04 21:52 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
Heath Stewart21-May-04 3:30
protectorHeath Stewart21-May-04 3:30 
GeneralSingle Instance of a class as long as it is in use Pin
SmithaC20-May-04 3:03
SmithaC20-May-04 3:03 
GeneralRe: Single Instance of a class as long as it is in use Pin
Grimolfr20-May-04 3:08
Grimolfr20-May-04 3:08 
GeneralRe: Single Instance of a class as long as it is in use Pin
Heath Stewart20-May-04 3:24
protectorHeath Stewart20-May-04 3:24 
GeneralRe: Single Instance of a class as long as it is in use Pin
scadaguy20-May-04 5:57
scadaguy20-May-04 5:57 

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.