Main form not getting in focus and taskbar

K

Khadim

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top