You can create a dialog/window in the IDE's resource editor (quicker and often easier)

or

Create the controls at run time (sometimes required and more 'dynamic').


Then you have to handle...