[Mono-osx] How to hide mono and windows form in Mac Dock

d_v dan.vandermolen at figpsoft.com
Mon Feb 9 16:50:18 EST 2009

It turns out to hide the main form is easy in Windows .Dot Net.  Call
this.hide() in Form1_Load() and/or set the main form window property to
"ShowInTaskbar = false" and set WindowState to "Minimized".

However on Mono I have to call this.hide() in several places, not just in
Perhaps this is because I have 2 timers and memo field that I populate every
3 minutes...?

So now I can hide the main form from mono and the Dock... 
But I still can't hide the mono icon from the Mac OS X 10.5.6 Dock. Anyone? 
Unfortunately I have to release this tomorrow to a client.  I will have to
go back and fix this sometime.

I am calling mono from an applescript like this:

  do shell script "mono --debug /TESTApp/startup/MyForm.exe &>

I then save the applescript as an application bundle and set the Plist.info
information, like icons.
The applescript loads the application from a subfolder (/TESTApp/...) with
my config files I have to read & write to.

View this message in context: http://www.nabble.com/How-to-hide-mono-and-windows-form-in-Mac-Dock-tp21839765p21922804.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list