Print Page | Close Window

Button skinning in VB.NET

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=20604
Printed Date: 07 June 2025 at 12:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Button skinning in VB.NET
Posted By: phainge
Subject: Button skinning in VB.NET
Date Posted: 08 February 2013 at 7:34am
I am using Skinframework v15.1 to skin a VB.NET form in Visual Studio 2010 with the Office 2007 style.  I have noticed that buttons do not skin the same in VB.NET as they do in VB6, they look worse in VB.NET.
 
This is how a button appears skinned in VB6 using the Office 2007 style:
 
 
But this is how the same button appears skinned in VB.NET using the same Office 2007 style:
 
 
Can anyone explain the difference?  Is there any way to get the VB.NET button to look the same as VB6?


-------------
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1
Visual Basic 6.0 SP4



Replies:
Posted By: phainge
Date Posted: 12 February 2013 at 11:09am
SOLVED:  I have solved this.  The button "FlatStyle" property must be set to "System".  This also applies to other VB.NET controls that expose the "FlatStyle" property, e.g. GroupBox.

-------------
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1
Visual Basic 6.0 SP4



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