Quote Originally Posted by funnyusername View Post
Hello all,
Well the noobie is very embarassed! The issues seems to have been a corrupt build environment, and a rebuild fixed it! ....
Well, I'm off to learn some more through trial and error. Can anyone suggest a good C# book on amazon, that has a decent amount of info on debugging?
.
What you are talking about in your last post seems all to me to be a broken delegate ( not connected to the form ) Otherwise your breakpoints are never ignored. As you have added the Tick delegate in the MainForm_Load delegate the next thing I would have done, if I would have had your situation is to set a breakpoint in the first line of the MainForm_Load delegate. If this also is ignored then you can be totally sure this event isn't fired. So as any form fires this event you can be sure it is not added to the MainForms Load event. Then I would look into the designer . This is a separate document since VS 2005 and its name is ( if the Forms name is MainForm) MainForm.designer.cs
If you look to your documents tree you will see that the Form has a '+' there. Expand the tree and you will see the document.
Open the code and you will find a section signed in a way like ' Automatic created code - dont touch' ( I dont know the correct English text, as my enviroment is german - so I can only retranslate the german text ) Open this text and you will find what you have created by drawing controls to the form with the designer.
Adding a delegate to an event always has the format
controlName.XYEvent += new xyEventHandler (controlName_xyEvent)

If your Form is named 'MainForm' the load Event is set like
Code:
this.Load += new System.EventHandler(this.MainMDI_Load);
Additional: Never be shy to ask simple questions. Even if someone sometimes sounds a bitt strict, this may happen, but believe me, its normally for your best.You will learn by those people to ask very exact questions and this is also very helpful to get the corrrect answers.

If you still have your old projectbuild anywhere you may find what has been wrong and this will also be a great lessn for you. Study the designer created code and you will understand a lot more about your own program.

BTW is there a reason to add the Tick event in the load event instead of in the designers code - InitializeComponent() directly.? ( I havn't studied your whole code yet )