C# updates

If you’ve been following along with my C# series you should be able to open your copy of the app we’ve been creating and update the Einhugur Forms nuget package.

This brings along some new controls to use as and some additions to existing ones

You’ll see there’s a dat picker, disclosure triangle, combobox and additions to the listbox for headers.… Read the rest

Watch what they do

What we as users get told is “report your issues, upvote them as this influences priorities”
So many do ; or did. I’ve got far too many people telling me I just gave up reporting them as they never get fixed. From names that if I listed them would surprise people.

Since I still use Xojo for client projects I report bugs and tell my clients to advocate for them getting fixed.… Read the rest

Tired of adding strings ?

If you’ve ever had to write a lot of output with strings you’ve probably had to concatenate them.

In VB you used &. In Xojo you use + and more than likely Str, Format, and the newer ToString.

Eventually when you write enough code you end up with things that look like

Var Explanation as string = "Hint: If you don't save," _
  + " you will lose your work" _
  + " since your last Save."
Read the rest

Bait & switch ?

in this youtube video posted from the recent Developer Retreat
https://youtu.be/mWEH0kjXZiA?t=2091
geoff talks about the roadmap in the screen shot below I took a screen shot since I knew it was going to change.

Items highlighted in red have disappeared from the new roadmap

Yet, on the testers channel, they already had a complete replacement for it
(also screen shot when I learned of this)

I was more surprised that they talked about it in the keynote knowing that the roadmap was going to change and drop many items.… Read the rest

Working with databases in C#

The trek continues !

One of the common things we need our applications to do is interact with a database. Sometimes its just a local SQLite, or other stand alone db engine like that, or some “Big Iron” database like Oracle, MS SQL Server, PostgreSQL, etc. Or maybe a NoSQL database like Mongo ?
With Xojo there are only a handful of plugins Tod ell with the vast majority of databases.… Read the rest

Working with Databases in C# – status

yes I’m still working on this and am figuring out which of the gazillion database modules available for things like Oracle, SQLITE, etc work on macOS

With .Net Core and some of the supporting modules being fairly new to macOS not all of them work. There seem to be several choices for using any of the db’s from MS SQL Server, Oracle, PostgreSQL, Mysql, MariaDB etc all the way to ones I’ve never heard of

You’re welcome !

Some one at Xojo could have, should have, posted about how to do this

It didnt seem to be forthcoming so I did over on INN

Just disappointed that Xojo seems to just not try & help users unless its via email

😞

Adding Event handlers

OK So now we have a control on a Window
But how do we react to events that happen to that control ?
Like KeyDown, Keyup, GotFocus, LostFocus, and TextChanged. Thats all the events there are on TextFields – for now.

In Xojo you’d just add the event handler to the control & put code in it.… Read the rest

Adding menubar & controls in C#

For all of you following along YEAH its about damned time ! 🙂
I agree

I’ve been proceeding slowly to make it so you can follow and not try to cram 10000 items in one post (we ARE trying to keep it manageable)

First Lets remove the last bits of “cruft” left in our getting starting project
Since we’re not actually using a normal macOS document application we can delete the ViewController.csRead the rest

Creating our Window in C#

So far when you run the project it will show a main window.
But this is because we created the kind of project we did with a main storyboard and an entry in the Info.plist that told macOS what should be the main window.

It isn’t one we created in our new framework.

Lets rectify that.… Read the rest