Re: WinForms in DLL

164 views
Skip to first unread message

Govert van Drimmelen

unread,
May 12, 2013, 10:16:15 AM5/12/13
to Excel-DNA
Hi,

Maybe you can try to to add calls to:

System.Windows.Forms.Application.EnableVisualStyles();

System.Windows.Forms.Application.SetCompatibleTextRenderingDefault( false );

at some point before your form is created.

Regards,
Govert


* * * * * * * * * * * * * * * * * * * * * * * * * * * *

Ensure that the Excel-DNA project continues by
making your donation - http://excel-dna.net/support/

* * * * * * * * * * * * * * * * * * * * * * * * * * * *



On May 11, 6:04 pm, Thang Trinh Xuan <thangt...@gmail.com> wrote:
> Hi Dan Brown
> You can get XP Style as following thread:
>
> http://support.microsoft.com/kb/830033
>
> Regards,
>
> Vào 15:01:27 UTC+7 Thứ bảy, ngày 11 tháng năm năm 2013, Dan Brown đã viết:
>
>
>
>
>
>
>
>
>
> > Hi
> > I am new to ExcelDNA, I had no problem getting UDF's running but have
> > noticed that when I show a WinForm from within the .dll it displays with
> > the old style controls, the same as what you get from a VBA UserForm
> > The same .dll when called from a WinForm app displays the XP style
> > controls correctly.
>
> > Curious to see if anyone has any insights, or methods to overcome this.
Reply all
Reply to author
Forward
0 new messages