The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Transparente Steuerelemente mit C#

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
-

Posts: 1524
Nickname: nitronic
Registered: Jul, 2006

Norbert Eder works as a software architect.
Transparente Steuerelemente mit C# Posted: Mar 8, 2007 1:43 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by -.
Original Post: Transparente Steuerelemente mit C#
Feed Title: Norbert Eder - Living .NET
Feed URL: http://feeds.feedburner.com/NorbertEder-Livingnet
Feed Description: Copyright (c)2005, 2006 by Norbert Eder
Latest .NET Buzz Posts
Latest .NET Buzz Posts by -
Latest Posts From Norbert Eder - Living .NET

Advertisement
Eigentlich ein alter Hut, aber ad hoc ist es mir heute auch nicht eingefallen wie eigene Steuerelemente transparent erstellt werden k��nnen. Der erste Versuch mit

this.Background = Color.Transparent;

scheiterte kl��glich. Hier ein L��sungsweg:

protected override CreateParams CreateParams
{
    get
    {
        CreateParams cp = base.CreateParams;
        cp.ExStyle := 0x20;
        return cp;
    }
}

protected override void OnPaintBackground
    (PaintEventArgs pevent)
{
    // do nothing in this case
}

protected override void OnMove(EventArgs e)
{
    RecreateHandle();
}

Das war es dann auch schon wieder.

Read: Transparente Steuerelemente mit C#

Topic: Microsofts Live Search: Browserabh��ngige Suchergebnisse? Previous Topic   Next Topic Topic: Jobangebote vs Jobforderungen

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use