I've been trying my best to find some code examples on how to disable the datetimepicker dates in the future and also all the weekend dates but i am unable to find any! Only thing i can find is ASP.net code.
If anyone knows how to do this in VB then please do share! :o)
Thanks,
David
Set the DateTimePicker.MaxDate property. You'll have to reject weekend days by validating the user's selection. Use the DateTime.DayOfWeek property.
Related
So, I want to format a column called Cost using a Custom Currency Symbol, let's say New Zealand Dollar.
I can do that using Google Sheets with the following steps
The question is how can I get all the available currencies and their formats using the Google Sheets API? I looked at the guide, but found nothing
Does anyone know about it?
I am posting #Tanaike's comment as an answer here. Hopefully, others who are looking for the answer to the same question may find value.
Unfortunately, in the current stage, there are no methods for retrieving the prepared custom currency from Spreadsheet, while that can be set by the number format with the method of batchUpdate of Sheets API. I apologize I cannot propose the direct solution. As a workaround, for example, how about preparing a list of the number formats and using the custom currency from the list? If this was not the direction you want, I apologize. – Tanaike
Thank you #Tanaike once again
I want to be able to disable some days in a future. Also I want to be able to disable weekends.
I searched for the solution, but I can't find it. All I can find is about max or min date. That's not what I need.
If anyone can help, please. Thank you!
Is there a way to limit the date range in UIDatePicker? I'm aware of the maximumdate and minimumdate properties but I'd like to limit the minimum year visible to 2010. I don't want the user to be able to see any years before 2010. Any ideas?
I don't believe this is possible with a UIDatePicker, but you could achieve this with your own UIPickerView, making sure to implement the UIPickerViewDelegate method, pickerView:didSelectRow:inComponent: in order to deal with bad dates, like February 30th, (to mimick the behaviour of UIDatePicker).
would someone please tells me how to populate a combobox with two or more columns? I have been trying to accomplish this for quite some time but with no results. I would appreciate any help. thank you
I have looked in to this myself and unfortunately there is no such thing as combo box with multicolumns. I got round it by creating my own control, but it was a lot of work for what it is, i would suggest finding a third party tool that does this.
You can use Dev Express controls, there is control called Lookupedit it will show multiple columns
In case anyone's struggling with this still, check here.
for short answer you can use SyncFusion MultiColumnComboBox (documentation here for c# or here for VB). If you follow the first link, it will direct you to my answer on a similar question with an example on code.
I just HATE the UIDate and Time Picker that Apple supplies. Do you know of any other library that creates an equivalent UI element for picking time and date, that can be better customized at least? I'd hate to rediscover the weel.
Thanks!
Just for any others wondering about my conclusions...
I think it would look better to use a calendar to pick the date and keep a picker for the time so far.
For calendar there is a good implementation here:
https://github.com/klazuka/Kal