Chip,
Your case is compelling ... just as it was when I made essentially the same case to the client. I still got the same answer: No third party tools. Not sure what their issue is, but I'm not the one writing the checks.
Cosmic Charlie
Thank you, Ch Saj. I'll take a look at that again. On first look it didn't appear to meet my needs, but perhaps I overlooked something. If you have any suggestions or can point me in a good direction, that would be very helpful.
Cosmic Charlie
Yes. I am limited to what is available in Visual Studio and DevExpress. I neglected to mention DevExpress, but the project I am working in uses it to manage data access and also uses a number of its controls. I could find nothing in DevExpress that would do this.
My first attempt involved...
Thank you, JurkMonkey. I appreciate your response very much. I have posted three versions of this question in two different forums, and yours is the first response I have received.
What you suggest is, in fact, the very solution that I have been hoping to avoid. I thought about that early...
I am writing a module that schedules tasks for employees, and client limitations prohibit using Outlook/Exchange or third party tools. I have a user control that represents one occurence of a given task, and I want to effect the scheduling of the task by dragging the control over a grid showing...
I am trying to implement a drag/drop operation on a DataGridView using C# and having no luck. The main problem is that the DragEventArgs of the grid's DragDrop event contains no information about the cell overwhich the event took place. I am working with a disconnected grid.
The larger issue...
Thank you both, TRG and MK! These give me a lot of options that, at the very least, will reduce calls to IsDate to a minimum. And now would be a good time to learn about Regex.
CC
Actually, the IsDate test is the last thing I do, for the very reasons you mentioned. Basically, acceptable values in the text box are limited to a few variations on some set values, or a time, or nothing. Anything else is invalid. I do everything possible to avoid having to call IsDate, but...
Thank you, Sirius, for your reply, which directly addresses the issues I raised.
It looks like I am stuck. The fact is that for various reasons specific to this situation, the date/time picker cannot be used and multiple controls cannot be used. I have been back and forth with the users (and...
Qik3Coder,
I poked around in the Help files, which confirmed your assertion that CDate is faster than CType. Unfortunately, it is less useful because it will convert integers within the valid range as dates or times, and this can produce the wrong result sometimes.
Regarding your...
Qik3Coder, please refer to MastaKilla's response.
The suggestion, by the way, works but I am finding that the CType function is no faster than IsDate when applied to dates. This is not consistent however. Presumably IsDate uses this method behind the scenes.
I am still curious if anyone has...
Qik3Coder,
Thank you for your question. Unfortunately, questions of formatting do not really apply to my situation. In this program, there are several valid entries that users can type into the textbox that are not dates. I need the IsDate function, or something like it, to analyze the data...
Ugly? Well, a little bit.
But I am learning the hard way that users want solutions that are good enough and they want them now. They don't want to wait for elegance. If your solution gets a working product out the door faster, then that is what I will use.
I will still field other ideas...
Has anyone else experienced incredible slowness with the IsDate function in VB.Net? I have found that it can take up to three seconds to return a value, especially if the return value is false. In the samples I am using it is reading a value from either a text box or a treeview node.
IsDate...
I would suggest defining a collection object before your loop. Then each time you identify a node you wish to return you can add it to your collection. At the end, return the collection.
I do not have extensive experience with collections in .Net, so there may be some subtleties to this that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.