Hello Moon – A Small Basic Tutorial

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

Today we're going to do a very simple Small Basic tutorial.


Boot up Small Basic, and let's get started!


Type this in:


GraphicsWindow.TItle = "Hello Moon: The Program"

GraphicsWindow.Width = 320

GraphicsWindow.Height = 240

GraphicsWIndow.DrawImage("C:\Small Basic\backgroundbmp", 0, 0)


GraphicsWindow.BrushColor = "White"

GraphicsWindow.FontSize = 50

GraphicsWindow.DrawText(10, 120, "Hello Moon!")




Great. Except it will throw an error, because you don't have the image! Here's what you do...


1. Download this image (right-click and Save it):


2. Be sure to save it where you want it!

3. Then update the code to set the path in line 5 to the correct location of the background.bmp file on your computer!

4. Run it again!


That's it! Hello Moon! Wasn't that easy? Now, everyone can code!


Have a Small and Basic day!


Ninja Ed

REMEMBER: these articles are SYNDICATED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.