strange way to subscibe to an event without explicitly usingthe EventHandler Tony Johansson wrote: Hi! Below is a snippet of a class Test Normally when you use events and want to subscribe to an event you use statement like this timer.Tick += new EventHandler(t_Tick); In the class below you can subscribe to an event by writing this statement timer.Tick += t_Tick; in... 2 Feb 2010 17:27
strange way to subscibe to an event without explicitly using the EventHandler Hi! Below is a snippet of a class Test Normally when you use events and want to subscribe to an event you use statement like this timer.Tick += new EventHandler(t_Tick); In the class below you can subscribe to an event by writing this statement timer.Tick += t_Tick; instead and skip the delegate EventHandler ... 2 Feb 2010 17:27
Sort Error in Crystal Report Code with VS 2005 I get an Invalid Index error in the following code; please help... Invalid Index. (Exception from HRESULT:0x800200B (DISP_E_BADINDEX) string sortField = "City"; ReportDocument objReport = new ReportDocument(); objReport.Load("MyReport"); FieldDefinition FieldDef; FieldDef = objReport .Database.Tables[0].Fields[... 2 Feb 2010 17:26
I thought this should work :-( I thought this should work: class A { protected void F(); } class B : A { public List<A> items; public void B() { items[0].F(); } } The idea was not to expose function F outside of class A but still make it visible to B. But if A is just and item in some list that is part of B, the ... 3 Feb 2010 15:10
Globalized propertyGrid description In my application when doing PropertyGrid1.Object=button1 is there any way to display .net control object properties descriptions (like the button1.Text property description) in another language (current culture) or it's just available in english in .net ? Thanks! ... 3 Feb 2010 15:10
Unmanaged code interop! Hi! I have an unmanaged function: void Fun1(void * Delegate1, void * Param); which I call from managed code via PInvoke. The managed Delegate1 is then called from unmanaged code like this: public static void Delegate1(void * Param) { ... } This all works fine. The problem is that the "Param" I n... 2 Feb 2010 17:26
Design question I have a bunch of entity classes with just a whole bunch of properties in it. I have to count each time one of these properties is read and written to. I was hoping I could implement a pattern that would allow me to do that easily so that I didn't have to write custom setters and getters for each property (I'm usin... 2 Feb 2010 17:26
Is it possible to get the program that is launched based on fi You sir, helped me out so much! THANK YOU. Did you just look on pinvoke.net or do u have some sort of amazing API knowledge? "Jeff Johnson" wrote: "Jason soby" <Jasonsoby(a)discussions.microsoft.com> wrote in message news:F096115E-5A57-4480-82B3-0AEAB78B912B(a)microsoft.com... I'm trying to get the e... 2 Feb 2010 17:26
Fonts, Encoding Hi Im trying to Create A terminal window how can i get the Extended characters like used in dos code page 437 (box draw characters) Lucinda Console Font has them , this works in notepad when i tested but when i try it in TextBox or RichTextBox I get ? or + some replacement Character any help would be good th... 2 Feb 2010 17:26 |