Groups | Blog | Home
all groups > c# > march 2006 >

c# : Main form not getting in focus and taskbar


Khadim
3/12/2006 11:15:41 PM
Hi,

I am having this problem with my application that it is not getting
itself in taskbar by itself.. i m working on this application for 5
months, don't know what happened at what time that its not getting in
focus. If during startup i bring other applications(like internet
browser, explorer or Ms-Word) to the focus, my application just starts
up and rests in the background without even showing in the takbar.

I have even tried following methods at the starting point of my main
form.. but to no avail :(

this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScreen;
this.TopLevel=true;
this.SetTopLevel(true);
this.Focus();
this.BringToFront();

I have verified my form's properties with main form's property of other
project which is behaving normal (that it is appearing in the taskbar
whatever applicaiont is my current focus)

Any guidance is highly appreciated,
thanks in advance.

Asher
Khadim
3/13/2006 3:41:29 AM
Anyone Please?
Khadim
3/13/2006 3:41:33 AM
Anyone Please?
AddThis Social Bookmark Button