473,836 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get data from datetimepicker to combobox

1 New Member
Dear all,

I am working C#.net2005.I Have problem that is i have one datetimepicker and combobox.now i have msaccess databse.in that database i have datatime field.but i need to get datetime into datetimepicker when user click the datetimepicker the data has to come form database and it has to set date form database.based on that date i need get persons are in combobox.

means once i click datetimepicker it need to access the data from database(Ms Access) and set that date if not avilable that date in database "say not avilable" and if it is avialble combobox (which is perosons list which is also comming form databse) personslist need to be dispalyed in combobox.

please can help for code or sample for this. I am working on C#.net

Advanced Thanks.

venkat
Apr 26 '07 #1
1 2992
Frinavale
9,735 Recognized Expert Moderator Expert
Dear all,

I am working C#.net2005.I Have problem that is i have one datetimepicker and combobox.now i have msaccess databse.in that database i have datatime field.but i need to get datetime into datetimepicker when user click the datetimepicker the data has to come form database and it has to set date form database.based on that date i need get persons are in combobox.

means once i click datetimepicker it need to access the data from database(Ms Access) and set that date if not avilable that date in database "say not avilable" and if it is avialble combobox (which is perosons list which is also comming form databse) personslist need to be dispalyed in combobox.

please can help for code or sample for this. I am working on C#.net

Advanced Thanks.

venkat
I find your question quite confusing.

What have you tried so far?

Are you having problems setting the dateTimePicker with the value you have retrieved from the database?

Or

Are you having a problem putting the "not available" into the database when the user selects a date?

Also I don't know what "persons" are.


-Frinny
Apr 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
457
by: lasha | last post by:
hi all how can i make combobox and datetimepicker readonly? thank
1
323
by: aido | last post by:
Hi all, I have bound a custom list object to a combo box's data source. This object implements the ITypedList interface and returns a PropertyDescriptorCollection to the fields in the list object. The appropriate list field is then selected via the ComboBox's DisplayMember property. Everything works fine up to this point. If however the combo box Visible property is cycled it seems to lose the property descriptor information; the...
0
2019
by: Uchiha Jax | last post by:
When using a strongly typed dataset (generated from the Visual Studio IDE from an XSD file) and databinding I get a really odd error when binding to both a combox and a datetimepicker. I bind like the following: //// tDs is the strongly typed dataset, //// tDs.TheTask returns a strongly typed row from one of the tables. /// GetBindingTaskTypes() returns the types I want to use as a datasource in an arraylist.
4
5687
by: Jacek Jurkowski | last post by:
.... the minimum date of DateTimePicker is 1753-01-01. How to make DateTime to do not show nothing in its text if this date is the value? I have a form with a field LastLogonDate. If user hasn't logon yet this date should be empty but when binding a property to the DateTimePicker value it always shows value parsed prom property which is 1753-01-01. How to make an "empty" or "not set" date bindable to a value property of DateTimePicker?
1
1688
by: Robert Batt | last post by:
Hello, I have a bound datagrid that contains the following date column Dim tcQuoteduedate As New DataGridTextBoxColum tcQuoteduedate.MappingName = "MYCustomerCustomerTQuoteDueDate tcQuoteduedate.HeaderText = "Quote Due Date tcQuoteduedate.Width = 8 tcQuoteduedate.Format = "d tcQuoteduedate.NullText = " Is there any way that I can use a datetimepicker to allow the user to select from this datetimepicker in the datagrid, rather than...
2
5465
by: Austin T | last post by:
I have a datetimepicker called say mydteTimePicker and it is bound to a dataset. However the the dataset value is null the datetimepicker displays today's date as the default. I would like it to display a blank if there is no date. Any ideas on how to do this Thank yo Austin
2
4915
by: Matthias | last post by:
Hi Team this may be a newbie question. I have searched the discussions before posting: I'd like to re-use a form instance to edit record details. My data binding (a DataTable bound to TextBoxes) works fine the first time round. I can see, edit and update the details from my form, then close the form. I then like to select and refill the datatable with a different record (new
2
1731
by: =?Utf-8?B?Y2xhcmE=?= | last post by:
Hi all, How control( or erase ) a datetimepicker's display and make it look like an ordinary combobox before clicking it? Clara -- thank you so much for your help
5
1609
by: raajakumars | last post by:
urgent!!!!!!! kindly please anyone help me....... actualy i am newbe to vb.net i need data to be inserted in to my table like this... sitenm cdate wrknm nowrk totwg tamiz palace 12/1/2007 Electrician 34 5100 tamiz palace 12/1/2007 Mason 5 900 instead my following code produces result like this..
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10600
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7794
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
6981
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
5651
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
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4459
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
2
4022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.