Transparent Button

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

Transparent Button

Postby kam moses » Sun Dec 06, 2009 11:20 am

Hi All,

I am new to this forum but I have been reading posts here for some weeks now and I have been trying most of the controls. Its quite impressive, I have learned from everybody.

I run into a problem. When I start my Form, I get my buttons in transparent state but when I maximize the window I loose the button transparency. Please I need help.

Thanks.

Kam
Attachments
OnMaximizel.jpg
OnMaximizel.jpg (3.01 KiB) Viewed 546 times
Normal.jpg
Normal.jpg (2.88 KiB) Viewed 546 times
kam moses
 
Posts: 2
Joined: Sun Dec 06, 2009 11:02 am

Re: Transparent Button

Postby Waescher » Sun Dec 06, 2009 9:01 pm

Hi Kam,

It seems that the buttons just don't notice the new state. If the buttons draw correctly while resizing the form manually you could try this:
I don't like this approach myself, but just use the form_resize (NOT form_resizeend) event to redraw the buttons yourself:

Code: Select all
private void MainForm_Resize(object sender, EventArgs e)
{
    myButton1.Invalidate();
    myButton2.Invalidate();
    myButton3.Invalidate();
}


Good luck,
Waescher
Waescher
 
Posts: 219
Joined: Thu Jun 14, 2007 10:11 pm
Location: Germany

Re: Transparent Button

Postby kam moses » Sat Dec 12, 2009 2:34 am

Hi Waescher,

Thanks for the quick response.
That should work.
I will try it over the weekend.

Regards,
Kam
kam moses
 
Posts: 2
Joined: Sun Dec 06, 2009 11:02 am


Return to Krypton Navigator

Who is online

Users browsing this forum: No registered users and 0 guests