 |
|
| .NET DotNet Forum Index » VB.NET Forum (Visual Basic .NET) » Type question... |
|
Page 1 of 1 |
|
| Author |
Message |
| Johnny J.... |
Posted: Mon Nov 02, 2009 9:51 am |
|
|
|
Guest
|
I have always wondered (but never bothered to ask) why it doesn't seem like
"DateTime" is a native .NET type.
I mean, you can write code like:
Dim myDate as DateTime
....but when you get to the DateTime part, the type doesn't show up in the
intellisense, and you always have to hit Esc to avoid it being replaced by
"DateTimePicker".
Can anybody explain the reason for this?
Now big deal, I'm just wondering...
Cheers,
Johnny J. |
|
|
| Back to top |
|
|
|
| Armin Zingler... |
Posted: Mon Nov 02, 2009 10:34 am |
|
|
|
Guest
|
Johnny J. schrieb:
Quote: I have always wondered (but never bothered to ask) why it doesn't seem like
"DateTime" is a native .NET type.
I mean, you can write code like:
Dim myDate as DateTime
....but when you get to the DateTime part, the type doesn't show up in the
intellisense, and you always have to hit Esc to avoid it being replaced by
"DateTimePicker".
Can anybody explain the reason for this?
Now big deal, I'm just wondering...
Whenever I type "dim myDate as DateTime", DateTime is also listed. VS 2008 Prof/SP1.
The whole list contains:
DateTime
DateTimeKind
DateTimeOffset
DateTimePicker
DateTimePickerFormat
--
Armin |
|
|
| Back to top |
|
|
|
| Scott M.... |
Posted: Mon Nov 02, 2009 10:59 am |
|
|
|
Guest
|
"Johnny J." <johnny at (no spam) jcsoftwaresolutions.com> wrote in message
news:OipwIw8WKHA.4688 at (no spam) TK2MSFTNGP06.phx.gbl...
Quote: I have always wondered (but never bothered to ask) why it doesn't seem like
"DateTime" is a native .NET type.
I mean, you can write code like:
Dim myDate as DateTime
...but when you get to the DateTime part, the type doesn't show up in the
intellisense, and you always have to hit Esc to avoid it being replaced by
"DateTimePicker".
Can anybody explain the reason for this?
Now big deal, I'm just wondering...
Cheers,
Johnny J.
DateTime always comes up in the intellisense for me. Never heard of it not
coming up like you are experiencing. You might try resetting your
preferences in Tools...Import / Export Settings and try again.
-Scott |
|
|
| Back to top |
|
|
|
| Gregory A. Beamer... |
Posted: Mon Nov 02, 2009 11:47 am |
|
|
|
Guest
|
"Johnny J." <johnny at (no spam) jcsoftwaresolutions.com> wrote in
news:OipwIw8WKHA.4688 at (no spam) TK2MSFTNGP06.phx.gbl:
Quote: I have always wondered (but never bothered to ask) why it doesn't seem
like "DateTime" is a native .NET type.
I mean, you can write code like:
Dim myDate as DateTime
...but when you get to the DateTime part, the type doesn't show up in
the intellisense, and you always have to hit Esc to avoid it being
replaced by "DateTimePicker".
Can anybody explain the reason for this?
DateTime does come up in my Intellisense. it might be that you do not have
a "Imports System" statement at the top, so it is not showing up natively.
That is the only reason I can think of.
BTW, Intellisense is SWEET in VS 2010. ;-)
Peace and Grace,
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: at (no spam) gbworld
Blog: http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
******************************************* |
|
|
| Back to top |
|
|
|
| Captain Jack... |
Posted: Mon Nov 02, 2009 12:33 pm |
|
|
|
Guest
|
"Johnny J." <johnny at (no spam) jcsoftwaresolutions.com> wrote in message
news:OipwIw8WKHA.4688 at (no spam) TK2MSFTNGP06.phx.gbl...
Quote: I have always wondered (but never bothered to ask) why it doesn't seem like
"DateTime" is a native .NET type.
I mean, you can write code like:
Dim myDate as DateTime
...but when you get to the DateTime part, the type doesn't show up in the
intellisense, and you always have to hit Esc to avoid it being replaced by
"DateTimePicker".
Can anybody explain the reason for this?
Now big deal, I'm just wondering...
Cheers,
Johnny J.
If I type the "Common" tab at the bottom of the Intellisense window,
DateTime is not an option, but if I click the "All" tab, it does show up.
Maybe that's it. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Sun Dec 06, 2009 9:42 am
|
|