Question:
Naming DateTimePicker in Visual Basic (EASY 10 pts) HELP?
Jack
2012-03-06 08:26:59 UTC
So, I can't seem to find the naming convention for a Date Time Picker in Visual Basic.

Can someone help me out with this?

Thanks!
Three answers:
MarkG
2012-03-06 10:36:52 UTC
Hungarian Notation is a naming convention where a two or three letter prefix identified the type of control or dataype. This prefix is small case and preceeds a meaningful name where the first letters of the words are capitalized.



There are some suggested Hungarian Notation's for commonly used controls so that others can easily read and interpret your code. Textboxes , Labels & Buttons are an examlpl of common controls. Lesser used controls like a Date Time Picker may not have a predefined prefix. The common practice would to use first letters from each word as the prefix.





dtp = Date Time Picker





The notation in combination with a meaningful name would look like:



dtpBirth

dtpBirthDay



A date time picker for entering a birth day......
anonymous
2016-10-19 11:32:31 UTC
female a million- Layla Jade female 2- Ava Gabriella Boy a million- Nolan James female 3- Charlotte McKenna Boy 2- Brendan Austin Boy 3- Lucas Owen female 4- Alexis Kimberly Boy 4- Declan Elijah Layla, Ava, Charlote, Alexis, Nolan, Brendan, Lucas and Declan ..i love the girls and Lucas. My fav names from up there are Rhiannon, Olivia, Madison, Carter, Aidan, Kennedy,Cooper, Logan, Mason, Lucas, Alexis
anonymous
2012-03-06 09:46:07 UTC
Hi,



Is this what you mean?



MsgBox Now()



The msgbox thing is optional, or if you want to pass the time and date into a variable



today = Now() 'the variable being today


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...