Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Transparency (Read 1064 times)
joshua
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Sep 19th, 2006
Transparency
Sep 19th, 2006 at 11:24pm
Print Post  
The flowchart control throws an exception when trying to set its backcolor to transparent.  Is there away around this???

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Transparency
Reply #1 - Sep 20th, 2006 at 6:07am
Print Post  
Hi,

It is the base Control class that throws the exception. The BackColor article in MSDN states: "The BackColor property does not support transparent colors unless the SupportsTransparentBackColor value of System.Windows.Forms.ControlStyles is set to true." So you must use the Control.SetStyle method to enable the SupportsTransparentBackColor bit.

SetStyle is a protected method in Control, so you will have to define a class that inherits FlowChart to get access to the method.

We've never tried that, so I cannot guarantee it will work...

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint