Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom Shaped form question
 

Custom Shaped form question

Hi,

I am creating custom shaped form in .NET 2.0. In order to do this I set following properties:

  • FormBorderStyle --> to none
  • BackgroundImage --> to .bmp
  • TransparencyKey --> to the background color on the .bmp file

Everything works OK, untill I add some controls to the form. For example: when I add a button, the text of the button becomes transparent, if I add menuStrip control, all menu items are transparent as well.

What am I doing wrong?

Thanks for your help

OROCHKA  Tuesday, June 13, 2006 5:58 PM

If your TransparencyKey is black and the text on your buttons and menus is black then they are going to become transparent. Make sure you use an usual color such as Magenta as the transparency key and background of the image. Then you should avoid the chances of a clash.

Phil Wright
http://www.componentfactory.com
Free user interface controls for Visual Studio 2005

Philip Wright  Wednesday, June 14, 2006 9:37 AM

If your TransparencyKey is black and the text on your buttons and menus is black then they are going to become transparent. Make sure you use an usual color such as Magenta as the transparency key and background of the image. Then you should avoid the chances of a clash.

Phil Wright
http://www.componentfactory.com
Free user interface controls for Visual Studio 2005

Philip Wright  Wednesday, June 14, 2006 9:37 AM

You can use google to search for other answers

Custom Search

More Threads

• Does WMCreateReader support the windows 2003 server system?
• How to design a form on Blend and use it in a VB 2005 project?
• Failure to load designer due to VS2005B2 fault
• mdi child form position
• How create nested namespace?
• referencing a object from a class previously created
• Difference between arrays and objects when referencing controls
• Using visual inheritance with the UserControl
• DesignerHost.exe Name property
• <ToolBoxBitmap> attribute problem please help. Thanks