7 Answers, 1 is accepted
Thank you for contacting us.
Our from is actually inheriting the default .NET one but it sets its border style to none. This why the shadow is not visible. To show the shadow you should override the CreateParams property:
protected
override
CreateParams CreateParams
{
get
{
const
int
CS_DROPSHADOW = 0x20000;
CreateParams cp =
base
.CreateParams;
cp.ClassStyle |= CS_DROPSHADOW;
return
cp;
}
}
More information about this is available in the following discussions:
Please let me know if there is something else I can help you with.
Dimitar
Telerik
Thank you very much for answer.
Sorry if I'm boring, but what do I have to do for a shadow like this?
Thanks.
Regards,
Luca
Thank you for writing back.
A very good example for this is available here: /.DropShadow
Do not hesitate to contact us if you have other questions.
Dimitar
Telerik
Hello Dimitar.
Thank you very much for answer.
I translated the C# code in Basic code and adapted it to my form. However, when I minimize the window or when I click on the program icon in the taskbar there are some annoying effects. In particular, shadow is drawn before the form. How can I fix it?
I enclose a photo of my form and a video (Youtube - windows form).
Regards,
Luca
Thank you for writing back.
This is controlled by the operating system and RadForm does not have any properties for this. I would suggest you to search or ask your question in the appropriate forums. Meanwhile, here is what a quick search returned: pinvoke - VB.NET disable fade-in for forms - Stack Overflow
I hope this will be useful.
Regards,
Dimitar
Telerik
Hello,
is there any solution for Progress OpenEdge?
Regards
Since RadForm is a derivative of the standard MS Form, making a shadow is more like a general programming questions. That is why it is recommended to follow some of the already referred approaches in this thread.
The easiest way to achieve the shadow is to override the CreateParams method:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
}
protected override CreateParams CreateParams
{
get
{
const int CS_DROPSHADOW = 0x20000;
CreateParams cp = base.CreateParams;
cp.ClassStyle |= CS_DROPSHADOW;
return cp;
}
}
}
I understand that you are using OpenEdge and Developer Studio, please note that for OpenEdge related topics the preferred places to submit a technical question are Salesforce and the Progress Community. Thus, the appropriate community and support engineers would gladly assist you to adopt the suggested solutions to ABL. You can log in to these websites straight from your Progress account: https://progresslink.progress.com/supportlink .
I hope this information helps.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.