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 / January 2007

Tip: Looking for answers? Try searching our database.

Form Transparent areas, regions and Windows 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Antonio Bruno - 25 Jan 2007 16:46 GMT
Hi,

I'm implementing irregular shaped Windows Forms using the Region property in
.Net 2.0 (I'm not using TransparentKey to account for color depths > 16bpp)

I build the region mask adding 1 pixel high rectangles until all the area I
want to be transparent is covered (this tecnique is presented in several
Internet sites)

Everything works perfectly in XP and Vista. But not in Windows 2000. In
Win2K some areas (not all) of the transparent mask seem to be ignored. I have
compared the list of rectangles built in XP and 2000, and the region is built
exactly the same way. For some reason, Win2K (SP4) renders it differently
than what it should.

Does anyone know of any way to fix this?


Thanks,
Antonio
Ciaran O''Donnell - 26 Jan 2007 12:50 GMT
I dont know the answer to the question as I never used this technique on
Windows 2000 but I had it working on NT4 and XP.
One piece of advise though is to not use rectangles 1x1 pixel but make them
as wide as you can by looking ahead before to add/remove them from the
region. You may  be doing this already but I thought i'd mention it as I used
to get exceptions occasionaly when using 1x1 rectangles

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> Hi,
>
[quoted text clipped - 16 lines]
> Thanks,
> Antonio
Antonio Bruno - 26 Jan 2007 18:05 GMT
Thanks Ciaran. I'm in fact doing that already.

It's interesting also that you say it works on NT, I haven't tested it but
somehow I expected that the behaviour in NT would be the same as Win2K.

Signature

Regards

Antonio

> I dont know the answer to the question as I never used this technique on
> Windows 2000 but I had it working on NT4 and XP.
[quoted text clipped - 23 lines]
> > Thanks,
> > Antonio

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.