473,732 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DateTimePicker not a valid windows class????????

Dan
I'm trying to learn VB on my own, and recently bought vb.net version 2003.
The book I'm learning from is "Getting Started with Microsoft vb.net version
2003" by Michael Halvorson.

I've gone through all the lessons, except 1, for the DateTimePicker control.
I click on it in the tool bar, but as soon as I drag it to the form I get a
message that says "DateTimePi cker not a valid windows class". All other
tools work with no problem. This is the only one that's giving me a problem.

Anybody have any ideas?

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com

Nov 20 '05 #1
7 1381
Dan,

First of all... The date time picker in 2003 sucks. I have not tried it yet
in 2005 beta, but believe me I will tonight.
The controls are very different depending on whether you are getting them
from the Windows forms or from the Web forms so which is this you are using?

Regards
Jerry
"Dan" <sp*****@your-risk.com> wrote in message
news:ePXOc.1898 25$a24.140186@a ttbi_s03...
I'm trying to learn VB on my own, and recently bought vb.net version 2003.
The book I'm learning from is "Getting Started with Microsoft vb.net version 2003" by Michael Halvorson.

I've gone through all the lessons, except 1, for the DateTimePicker control. I click on it in the tool bar, but as soon as I drag it to the form I get a message that says "DateTimePi cker not a valid windows class". All other
tools work with no problem. This is the only one that's giving me a problem.
Anybody have any ideas?

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com

Nov 20 '05 #2
Dan
Thanks Jerry. I'm getting them for Windows forms

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Jerry" <Je*********@ya hoo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Dan,

First of all... The date time picker in 2003 sucks. I have not tried it yet in 2005 beta, but believe me I will tonight.
The controls are very different depending on whether you are getting them
from the Windows forms or from the Web forms so which is this you are using?
Regards
Jerry
"Dan" <sp*****@your-risk.com> wrote in message
news:ePXOc.1898 25$a24.140186@a ttbi_s03...
I'm trying to learn VB on my own, and recently bought vb.net version 2003. The book I'm learning from is "Getting Started with Microsoft vb.net version
2003" by Michael Halvorson.

I've gone through all the lessons, except 1, for the DateTimePicker

control.
I click on it in the tool bar, but as soon as I drag it to the form I

get a
message that says "DateTimePi cker not a valid windows class". All other
tools work with no problem. This is the only one that's giving me a

problem.

Anybody have any ideas?

--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com


Nov 20 '05 #3
Dan,

Should normally work with any problem.
Tell something more.

Cor
Thanks Jerry. I'm getting them for Windows forms

Nov 20 '05 #4
Dan
Thanks. I really don't know what more I can tell you. All the other tools
work with no problem at all. But DateTimePicker comes up with "not a valid
windows class".

Running Windows XP home edition with SP1.

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:eZ******** ******@tk2msftn gp13.phx.gbl...
Dan,

Should normally work with any problem.
Tell something more.

Cor
Thanks Jerry. I'm getting them for Windows forms


Nov 20 '05 #5
Dan,

When you right click on your toolbar where the datetimerpicker is, than
opens a window where you can see where it comes from. What is writen in the
checked row from the datetimepicker there?

Maybe something strange?

Cor
Nov 20 '05 #6
Dan
Cor;

It just has the standard list that all the rest of them have. The only one
that't checked is "List View". Same as all the other tools.

Thanks for your help.

Dan

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Dan,

When you right click on your toolbar where the datetimerpicker is, than
opens a window where you can see where it comes from. What is writen in the checked row from the datetimepicker there?

Maybe something strange?

Cor

Nov 20 '05 #7
Hi Dan,

I would not know what is than the problem. It seems weird to me.

Did you know that there was this newsgroup.

microsoft.publi c.vsnet.ide

Cor
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5180
by: M Keeton | last post by:
If have a problem in VB.NET 2003 with the DateTimePicker. If I place the control on a form and run my application I get an error as the form opens saying: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: '01/01/0001 00:00:00' is not a valid value for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.
9
3973
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it will not set the value of the control and will leave the checked status of the checkbox to false when a user selects a new date. this works fine when using the control on a win2k machine but if we use it on a win XP box and call
9
5043
by: Ed Crowley | last post by:
I have a DateTimePicker control on my form that is displaying the date format in UK format (dd/mm/yy). However, in my code dtpStartDate.Value gives a date in US format, but dtpStartDate.Value.ToString() gives the date in the required UK format! Any ideas? All system locale settings are set to British/UK settings.
0
2175
by: Sumit | last post by:
Hi all, I have a datetimepicker on my windows form. When the user selects it i check whether the date entered is a Sunday or not & if its not a sunday i want that the control remains on the DateTimePicker & the DateTimePicker is displayed in its expaned form (i.e displaying the calendar). If i do a datetimepicker.focus(), then the focus goes to the datetimepicker but the user who is using it might ignore the focus as
1
3821
by: Karl | last post by:
Hi, .Net experts, I am using DatagridDateTimepickerColumn style posted on MSDN .net class document in my datagrid. You can see the datagridDateTimepickerColumn style at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridcolumnstyleclasstopic.asp It works fine with the datetimepicker column of current record in datagrid. But when I click the very last record in datagrid (which...
3
7516
by: Simon Tamman | last post by:
I've come across an interesting bug. I have workarounds but i'd like to know the root of the problem. I've stripped it down into a short file and hope someone might have an idea about what's going on. It's a simple program that loads a control onto a form and binds "Foo" against a combobox ("SelectedItem") for it's "Bar" property and a datetimepicker ("Value") for it's "DateTime" property. The DateTimePicker.Visible value is set to...
1
3237
by: Kevin | last post by:
I have put a VS2005 sample project up here: http://www.kevinandkiran.com/CSharpApplication.zip (its only 50k) Basically I have a class that contains a date property, which is initialised to 1/1/1970. I create a project datasource from this and then drag my class onto my form which binds my property to a datetimepicker. However when I set the bindingsource to be an instance of my class at runtime I get the following exception:
0
2600
by: tschroeder250 | last post by:
Hi Everyone, There are so many Nullable DateTimePickers out there that this post may not even be found among all the others, but I wanted to try. First, I want to thank all the authors of the code I used as a starting point. Second, I hope this code helps someone as much as they helped me. I have built a Nullable DateTimePicker and NullableCalendarColumn/Cell/EditingControl that is nearly 100% complete, as far as I can tell. There is...
0
5655
by: priyamtheone | last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have: 1) Initially all the cells of the dtp column should be blank unless they are filled by the user. 2) As soon as the user enters a cell, the dtp control should appear as the editing control of that cell. If there's a value in the cell beforehand, that value is set as the value of the dtp editing control...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.