Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
AnswerRe: Indexer vs function [modified] Pin
Luc Pattyn28-Dec-06 10:44
sitebuilderLuc Pattyn28-Dec-06 10:44 
Questionhi, c# forms Pin
sopho2428-Dec-06 10:07
sopho2428-Dec-06 10:07 
AnswerRe: hi, c# forms Pin
karam chandrabose28-Dec-06 15:33
karam chandrabose28-Dec-06 15:33 
AnswerRe: hi, c# forms Pin
Flysocket28-Dec-06 20:19
Flysocket28-Dec-06 20:19 
GeneralRe: hi, c# forms Pin
sopho2429-Dec-06 12:56
sopho2429-Dec-06 12:56 
QuestionHide form at startup Pin
Mike Hankey28-Dec-06 9:54
mveMike Hankey28-Dec-06 9:54 
AnswerRe: Hide form at startup Pin
sopho2428-Dec-06 10:25
sopho2428-Dec-06 10:25 
GeneralRe: Hide form at startup Pin
Mike Hankey28-Dec-06 10:39
mveMike Hankey28-Dec-06 10:39 
Form properties does not contain a visible property but I tried all the basic stuff Hide(), visible = false in the _Load event but for some reason doesn't work. Even tried creating ApplicationContext.MainForm.visible = false in Main()???

private void Form1_Load(object sender, System.EventArgs e)
{
Rectangle rct = Screen.PrimaryScreen.WorkingArea;
Point pt = new Point(rct.Width - this.Width, 0);
this.Location = pt;
notifyIcon1.Visible = true;
this.Hide();
}

private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
notifyIcon1.Visible = false;
}

private static bool isVisible = false;
private void notifyIcon1_Click(object sender, System.EventArgs e)
{
if (isVisible)
{
this.Visible = false;
isVisible = false;
}
else
{
this.Visible = true;
isVisible = true;
}
}

Thanks
GeneralRe: Hide form at startup Pin
sopho2428-Dec-06 10:49
sopho2428-Dec-06 10:49 
GeneralRe: Hide form at startup Pin
Mike Hankey28-Dec-06 10:56
mveMike Hankey28-Dec-06 10:56 
AnswerRe: Hide form at startup Pin
Nader Elshehabi28-Dec-06 10:54
Nader Elshehabi28-Dec-06 10:54 
GeneralRe: Hide form at startup Pin
Mike Hankey28-Dec-06 11:00
mveMike Hankey28-Dec-06 11:00 
GeneralRe: Hide form at startup Pin
Nader Elshehabi28-Dec-06 11:31
Nader Elshehabi28-Dec-06 11:31 
GeneralRe: Hide form at startup Pin
Mike Hankey28-Dec-06 11:48
mveMike Hankey28-Dec-06 11:48 
GeneralRe: Hide form at startup Pin
Nader Elshehabi28-Dec-06 11:53
Nader Elshehabi28-Dec-06 11:53 
GeneralRe: Hide form at startup Pin
Mike Hankey28-Dec-06 12:07
mveMike Hankey28-Dec-06 12:07 
AnswerRe: Hide form at startup Pin
dsl/fahk28-Dec-06 11:52
dsl/fahk28-Dec-06 11:52 
QuestionHow to free up memory Pin
T.Willey28-Dec-06 9:45
T.Willey28-Dec-06 9:45 
AnswerRe: How to free up memory Pin
Nader Elshehabi28-Dec-06 10:52
Nader Elshehabi28-Dec-06 10:52 
GeneralRe: How to free up memory Pin
T.Willey28-Dec-06 10:56
T.Willey28-Dec-06 10:56 
GeneralRe: How to free up memory Pin
Nader Elshehabi28-Dec-06 11:27
Nader Elshehabi28-Dec-06 11:27 
AnswerRe: How to free up memory Pin
Luc Pattyn28-Dec-06 10:59
sitebuilderLuc Pattyn28-Dec-06 10:59 
GeneralRe: How to free up memory Pin
T.Willey28-Dec-06 11:38
T.Willey28-Dec-06 11:38 
AnswerRe: How to free up memory Pin
Vikram kshatriya28-Dec-06 18:11
Vikram kshatriya28-Dec-06 18:11 
QuestionListView Control Pin
Civic0628-Dec-06 8:28
Civic0628-Dec-06 8:28 

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.