Browse by Tags

log4net is not logging!
Published 07-05-2007 3:32 PM | jokiz
I have been using log4net for a year and a half now and there are scenarios where I'm expecting it to log some data only to find out that it's not logging. I know two possible reasons of log4net not logging: 1. It is not yet configured to log...
Application.EnableVisualStyles
Published 03-20-2007 6:12 PM | jokiz
Excellent information about Application.EnableVisualStyles here . We're used to shipping a manifest file since we came from .NET 1.1. Another tidbit is how are the themes implemented with it, i can see that it is still using a manifest but from where...
Filed under:
ControlInspector for Windows Forms
Published 10-09-2006 6:51 PM | jokiz
I used to use this ConstrolInspector utility from CodeProject utility to know the sequences of events for a control back when i was still a component developer. OT: An ex-officemate of mine, still with my previous employer asked me about this utility...
Filed under: , ,
WinForms 2.0 book almost done
Published 04-20-2006 9:42 PM | jokiz
i've just read that Chris Sells and Michael Weinhardt's Windows Forms 2.0 Programming is almost done. even though i don't have the first edition of the book, the free chapter on design-time integration and majority of his articles had helped me a lot...
Filed under: ,
Handling designtime resize for controls
Published 03-17-2006 7:08 PM | jokiz
How to do this? You don’t have to override OnResize and do those checks (DesignMode, IsHandleCreated, etc.). I’ve been here and I’ve encountered a number of problems. A better way is to create a designer class, attach a handler on the Resize event of...
Filed under: , ,
avoid P/INVOKE or COM Interop if possible
Published 02-09-2006 6:09 PM | jokiz
i was debugging this activex control used in my current project when i bumped into this wrapper class for an interop with kernel32.dll methods. after browsing the documentation, it says that the following functions are provided for win16 support. how...
Combobox SelectedIndexChanged vs SelectionChangeCommitted
Published 11-23-2005 11:05 PM | jokiz
In ASPNET we only have SelectedIndexChanged ( DropDownList ), in Windows Forms we have both, but which one to use? My first .NET project is a Windows Application which uses databinding a lot and we were using SelectedIndexChanged of Combobox back then...
Windows Forms Forums
Published 07-15-2005 9:19 AM | jokiz
I once participated in the windows forms forums particularly the design-time section during my control-development days. I was surprised when I revisited the site here . MS has revamped the site including the log file and the previous posts were already...
Filed under: ,
Validating inputs with a Cancel button
Published 06-09-2005 9:34 AM | jokiz
I have seen a number of posts like this on newsgroups and it is trivial especially for developers who misuse the events of normal WinForms controls. First are those who use the inefficient TextChanged event of the Windows Forms Textbox for validating...
Talk about a breaking change
Published 05-03-2005 6:27 PM | jokiz
Last time, I reported a bug on the ToolBar control of Windows Forms which I have discovered upon a query of an officemate. I just saw that there is an update on my reported bug as Won’t Fix due to a breaking change, :p.
Filed under: , , ,
Strongly-typed Collection’s Add and AddRange methods
Published 04-14-2005 3:41 PM | jokiz
The CollectionCodeDomSerializer uses reflection to serialize a serializeable collection properties to locate methodinfo with “Add” and “AddRange” as names. We have a coding convention here to use prefix to clearly distinguish methods from properties,...
Overriding ControlDesigner.SelectionRules
Published 04-11-2005 7:23 PM | jokiz
The virtual readonly SelectionRules property of the ControlDesigner class is necessary if you want to fiddle with the selection grabs of your control at designtime (if you want to make your control not re-sizable vertically like the Windows Forms TextBox...
MissingMethodException during a form load at designtime
Published 03-17-2005 7:26 PM | jokiz
Some control properties where dropped. Forms still have them in InitializeComponent. Form is loaded at designtime with an attached debugger instance (devenv.exe). CodeDomSerializer class tries to deserialize the said property set. A MissingMethodException...
System.Windows.Forms.Control$ControlCollection class
Published 03-04-2005 6:18 PM | jokiz
I tried to use the ControlCollection class defined inside the System.Windows.Forms.Control to use as temporary storage of layout-affected controls in my last post. Not knowing the internals of the said class, I got some problems when child controls of...
Filed under: , ,
Design-able Abstract Base Forms in Whidbey
Published 02-24-2005 6:18 PM | jokiz
I have blogged about the Windows Forms designer behavior with abstract base forms here . Brian Pepin has an update on how Whidbey can support design-able abstract classes through the new TypeDescriptionProvider class. He also points out an important example...
More Posts Next page »