By the way, I nabbed the regular expression from regexlib.com, and it should "Match currency input with or without commas."
Type: Posts; User: scott_ill
By the way, I nabbed the regular expression from regexlib.com, and it should "Match currency input with or without commas."
Hi all,
I'm trying to put something together that validates a textbox against a regular expression that defines currency, so on each key press, if the text does not match a valid currency amount...
Hi all,
I've set up a link to AD through AccountManagement.PrincipleContext and I'm trying to loop through all GroupPrinciples contained with AD.
Any ideas how to do this? I've found ways to...
Great stuff.
Thanks.
Hi,
I've stuck some simple code in my form cancel / ok buttons that disables any predecesing forms, and then enables them and brings them to the front once they are required again.
Is there any...
Ah..... I found the path to the new control in Object Browser and then just changed the references in the designer.cs fil for the form and it works.
Thnaks for the confirmation on refs.
This is what I thought, but adding the file as a reference has not had any effect on the original TabControl
I'll have to investigate further into the file itself I suppose....
Thanks for the reply.
I sorted this out a while ago. I think I was forgetting to directly reference the correct row in the dataset or something like that.
Anyway it's all working fine now :)
Hi, very basic question for you all:
I just grabbed a .dll file which is an exension of the existing forms tabControl container.
Can someone point me as to where / how you add such dll files in...
Hi,
I have an existing set of data in SQL which I am referencing as a DataSet object. I want to update some of the fields on one of the rows based on the info that is entered into a form.
I...
Hi,
Is there any way in c# that you can name custom objects on the fly?
I 'm trying to create a method which checks if a "Workload" object exists against a "User" object, and if not it creates...
agreed
Great stuff!
In the last hour I wrote an extra class to get .Exist to work like .Contains :/
public bool Check(List<TenderOutcome> outcomeList, int outcome)
{
if...
Thanks,
In the scope of the system the DateTime should always be unique, since it would be impossible to call the same method on the same object within a one second timeframe.
I will consider...
Hi,
I'm trying to use .exists on list of enums but am getting the following error when trying to pass the value of the enumaerated constant:
"The best overloaded method match for...
Hi,
I'm looking at initialising around 5 dictionaries in a class, intended to store DateTime.now as keys, and then the vaule of some action.
The original class itself will also be stored in a...
Hi all,
I'm interested to know if anyone has used one of these to manage a state pattern in a system?
I'm in the process of drawing up a state diagram, which is probably going to contain a ...
Thanks for the help guys.
The following code got the job done:
if (storedTender.Status.Equals("UNPRICED"))
{
//cast type Tender to UnpricedTender
...
Yes I do understand that, thge problem is there are general params stored within the base object and specialised params at the higher level, which I can't access.
I've stripped the whole test...
Thanks for the reply,
The foreach is there because there is more than one storedTender inside the repository.Tenders list.
The repository.Tenders list is an extraction from a dictionary.
...
Hi all,
I just started C# a couple of days ago and I've not done any programming for about 2 years (and that was java).
Was wondering if you could give me a hand with some code thats falling...