I am new to VB and need to use it for my school project. As the project is about some booking system, I need to enable users to select the time they want to book the facilities.
I would like to know how can I display the time in a label together in the form of , for example, instead of "9 : 0", I want to have "9 : 00"? I know that the DateTimePicker can easily accomplish what I want but I do not need the time to be precise until seconds.
Another question is that how do I close the main form after I had opened up another form? I had tried adding "Me.Close" after the code "frmExample.Sho wDialog()" but it does not execute.
Thanks and sorry if you may find it difficult to understand my English because I do not normally speak or write in English.
I would like to know how can I display the time in a label together in the form of , for example, instead of "9 : 0", I want to have "9 : 00"? I know that the DateTimePicker can easily accomplish what I want but I do not need the time to be precise until seconds.
Another question is that how do I close the main form after I had opened up another form? I had tried adding "Me.Close" after the code "frmExample.Sho wDialog()" but it does not execute.
Thanks and sorry if you may find it difficult to understand my English because I do not normally speak or write in English.
Comment