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...
Got it! I am actually working on a treeview, but your explanation got me to where I needed to be. Here is the basic code I used:
Dim fntNormal As New Font("Microsoft Sans Serif", 8, FontStyle.Regular)
trvMembers.Font = New Font("Arial", 8, FontStyle.Bold)
...
If .NeedsAssessment Then...
Thank you, Qik3Coder, for your reply. Using ToString worked exactly as you said it would. I will start trying that out more often when I run into similar problems.
As for your other suggestion, I confess I don't understand it. I tried various things that seemed to be what you were...
How can I modify the width of the text portion of a treeview node at run time?
I am working with a treeview control that displays client names of my company. Under certain conditions, some client names need to be flagged by making the backcolor of the node in question yellow and making the...
Thank you, everyone, for your responses. This gives me much to work with, and I am sure I can get the results I need from the resources you mentioned. I am on it!
Cosmic Charlie
Does anyone know a good resource for learning how to program a shopping cart for an ASP.Net website using SQL Server? Does anyone have experience doing such a thing? (I may use Access instead of SQL Server.)
I am doing a site for a small group that sells a small quantity of books and CDS, all...
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.