Dim txtfirstname As VMInputControl = vm.Container.NewText("firstname", "First Name", "First Name", True, "", 0, "", "The first name is required!", 0)
Dim txtlastname As VMInputControl = vm.Container.NewText("lastname", "Last Name", "Last Name", True, "", 0, "", "The last name is required!", 0)
'
Dim dpDOB As VMInputControl = vm.Container.NewDatePicker("dateofbirth", "Date of Birth", True, True, True, "Date of Birth",0)
Dim tpTOB As VMInputControl = vm.Container.NewTimePicker("timeofbirth", "Time of Birth", True, True, "", "",0)
'
Dim txtTel As VMInputControl = vm.Container.NewTel("telephone", "Telephone", "Telephone Number", True, "", "", "",0)
Dim txtEmail As VMInputControl = vm.Container.NewEmail("email","Email Address","Email Address",True,"","", "The email address is required!",0)
'
Dim radGender As VMInputControl = vm.Container.NewRadioGroup("gender", "Gender", "M", CreateMap("M":"Male","F":"Female"),0)
Dim chipSkills As VMInputControl = vm.Container.NewChips("skills", "Skills", "", False, False, "","", 0)
'
Dim children As VMInputControl = vm.Container.NewNumber("children", "Total Children", "", False, "", "","", 0)
Dim notifications As VMInputControl = vm.Container.NewSwitch("notifications", "Receive Notifications", "true", True, 0)
'
Dim profilepic As VMInputControl = vm.Container.NewImage("displaypic", "./assets/sponge.png", "SpongeBob","80px", "80px")
Dim uploadprofile As VMInputControl = vm.Container.NewFile("uploadpic", "Upload Profile Image", "", False, "", "", 0)
Dim notes As VMInputControl = vm.Container.NewTextArea("notes", "Notes", "", True, True, "", 0,"", "Notes are required!", 0)
Dim agree As VMInputControl = vm.Container.NewCheckBox("agree", "I agree with terms of use", "true", True, 0)
Dim txtPassword As VMInputControl = vm.container.NewPassword("password","Password","",True,False,"",15,"", "The password is required!",0)
Dim txtconfirmPassword As VMInputControl = vm.container.NewPassword("confirmpassword","Confirm Password","",True,True,"",15,"", "The password is required!",0)
'add the controls, the grid will be automatically created
mdlRegister.Container.AddControl(profilepic,1,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(uploadprofile,1,2,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(txtfirstname,2,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(txtlastname,2,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(dpDOB,3,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(tpTOB,3,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(txtTel,4,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(txtEmail,4,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(radGender,5,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(chipSkills,5,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(children,6,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(notifications,6,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(txtPassword,7,1,0,0,0,0,12,6,6,6)
mdlRegister.Container.AddControl(txtconfirmPassword,7,2,0,0,0,0,12,6,6,6)
'
mdlRegister.Container.AddControl(notes,8,1,0,0,0,0,12,12,12,12)
mdlRegister.Container.AddControl(agree,9,1,0,0,0,0,12,12,12,12)