This project is read-only.

Error in Tutorial: GUI


Ahoy there! I just wanted to say thank you for creating this library. I'm looking at integrating it with our game. Very excited to have a working console AND windows that tie in together!
Now, the issue that I'm having pertains to the Tutorial: GUI under documentation. I'm getting an unhandled exception when I'm running the code.
"NullReferenceException was Unhandled" under Label.cs line 41. This is called from
hello.Caption = "Hello, World!";
Apparently it can't load the Font? Or maybe the string? It's having an issue measuring the string size. I've tried hardcoding in values to see if it was a method parameters error, but it's not. Perhaps I don't have a font installed that the library asks for?
Anyway, I figure this isn't a big error. But I would like to use the GUI components and I can't get the sample to compile! Yikes! Hope I can help!
P.S. is the project :D


freeqaz wrote Feb 10, 2012 at 4:25 AM

I was able to bypass it by using:
hello = (Label)Form.NewControl("hello", new Label());

wrote Feb 14, 2013 at 3:00 AM