Click here to Skip to main content
15,898,134 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRemote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 2:45
Gunner_Sr24-Mar-04 2:45 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 3:40
Roman Rodov24-Mar-04 3:40 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 4:11
Gunner_Sr24-Mar-04 4:11 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 12:55
Roman Rodov24-Mar-04 12:55 
Generalunload an assembly Pin
dzsigit24-Mar-04 2:11
dzsigit24-Mar-04 2:11 
GeneralRe: unload an assembly Pin
Roman Rodov24-Mar-04 3:25
Roman Rodov24-Mar-04 3:25 
GeneralWindow Visibility Pin
ShadowLordXP23-Mar-04 17:15
ShadowLordXP23-Mar-04 17:15 
GeneralRe: Window Visibility Pin
John Kuhn23-Mar-04 19:40
John Kuhn23-Mar-04 19:40 
I thought there was a way of doing this -- at least a better one than I've come up with...

Here's what I did (which is trick the form into submission):

In the form properties browser, I set opacity to 0%, then in the declarations sections of the class:

private bool loadedActivated = false;


and in the body of the Load and Activated methods:

private void Form1_Load(object sender, System.EventArgs e)
{
  this.Visible = false;
}
private void Form1_Activated(object sender, System.EventArgs e)
{
  if (!loadedActivated)
  {
    this.Visible = false;
    loadedActivated = true;
  } 
}


and lastly in the the NotifyIcon Click (or double-click, if you prefer):

private void notifyIcon1_Click(object sender, System.EventArgs e)
{
  this.Opacity = 1.00;
  this.Visible = true;
}


... so I'm looking forward to someone who has a better, more elegant solution.


What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
GeneralRe: Window Visibility Pin
T Manjaly24-Mar-04 12:07
T Manjaly24-Mar-04 12:07 
GeneralRe: Window Visibility Pin
John Kuhn24-Mar-04 15:23
John Kuhn24-Mar-04 15:23 
Generalapplications for nt4, 98, me Pin
hazzem elrefai22-Mar-04 22:52
hazzem elrefai22-Mar-04 22:52 
GeneralRe: applications for nt4, 98, me Pin
Rob Graham23-Mar-04 9:16
Rob Graham23-Mar-04 9:16 
GeneralRe: applications for nt4, 98, me Pin
Roman Rodov23-Mar-04 12:28
Roman Rodov23-Mar-04 12:28 
GeneralRe: applications for nt4, 98, me Pin
IGx8923-Mar-04 15:37
IGx8923-Mar-04 15:37 
GeneralRe: applications for nt4, 98, me Pin
John Kuhn23-Mar-04 16:11
John Kuhn23-Mar-04 16:11 
GeneralDatabase change notification? Help needed... Pin
petand7822-Mar-04 12:21
petand7822-Mar-04 12:21 
GeneralRe: Database change notification? Help needed... Pin
Colin Angus Mackay23-Mar-04 12:44
Colin Angus Mackay23-Mar-04 12:44 
QuestionWhere is ms-avalon library??? Pin
maharsoft21-Mar-04 21:45
maharsoft21-Mar-04 21:45 
AnswerRe: Where is ms-avalon library??? Pin
ian mariano23-Mar-04 11:33
ian mariano23-Mar-04 11:33 
AnswerRe: Where is ms-avalon library??? Pin
ian mariano24-Mar-04 1:58
ian mariano24-Mar-04 1:58 
GeneralPocket PC regisrtry Pin
Member 96364221-Mar-04 20:57
Member 96364221-Mar-04 20:57 
GeneralRe: Pocket PC regisrtry Pin
ian mariano23-Mar-04 11:43
ian mariano23-Mar-04 11:43 
GeneralVS .Net Pin
ppp00118-Mar-04 23:05
ppp00118-Mar-04 23:05 
GeneralRe: VS .Net Pin
ian mariano23-Mar-04 12:05
ian mariano23-Mar-04 12:05 
GeneralC# Vs C++.net Pin
ppp00118-Mar-04 22:55
ppp00118-Mar-04 22:55 

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.