Click here to Skip to main content
15,880,972 members
Home / Discussions / C#
   

C#

 
AnswerRe: Static class access from different modules Pin
Pete O'Hanlon23-Jan-11 23:01
mvePete O'Hanlon23-Jan-11 23:01 
Questioncreate application in .net where dll is on server and application on some client machine Pin
S.Aijaz23-Jan-11 18:37
S.Aijaz23-Jan-11 18:37 
AnswerRe: create application in .net where dll is on server and application on some client machine Pin
Pravin Patil, Mumbai23-Jan-11 20:54
Pravin Patil, Mumbai23-Jan-11 20:54 
AnswerRe: create application in .net where dll is on server and application on some client machine Pin
Mycroft Holmes23-Jan-11 21:07
professionalMycroft Holmes23-Jan-11 21:07 
AnswerRe: create application in .net where dll is on server and application on some client machine Pin
Pete O'Hanlon23-Jan-11 22:26
mvePete O'Hanlon23-Jan-11 22:26 
GeneralRe: create application in .net where dll is on server and application on some client machine Pin
S.Aijaz25-Jan-11 0:28
S.Aijaz25-Jan-11 0:28 
AnswerRe: create application in .net where dll is on server and application on some client machine Pin
PIEBALDconsult24-Jan-11 1:58
mvePIEBALDconsult24-Jan-11 1:58 
QuestionGetting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
HalliHaida23-Jan-11 17:38
HalliHaida23-Jan-11 17:38 
Hi,

I am working on an application which doesn't have a UI excpet for system tray icon. It doesn't show up in taskbar and also in Alt + Tab menu. For this I have done the following in the constructor of the form,

this.Opacity = 0.0;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.ShowInTaskbar = false;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Show();
this.Visible = true;

I have a timer event handler whose job is to get the focus back to this form if it is doen't have the focus.For this I am doing the following,
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Visible = true;
this.Show();
this.Activate();

This should have worked fine but it's not Frown | :( It works sometime. Is there anything wrong in this?
What is that I am missing here which causes it to fail in getting the focus? Is there a better logic to get the focus? I have even tried using the Win32 API SetForegroundWindow but not successful.

Any help is appreciated.
AnswerRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
Eddy Vluggen24-Jan-11 4:59
professionalEddy Vluggen24-Jan-11 4:59 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
HalliHaida24-Jan-11 21:24
HalliHaida24-Jan-11 21:24 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
Eddy Vluggen25-Jan-11 8:25
professionalEddy Vluggen25-Jan-11 8:25 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
HalliHaida27-Jan-11 1:08
HalliHaida27-Jan-11 1:08 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
Eddy Vluggen27-Jan-11 9:06
professionalEddy Vluggen27-Jan-11 9:06 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
HalliHaida27-Jan-11 18:08
HalliHaida27-Jan-11 18:08 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
Eddy Vluggen27-Jan-11 20:36
professionalEddy Vluggen27-Jan-11 20:36 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
HalliHaida30-Jan-11 18:21
HalliHaida30-Jan-11 18:21 
GeneralRe: Getting focus to a form that doesn't show in taskbar and Alt + Tab menu Pin
Eddy Vluggen31-Jan-11 6:51
professionalEddy Vluggen31-Jan-11 6:51 
Questioni have this code, i need it in class Pin
Gali197823-Jan-11 9:02
Gali197823-Jan-11 9:02 
AnswerRe: i have this code, i need it in class Pin
Pete O'Hanlon23-Jan-11 9:12
mvePete O'Hanlon23-Jan-11 9:12 
AnswerRe: i have this code, i need it in class Pin
Manfred Rudolf Bihy23-Jan-11 9:26
professionalManfred Rudolf Bihy23-Jan-11 9:26 
AnswerRe: i have this code, i need it in class Pin
fjdiewornncalwe23-Jan-11 10:20
professionalfjdiewornncalwe23-Jan-11 10:20 
AnswerRe: i have this code, i need it in class Pin
Luc Pattyn23-Jan-11 10:39
sitebuilderLuc Pattyn23-Jan-11 10:39 
AnswerRe: i have this code, i need it in class Pin
Abhinav S23-Jan-11 17:38
Abhinav S23-Jan-11 17:38 
AnswerRe: i have this code, i need it in class Pin
Thomas Krojer24-Jan-11 0:16
Thomas Krojer24-Jan-11 0:16 
QuestionHow to hosting custom deisgner ? Pin
hdv21223-Jan-11 8:51
hdv21223-Jan-11 8:51 

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.