Print Page | Close Window

MDI Icon Not correct in NET2.0 (v11.3)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14873
Printed Date: 15 May 2024 at 4:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Icon Not correct in NET2.0 (v11.3)
Posted By: youka
Subject: MDI Icon Not correct in NET2.0 (v11.3)
Date Posted: 30 July 2009 at 1:11pm

Dears, any one can figure out how to set correct icon image in a winForm MDI form...

I am using v11.3 licensed version, but the icon doesn't paint correctly in .NET (but it's OK in VB6 of course..)
 
to reproduce the problem I modified a little to the C# MDI sample...
 
1) Add a line in FORM_LOAD:
 
CommandBars.ActiveMenuBar.SetFlags(XtremeCommandBars.XTPMenuBarFlags.xtpFlagAddMDISysPopup, 0);
 
2) Modify frmdocument 's formBorderStyle to Sizable and WindowState to Maximized.
 
you can see from the below image that only a blank icon is drawn, but after a restore_then_maximize opeartion the icon will then paint correctly.
 
 



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