is it possible to add a usercontrol?

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
hapoogold
Posts: 1
Last visit: Sun Apr 29, 2018 12:54 am

is it possible to add a usercontrol?

Post by hapoogold »

Hi,
i want to know is it possible to add a usercontrol to the toolbox? So that I can create a custom control and use it in powershell studio?
I can do that in visual studio and I can have a dll file that I can import to toolbox of visual studio. I want to know if it is possible to do this in powershell studio?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: is it possible to add a usercontrol?

Post by davidc »

We don't support custom controls in the designer, because not all the .NET controls are completely compatible with PowerShell. Plus we test each individual control to ensure the generated code works properly.

David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: is it possible to add a usercontrol?

Post by davidc »

This doesn't mean you can't add your custom control in the script editor. You can use a placeholder control in the designer (such as a picturebox) and replace it with the custom control at runtime. The ElementHost control set is a good example of this.

David
David
SAPIEN Technologies, Inc.
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.