X# Newbie

We encourage new members to introduce themselves here. Get to know one another and share your interests.
Post Reply
Posts: 1
Joined: Thu Jun 02, 2016 5:22 pm

X# Newbie

Post by Stephh »

Hi folks!

Biting the bullet and moving from VO to the .NET world using X#. 
I have Xide installed and I although I can navigate around I am at a complete loss for a bunch of other stuff, mainly everything that's .NET! 
I need some sample projects (not the examples supplied with X#) for the basics like showing a messagebox (system.windows.forms !?!) and how to figure out what I need to include in the references.
I'm not planning on converting existing VO apps to X# but building new ones using the VODialect as that's what seems to make the most sense to me.

Any help welcomed! 

User avatar
Posts: 722
Joined: Fri Sep 25, 2015 3:11 pm

X# Newbie

Post by lumberjack »

Hi Steph,
Look under Articles/User Contributions.
I have also wrote a series (still to be completed) about Data-driven programming in that section which you might find useful.
Here is the LINK

User avatar
Posts: 3458
Joined: Mon Nov 02, 2015 5:07 pm

X# Newbie

Post by wriedmann »

Hi Steph,
welcome here!
In X# you have basically 4 different GUI choices (very simplified, there are many more).
  • using the VO GUI classes, even starting them in X# (that is what we have done for 2 different projects). Main advantage is that you are starting with what you know and with the very high productivity factor you know from VO, including bBrowser and ReportPro
  • using the new VO GUI classes based on Windows Forms. They are not yet completely finished, but should work. Since these classes are Windows Forms based, they also work in AnyCPU mode, not only in x86 mode as the normal VO GUI classes. Main advantage: you retain most of the productivity you know from VO. But currently things like the bBrowser and ReportPro are missing
  • using Windows Forms. This is an entire new world, and many things you know from VO are missing, like pictures in edit controls, name based databinding and so forth. Many things can be rebuilt, but this is some work before you get productive. We have some applications in production, but they have much less features than the normal VO based applications. But I would count on a productivity that is about the half one of VO
  • using WPF. If Windows Forms is a new world, WPF is a new universe. You not only have to learn only a new and completely different GUI API (vector based instead of pixel based, using DirectX instead of GDI, and more like HTML development than Windows development), but also MVVM and maybe some MVVM framework. And you have to rethink the way your are designing the user interfaces. You can expect a drastic productivity drop, but applications that are completely different, much more flexible and usable on a large selection of display resolutions. Things like a checkbox and/or an edit control in a pushbutton are possible and relative easy. We have several such applications in production, and the users are happy with them.
What you also have to consider for both Windows Forms and WPF: you may need to buy a controls toolkit - they range from several 100 to 1.000 and more euros per year as subscription.

If you have installed XIDE, there are some WPF samples contributed by myself. You could look at them.

User avatar
Posts: 4183
Joined: Thu Oct 08, 2015 7:48 am

X# Newbie

Post by Chris »

Hi Steph,

In additions to what the guys said, simplest starting point is to use the app templates provided in XIDE. After you create a new project and opening it in the first project selection screen, then sdlect Project->Create New->Application and:

- for the familiar VOGUI, choose Standard VO Mdi, everything should look familiar from here
- for WinForms, choose Basic X# Form Application. Of course it will need a lot of reading and experimenting to get familiar with WinForms, but showing a message box is easy with

System.Windows.Forms.MessageBox.Show("some text here", "caption")

- for WPF, please go to the "Samples" page in the create new dialog and see the samples provided by Wolfgang
Posts: 90
Joined: Sun Aug 23, 2020 3:07 pm

X# Newbie

Post by VR »

Here's a GitHub Repo with some x# Examples, that show how to use dotnet classes.

Post Reply