Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can i make a url? [modified] Pin
roebuck-code25-Jan-11 20:11
roebuck-code25-Jan-11 20:11 
AnswerRe: how can i make a url? Pin
Paladin200024-Jan-11 3:49
Paladin200024-Jan-11 3:49 
JokeRe: how can i make a url? Pin
fjdiewornncalwe24-Jan-11 3:53
professionalfjdiewornncalwe24-Jan-11 3:53 
JokeRe: how can i make a url? Pin
Paladin200024-Jan-11 3:58
Paladin200024-Jan-11 3:58 
AnswerRe: how can i make a url? Pin
roebuck-code12-Feb-11 20:12
roebuck-code12-Feb-11 20:12 
QuestionStatic class access from different modules Pin
Chesnokov Yuriy23-Jan-11 22:21
professionalChesnokov Yuriy23-Jan-11 22:21 
AnswerRe: Static class access from different modules Pin
Pete O'Hanlon23-Jan-11 22:48
mvePete O'Hanlon23-Jan-11 22:48 
QuestionRe: Static class access from different modules Pin
Chesnokov Yuriy23-Jan-11 23:00
professionalChesnokov Yuriy23-Jan-11 23:00 
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 

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.