How to add controls (such as a textbox or button)

Jun 6, 2010 at 6:26 AM

Firstly, brilliant article which has really helped me get started building WinMobile Apps.
What I would like to know is how to add controls (such as a texbox, button) to a 'Dialog'. For instance, I would like to load a Dialog and and have the ability for a user to input a username and password then submit it. What I'm after is the functionality of a 'Form' but implemented using your Dialog. As far as I can see I'm only able to 'Draw' objects on the Dialog rather than add controls.
I'm sure there is an easy answer!
Thanks very much.