PC Review


Reply
Thread Tools Rate Thread

AntiAliased Form

 
 
=?Utf-8?B?SnVzdCBjbG9zZSB5b3VyIGV5ZXMgYW5kIHNlZQ==
Guest
Posts: n/a
 
      12th Jun 2006
Hi All
i had made a borderless and shaped window using this code

public Form1()
{
this.FormBorderStyle=FormBorderStyle.None;
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.SmoothingMode=SmoothingMode.AntiAlias;
GraphicsPath GP=new GraphicsPath();
//Codeing to get any shape
this.Region=new Region(GP);
}

it works but i got a problem there is some pixilation on the borders which
looks very bad
is there any way to make AntiAliasing between the Form and the screen?

thx all

 
Reply With Quote
 
 
 
 
Jani Järvinen [MVP]
Guest
Posts: n/a
 
      13th Jun 2006
JCYE&S,

> i had made a borderless and shaped window
> it works but i got a problem there is some pixilation
> on the borders which looks very bad is there any
> way to make AntiAliasing between the Form and the screen?


I don't think Windows supports such a feature. You can in fact draw to the
screen and in that way it might be possible to anti-alias the window border,
but I wouldn't venture that far. It is better to leave this part of window
management to the operating system.

Think it this way: you own only the area your window contains, not more or
less.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(E-Mail Removed)
http://www.saunalahti.fi/janij/


 
Reply With Quote
 
=?Utf-8?B?SnVzdCBjbG9zZSB5b3VyIGV5ZXMgYW5kIHNlZQ==
Guest
Posts: n/a
 
      15th Jun 2006
I got answer of my problem in this link
http://blogs.msdn.com/mswanson/archi...07/436618.aspx

but it gives me another problem that I cant but controls in this form , if
any one can help in this problem ,he is welcome


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Temporary Form with 2 Sub form Update Main Form And its Sub form ? Jeanette Cunningham Microsoft Access Form Coding 0 25th Nov 2009 02:27 AM
Com Add-in for Publishing a customized form in a public folder and setting this form as deafult form for the calendar Vidya Microsoft Outlook Program Addins 0 17th Sep 2007 09:47 AM
OnClick Event in Form STOPS WORKING when Form is Made a Sub-Form kev100 via AccessMonster.com Microsoft Access Form Coding 10 24th Jul 2006 08:53 PM
Tabbed Form (Main Form/Sub Form) multi-Table Problem =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 16th Sep 2005 04:42 PM
Antialiased font rendering gamma/alpha issue =?Utf-8?B?bWY=?= Windows XP General 0 23rd Mar 2005 05:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 PM.