Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
AnswerRe: Detecting low memory Pin
#realJSOP27-Aug-10 4:14
professional#realJSOP27-Aug-10 4:14 
AnswerRe: Detecting low memory Pin
T M Gray27-Aug-10 4:23
T M Gray27-Aug-10 4:23 
AnswerRe: Detecting low memory [modified] Pin
Paul Michalik29-Aug-10 0:38
Paul Michalik29-Aug-10 0:38 
AnswerRe: Detecting low memory Pin
PIEBALDconsult29-Aug-10 4:12
mvePIEBALDconsult29-Aug-10 4:12 
QuestionReflection with Dynamic Objects (System.__ComObject) Pin
Tony Richards27-Aug-10 0:38
Tony Richards27-Aug-10 0:38 
AnswerRe: Reflection with Dynamic Objects (System.__ComObject) [modified] Pin
Paul Michalik27-Aug-10 3:54
Paul Michalik27-Aug-10 3:54 
QuestionC# Squrid My Program Up Pin
C.CoderCreator26-Aug-10 22:43
C.CoderCreator26-Aug-10 22:43 
AnswerRe: C# Squrid My Program Up PinPopular
Pete O'Hanlon26-Aug-10 23:17
mvePete O'Hanlon26-Aug-10 23:17 
This is not your whole code - this is only Form1. My suspicion is that you might have a problem in one of the following lines:
C#
Note newNote = new Note();
Search newSearch = new Search();
SRLS newSRLS = new SRLS();
Alarm newAlarm = new Alarm();
QuickLaunch newQuickLaunch = new QuickLaunch();
Calender newCalender = new Calender();
Time newformtime = new Time();
To prove this, you need to set a breakpoint in your Form_Load to see if you ever actually hit the Form_Load event. If you get the exception beforehand, then it's likely that your problem is in there (and the problem is that you have something that is recursively calling the same method).

Now, your coding style - it's never a good idea to leave default names for items you have any form of interaction with in your code, so you should rename things like button1, etc, to something much more meaningful. Also, you could condense a lot of your methods down. Take this one:
C#
if (newAlarm.Visible == true)
{
alarmToolStripMenuItem.Checked = false;
newAlarm.Visible = false;
}
else if (newAlarm.Visible == false)
{
alarmToolStripMenuItem.Checked = true;
newAlarm.Visible = true;
}
That could be rewritten more succinctly (and clearly) as:
newAlarm.Visible = !newAlarm.Visible;<br />
alarmToolStripMenuItem.Checked = newAlarm.Visible;
You could get terser than that, but this is fairly clear in what it does.

I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be


My blog | My articles | MoXAML PowerToys | Onyx


AnswerRe: C# Squrid My Program Up Pin
OriginalGriff26-Aug-10 23:54
mveOriginalGriff26-Aug-10 23:54 
AnswerRe: C# Squrid My Program Up Pin
J a a n s27-Aug-10 0:20
professionalJ a a n s27-Aug-10 0:20 
AnswerRe: C# Squrid My Program Up Pin
Luc Pattyn27-Aug-10 2:06
sitebuilderLuc Pattyn27-Aug-10 2:06 
AnswerRe: C# Squrid My Program Up Pin
T M Gray27-Aug-10 4:32
T M Gray27-Aug-10 4:32 
GeneralRe: C# Squrid My Program Up Pin
Chris Trelawny-Ross27-Aug-10 5:53
Chris Trelawny-Ross27-Aug-10 5:53 
AnswerRe: C# Squrid My Program Up Pin
The Man from U.N.C.L.E.27-Aug-10 6:17
The Man from U.N.C.L.E.27-Aug-10 6:17 
AnswerRe: C# Squrid My Program Up Pin
Paul Michalik27-Aug-10 23:01
Paul Michalik27-Aug-10 23:01 
QuestionHow to create Microsoft Excel 2007 add-in in C#2010 Pin
soe htet26-Aug-10 22:32
soe htet26-Aug-10 22:32 
AnswerRe: How to create Microsoft Excel 2007 add-in in C#2010 Pin
Łukasz Nowakowski27-Aug-10 0:32
Łukasz Nowakowski27-Aug-10 0:32 
Questionvideo chat Pin
sardar.nale26-Aug-10 22:09
sardar.nale26-Aug-10 22:09 
AnswerRe: video chat Pin
Pete O'Hanlon26-Aug-10 22:22
mvePete O'Hanlon26-Aug-10 22:22 
AnswerRe: video chat Pin
J4amieC26-Aug-10 22:27
J4amieC26-Aug-10 22:27 
AnswerRe: video chat Pin
Pete O'Hanlon26-Aug-10 22:31
mvePete O'Hanlon26-Aug-10 22:31 
AnswerRe: video chat Pin
OriginalGriff26-Aug-10 22:32
mveOriginalGriff26-Aug-10 22:32 
AnswerRe: video chat Pin
Luc Pattyn27-Aug-10 2:10
sitebuilderLuc Pattyn27-Aug-10 2:10 
Questionthe transparency goes when the panel is invalidated Pin
prasadbuddhika26-Aug-10 21:27
prasadbuddhika26-Aug-10 21:27 
AnswerRe: the transparency goes when the panel is invalidated Pin
OriginalGriff26-Aug-10 22:07
mveOriginalGriff26-Aug-10 22:07 

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.