Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

TransparencyKey bug (workaround in KB822495)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Timo - 03 Aug 2005 13:47 GMT
I'm using a bitmap as background with a TransparencyKey to give the
impression of a skinned form. The transparent color is not transparent when
deployed to PCs whose color depth is greater than 24bit.  The bug workaround
suggested in

http://support.microsoft.com/default.aspx?scid=kb;en-us;822495

has side effects: I get a drag-frame around the outer edge of the form.
Anyone else experience similar behavior?

Thanks
Timo

XP Pro, SP1.
.NET 1.1.4322 SP1
Mick Doherty - 03 Aug 2005 20:24 GMT
Can you create a region instead?

You should be able to modify my Shaped Control source to shape a form
instead.
http://dotnetrix.co.uk/custom.html

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> I'm using a bitmap as background with a TransparencyKey to give the
> impression of a skinned form. The transparent color is not transparent
[quoted text clipped - 13 lines]
> XP Pro, SP1.
> .NET 1.1.4322 SP1
Timo - 04 Aug 2005 13:49 GMT
Mick,
Thanks for the link. I don't know if a region would suffice to produce a
skinned form--haven't done this sort of programming before.  The customer
wants a jaunty, slanted form frame.... a trapezoid turned on its side also
with 3-d effects (rounded "claymation" edges and rounded corners).  Wouldn't
the use of many small rectangles to create the slanted edge of the form
border give a very ragged edge rather than a clean sharp line?
Regards
Timo

> Can you create a region instead?
>
[quoted text clipped - 23 lines]
> > XP Pro, SP1.
> > .NET 1.1.4322 SP1
Mick Doherty - 04 Aug 2005 20:00 GMT
You're right that you would end up with jagged edges using this method.
Sounds like you need per pixel alpha. The problem here (or maybe it's not if
you're custom drawing controls anyway), is that this method requires you to
paint everything. This method is usually used for splash screens, but you
should be able to adapt it. This is going to be a lot of work though.
There's an example on codeproject at:
http://www.codeproject.com/cs/media/perpxalpha_sharp.asp?df=100&forumid=3270&exp
=0&select=627744&tid=286266


Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> Mick,
> Thanks for the link. I don't know if a region would suffice to produce a
[quoted text clipped - 38 lines]
>> > XP Pro, SP1.
>> > .NET 1.1.4322 SP1

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.