Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: Setting the icon for a program ? Pin
Heath Stewart30-Aug-04 12:33
protectorHeath Stewart30-Aug-04 12:33 
GeneralRe: Setting the icon for a program ? Pin
Christian Graus30-Aug-04 12:43
protectorChristian Graus30-Aug-04 12:43 
AnswerRe: Setting the icon for a program ? Pin
Christian Graus30-Aug-04 12:41
protectorChristian Graus30-Aug-04 12:41 
GeneralRestoring a previous instance. Pin
Dionne30-Aug-04 9:40
Dionne30-Aug-04 9:40 
GeneralRe: Restoring a previous instance. Pin
Heath Stewart30-Aug-04 9:51
protectorHeath Stewart30-Aug-04 9:51 
GeneralRe: Restoring a previous instance. Pin
Dionne30-Aug-04 9:54
Dionne30-Aug-04 9:54 
GeneralRe: Restoring a previous instance. Pin
Heath Stewart30-Aug-04 10:54
protectorHeath Stewart30-Aug-04 10:54 
GeneralRe: Restoring a previous instance. Pin
Nick Parker30-Aug-04 9:53
protectorNick Parker30-Aug-04 9:53 
Dionne wrote:
its in the system tray and hidden i'm really pulling my hair out as to how to restore it.

If you have the Handle to the window, you can call ShowWindow to cause your window to become visible. The P/Invoke signature looks like this:

const UInt32 SW_HIDE = 0 ;
const UInt32 SW_SHOWNORMAL = 1 ;
const UInt32 SW_NORMAL = 1 ;
const UInt32 SW_SHOWMINIMIZED = 2 ;
const UInt32 SW_SHOWMAXIMIZED = 3 ;
const UInt32 SW_MAXIMIZE = 3 ;
const UInt32 SW_SHOWNOACTIVATE = 4 ;
const UInt32 SW_SHOW = 5 ;
const UInt32 SW_MINIMIZE = 6 ;
const UInt32 SW_SHOWMINNOACTIVE = 7 ;
const UInt32 SW_SHOWNA = 8 ;
const UInt32 SW_RESTORE = 9 ;
const UInt32 SW_SHOWDEFAULT = 10 ;
const UInt32 SW_FORCEMINIMIZE = 11 ;
const UInt32 SW_MAX = 11 ;

[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);




- Nick Parker
My Blog | My Articles

GeneralRe: Restoring a previous instance. Pin
Dionne30-Aug-04 10:06
Dionne30-Aug-04 10:06 
GeneralRe: Restoring a previous instance. Pin
Nick Parker30-Aug-04 10:30
protectorNick Parker30-Aug-04 10:30 
GeneralRe: Restoring a previous instance. Pin
Dionne30-Aug-04 10:57
Dionne30-Aug-04 10:57 
GeneralRe: Restoring a previous instance. Pin
mav.northwind30-Aug-04 22:21
mav.northwind30-Aug-04 22:21 
QuestionCrystal Report print? Pin
murali_utr30-Aug-04 9:01
murali_utr30-Aug-04 9:01 
QuestionHow to clear selected items from multiple checkedlistboxes Pin
abhishk2001@yahoo.com30-Aug-04 8:40
abhishk2001@yahoo.com30-Aug-04 8:40 
AnswerRe: How to clear selected items from multiple checkedlistboxes Pin
Nick Parker30-Aug-04 9:27
protectorNick Parker30-Aug-04 9:27 
AnswerRe: How to clear selected items from multiple checkedlistboxes Pin
Heath Stewart30-Aug-04 9:47
protectorHeath Stewart30-Aug-04 9:47 
GeneralRe: ISA bus access Pin
Dave Kreskowiak30-Aug-04 7:47
mveDave Kreskowiak30-Aug-04 7:47 
Generalget drive roots Pin
fire.fox30-Aug-04 7:36
fire.fox30-Aug-04 7:36 
GeneralRe: get drive roots Pin
Heath Stewart30-Aug-04 8:10
protectorHeath Stewart30-Aug-04 8:10 
GeneralRe: get drive roots Pin
leppie30-Aug-04 22:23
leppie30-Aug-04 22:23 
GeneralRe: get drive roots Pin
Heath Stewart31-Aug-04 6:15
protectorHeath Stewart31-Aug-04 6:15 
Generalpopulate treeview with dataset Pin
Anonymous30-Aug-04 7:01
Anonymous30-Aug-04 7:01 
GeneralRe: populate treeview with dataset Pin
Heath Stewart30-Aug-04 7:49
protectorHeath Stewart30-Aug-04 7:49 
QuestionCan apple ArrayList in string[] Pin
arbrsoft30-Aug-04 6:57
arbrsoft30-Aug-04 6:57 
AnswerRe: Can apple ArrayList in string[] Pin
Judah Gabriel Himango30-Aug-04 7:02
sponsorJudah Gabriel Himango30-Aug-04 7:02 

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.