Print Page | Close Window

WinForms

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=24557
Printed Date: 26 March 2025 at 11:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WinForms
Posted By: rdhd
Subject: WinForms
Date Posted: 21 March 2025 at 2:39pm
I'm skinning our app and have hit a bit of a snag with WindowsForms. I see CJ code parsing the classname and detecting the fact a window is a winform. For a winform list control that it encounters it attaches the hook. But I have an issue with text displaying dark as WinForms isn't using the system color we supply. This is making text hard to see. I have tried removing the only window I have direct access to from skinning. The problem is though that later when all the child windows get created by the clr they all are captured by the cbt hook CJ has and get tagged for skinning. It would be great if removing a window would keep all the child windows created at any point after than being skinned. I can't disable skinning in some cases because I don't have knowledge of when to turn it back on.

I also have issues with the WindowsForm ComboBox as I scroll thru it as the text is white on a white background. Compare this WindowsForm ComboBox skinning result to the one after it which is just a win32 ComboBox.



So, how do I address the WindowsForm Combobox issue and address this dark text in the WindowsForm list control?




Replies:
Posted By: rdhd
Date Posted: 25 March 2025 at 11:50am
I got hold of the VB code and found there was some hard coded "White" and "Black" settings on the controls. I changed that to use SystemColors.Window/WindowText etc. Worked fine for the Forms ListView but isn't always working for the Forms ComboBox.

These .NET controls are like the rich edit control where I have to find all instances where specific API calls to the control are made and make sure they use system colors where appropriate.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net