Print Page | Close Window

VB.NET: Buttons showing Form's backcolor

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=16522
Printed Date: 11 November 2024 at 10:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB.NET: Buttons showing Form's backcolor
Posted By: bsil
Subject: VB.NET: Buttons showing Form's backcolor
Date Posted: 26 March 2010 at 6:43am
Using Codejock version  13.3.1
for Application: VB.Net 2.0, WinXp platform
 
We are getting form's backcolor on all the four corners of the buttons. We have checked that the image has transparent background and the skin works well with VC and VB6.0 applications. Below is the snapshot:
 
 
 
Can you please resolve the issue or suggest some workaround?
 
 


-------------
Product: Xtreme SkinFramework
     Platform: Windows XP (32bit) - SP 2
     Language: Visual Basic 6.0, Visual C++ 6.0, VB.NET 2.0




Replies:
Posted By: SuperMario
Date Posted: 07 April 2010 at 12:03pm
Maybe you need something similar to this:

  Protected Overloads Overrides Sub OnVisibleChanged(ByVal e As EventArgs)
    MyBase.OnVisibleChanged(e)

    If Me.Visible Then
      SkinFramework.ApplyWindow(Me.Handle.ToInt32())
      SkinFramework.EnableThemeDialogTexture(Me.tabPage1.Handle.ToInt32(), 6)
      Me.BackColor = SkinFramework.GetColor(XtremeSkinFramework.XTPColorManagerColor.STDCOLOR_BTNFACE)

      SkinFramework.ApplyWindow(TabPage3.Handle.ToInt32())
      SkinFramework.EnableThemeDialogTexture(TabPage3.Handle.ToInt32(), 6)
    End If
  End Sub

Would likely need this for each tab page when selected index changes.

      SkinFramework.ApplyWindow(TabPage3.Handle.ToInt32())
      SkinFramework.EnableThemeDialogTexture(TabPage3.Handle.ToInt32(), 6)  



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