Simplest Method I can think of is running QBasic Programs in Virtual Machine Environment and use Print Screen button or simple Screenshot program to take the screenshots.
I have not tried taking screen shot of QBasic Programs before and If you know better way please share with us.