Could you provide some more information about what you actually want to do.Adding a regular command to a canvas works the same way as with a form.Canvas c = new Canvas();c.addCommand(new Command("Exit", Command.EXIT, 0));