xsharp.eu • Discussion or request for adding non-visible classes to the VS toolbox
Page 1 of 1

Discussion or request for adding non-visible classes to the VS toolbox

Posted: Sun Jan 05, 2025 2:46 pm
by xinjie
Hi, XSharp Development Team

I don't know if what I'm talking about was ever on your radar.
What I'm trying to say is that I want to be able to add non-visible controls to the VS toolbox in the easiest way possible, just like the timer/ErrorProvider controls in the .NET Framework can be displayed normally in the toolbox.

Such a requirement may be beyond the scope of syntactic compatibility. Or maybe it is of no interest to other XBase developers. However, VFP developers need it if I know from personal experience.

I don't really know if the devs care about this, but I hope dreams come true. I'm also hoping that someone will participate in this thread.

Re: Discussion or request for adding non-visible classes to the VS toolbox

Posted: Sun Jan 05, 2025 2:52 pm
by xinjie
Note: When I say “non-visible controls”, I usually mean based on XSharp.VFP.Custom .

Re: Discussion or request for adding non-visible classes to the VS toolbox

Posted: Sun Jan 05, 2025 3:12 pm
by robert
Xinjie,

For controls be be added to the Toolbox, they have to fulfull certain criteria.
One of these criteria is that the control should have a public constructor with 0 parameters.
I therefore do not think classes that inherit from XSharp.VFP.Custom can be added.

Can you add a Github enhancement request for this, so we will take a look at this?

Robert

Re: Discussion or request for adding non-visible classes to the VS toolbox

Posted: Sun Jan 05, 2025 3:17 pm
by xinjie
Robert,

I can add a Github enhancement request for this.