Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralC# Data Access Pin
John L. DeVito28-Nov-04 12:11
professionalJohn L. DeVito28-Nov-04 12:11 
GeneralRe: C# Data Access Pin
rslosberg28-Nov-04 12:20
rslosberg28-Nov-04 12:20 
GeneralRe: C# Data Access Pin
Robin Panther28-Nov-04 16:10
Robin Panther28-Nov-04 16:10 
GeneralImplementing IBindingListView.Filter Pin
rslosberg28-Nov-04 12:01
rslosberg28-Nov-04 12:01 
GeneralRe: Implementing IBindingListView.Filter Pin
Heath Stewart28-Nov-04 21:02
protectorHeath Stewart28-Nov-04 21:02 
Generalimprove button appearence Pin
new_eng_0728-Nov-04 10:27
new_eng_0728-Nov-04 10:27 
GeneralRe: improve button appearence Pin
DavidNohejl28-Nov-04 11:06
DavidNohejl28-Nov-04 11:06 
GeneralRe: improve button appearence Pin
new_eng_0728-Nov-04 11:37
new_eng_0728-Nov-04 11:37 
GeneralC # datagrid combo box Pin
imranmarwat28-Nov-04 10:22
imranmarwat28-Nov-04 10:22 
GeneralLinkButton Pin
ruifernandes2428-Nov-04 9:30
ruifernandes2428-Nov-04 9:30 
GeneralRe: LinkButton Pin
Luis Alonso Ramos28-Nov-04 10:02
Luis Alonso Ramos28-Nov-04 10:02 
GeneralFile IO Pin
StephenMcAllister28-Nov-04 8:18
StephenMcAllister28-Nov-04 8:18 
GeneralRe: File IO Pin
Robin Panther28-Nov-04 15:59
Robin Panther28-Nov-04 15:59 
QuestionNodes? Pin
Jerry Hammond28-Nov-04 5:19
Jerry Hammond28-Nov-04 5:19 
AnswerRe: Nodes? Pin
Alex Korchemniy28-Nov-04 9:21
Alex Korchemniy28-Nov-04 9:21 
AnswerRe: Nodes? Pin
Yulianto.28-Nov-04 21:31
Yulianto.28-Nov-04 21:31 
GeneralEditing bookmarks in Word using late binding Pin
Tommy Fransson28-Nov-04 4:10
Tommy Fransson28-Nov-04 4:10 
GeneralOleDb Connection string password Pin
Anonymous28-Nov-04 3:58
Anonymous28-Nov-04 3:58 
QuestionOpen & close window? Pin
gyokusei28-Nov-04 2:14
gyokusei28-Nov-04 2:14 
AnswerRe: Open & close window? Pin
Stefan Troschuetz28-Nov-04 3:20
Stefan Troschuetz28-Nov-04 3:20 
GeneralObsolete ICodeCompiler interface Pin
thepersonof28-Nov-04 0:28
thepersonof28-Nov-04 0:28 
GeneralRe: Obsolete ICodeCompiler interface Pin
Nick Parker28-Nov-04 5:44
protectorNick Parker28-Nov-04 5:44 
GeneralHiding a form and displaying only a tray icon Pin
CoffeeZombie27-Nov-04 23:42
CoffeeZombie27-Nov-04 23:42 
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs that pop up if the user selects an option from the context menu on the tray icon. I've had a look at the example on code project that creates an application that runs in the system tray:

http://www.codeproject.com/csharp/desktop_mail_checker.asp

So I copied how the above article sets up the main form: the form's FormBorderStyle to none, set it to minizied, disable the titlebar controls (maximize, minimize, close etc). It was all fine until I noticed that the form was visible in the Alt-Tab menu and once you had alt-tabbed to it there was no way of hiding it again Frown | :(

After a bit of googling I discover if I set the Form's FormBorderStyle to FixedToolWindow then it was no longer visible in the Alt-Tab menu, result! But today I have noticed that now I can no longer minimize or hide the form it appears as a minizied tool window in the bottom left of my desktop when the application is running and even worse if the user double clicks on the title bar the window expands to its normal size, apart from the form is empty and there's no way to minimize it again!

Anyone got any ideas as to how to completely hide form so its not visible as a window on the taskbar or on the alt-tab menu? All I want is my application's icon in the system tray while its running and a context menu for the icon. I don't really need the main form at all!

Cheers,

CoffeeZombie
GeneralRe: Hiding a form and displaying only a tray icon Pin
Skynyrd28-Nov-04 2:41
Skynyrd28-Nov-04 2:41 
GeneralRe: Hiding a form and displaying only a tray icon Pin
CoffeeZombie29-Nov-04 23:13
CoffeeZombie29-Nov-04 23:13 

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.