How to create Dynamic Controls in C