Copiar form1.prg da visualstudio 2022 community ed. a un proggetto X#

Forum dedicato ai programmatori di X# in lingua italiana – Italian language forum

Moderator: wriedmann

Post Reply
ngpollarolo
Posts: 20
Joined: Mon Feb 29, 2016 3:51 pm
Location: Nicaragua

Copiar form1.prg da visualstudio 2022 community ed. a un proggetto X#

Post by ngpollarolo »

Ho costruito una windows form in visualstudio community ed. 2022 e voglio importarla a un proggetto lavorato in Xide: quando dico add e aggiungo il .prg, posso vedere il nuevo prg ma non riesco ad avere la form per modificarla. Che sbaglio ? o non si puo' fare ?

Grazie
User avatar
Chris
Posts: 4977
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Copiar form1.prg da visualstudio 2022 community ed. a un proggetto X#

Post by Chris »

Hi Giorgio ,

You can do this:

- Create a new form in your XIDE app
- Open the form in the designer and from the designer toolbar select (last item) Form designer commands -> Import from source code
- Now in the dialog select the designer.prg file of your form in Visual Studio

If the form contains only "normal" controls, it should be ported in XIDE now, but not all of the properties will be adjusted. It is also possible that there will be an error when porting, depending on the controls you use. If there's an error, if you like send me the designer.prg file and I will fix XIDE so that it accepts it well.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
ngpollarolo
Posts: 20
Joined: Mon Feb 29, 2016 3:51 pm
Location: Nicaragua

Copiar form1.prg da visualstudio 2022 community ed. a un proggetto X#

Post by ngpollarolo »

Thank you, it worked
Post Reply