Simple example of creating tab controls
View Single Post
at the beginning , i have checked where there already exists a window .if so we do all our creations on that itself .
else we create a new window through cretae window.it consists of 12 fields.
you can further refer to msdn for it