Use the DevExpress.Utils.Drawing.Helpers.NativeMethods.CreateRoundRegion method. The only difference between the XtraForm that
uses this method and the RibbonForm is that these forms use different skin images. See RibbonForm skin elements whose corners
are rounded. However, the XtraForm skin borders are square. It's impossible to create absolutely correct rounded corners for
the XtraForm without creating a custom skin.
Question Comments
Added By: Rodney Brim at: 8/28/2012 8:43:08 AM
Thanks for your help. One thing I didn't see, is how to go about creating a shadow with the form, I need to add a shadow at the bottom and right sides of the form.
Thanks for sharing that as well.
Rodney
Added By: Jens Abromeit 1 at: 9/25/2012 11:03:19 PMCompiling this examples with v2012 vol 1.7 leads to an error that the method GetDefaultFormRegion cannot be overwritten because it does not exist in FormPainter. Is this method removed or replaced by some other mechanism in v2012 vol 1.7?
Added By: John (DevExpress Support) at: 9/28/2012 4:47:52 AMWe have changed the Form painting mechanism with version 12.1.7, so, the GetDefaultFormRegion method does not exit in FormPainter now. However, we will add it back with the next release.