Question Datetimepicker control is grayed out

bravo_s82

New member
Joined
Jun 11, 2008
Messages
3
Programming Experience
Beginner
I'm new to vb.net, and i need to use datetimepicker control on a textbox. However, all Common COntrols are grayed out in the toolbox. Is this an installation issue ? I can only see standard, data, webparts, login, etc in the toolbox. How do i get the common controls to show up.

Thanks, any help is greatly appreciated..
 
Those toolbox sections you mention are only available for web application projects. DateTimePicker is a windows forms control.
 
thanks for the reply.

I want to make i understand this. I am working on a webapplication (website project) and the page i'm trying to place this control is a web form. The source with tags <form></form>

so datetimepicker is not available here?


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>
 
Last edited:
I am working on a webapplication
so datetimepicker is not available here?
No. DateTimePicker is a windows forms control. I see there is a Calendar control in web toolbox, maybe you could like it?
 
Back
Top