Search:

Type: Posts; User: scott_ill

Search: Search took 0.01 seconds.

  1. By the way, I nabbed the regular expression from...

    By the way, I nabbed the regular expression from regexlib.com, and it should "Match currency input with or without commas."
  2. Checking against regular expression on KeyPressEvent

    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...
  3. Active Directory and System.DirectoryServices.AccountManagement

    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...
  4. Replies
    2
    Views
    2,285

    Great stuff. Thanks.

    Great stuff.

    Thanks.
  5. Replies
    2
    Views
    2,285

    Editing the Red X Control Button....

    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...
  6. Replies
    3
    Views
    3,665

    Ah..... I found the path to the new control in...

    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.
  7. Replies
    3
    Views
    3,665

    This is what I thought, but adding the file as a...

    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....
  8. Replies
    2
    Views
    1,469

    Thanks for the reply. I sorted this out a...

    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 :)
  9. Replies
    3
    Views
    3,665

    TabControlEx and dll placement

    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...
  10. Replies
    2
    Views
    1,469

    Updating a datarow in a datset

    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...
  11. Replies
    5
    Views
    3,087

    Dynamic Variable Naming

    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...
  12. Thread: Cost of dict

    by scott_ill
    Replies
    4
    Views
    1,538

    agreed

    agreed
  13. Replies
    2
    Views
    2,120

    Great stuff! In the last hour I wrote an...

    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...
  14. Thread: Cost of dict

    by scott_ill
    Replies
    4
    Views
    1,538

    Thanks, In the scope of the system the...

    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...
  15. Replies
    2
    Views
    2,120

    Enum List problem

    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...
  16. Thread: Cost of dict

    by scott_ill
    Replies
    4
    Views
    1,538

    Cost of dict

    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...
  17. Replies
    0
    Views
    1,785

    State Machine Controller

    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 ...
  18. Replies
    7
    Views
    1,641

    Thanks for the help guys. The following code...

    Thanks for the help guys.

    The following code got the job done:


    if (storedTender.Status.Equals("UNPRICED"))
    {
    //cast type Tender to UnpricedTender
    ...
  19. Replies
    7
    Views
    1,641

    Yes I do understand that, thge problem is there...

    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...
  20. Replies
    7
    Views
    1,641

    Thanks for the reply, The foreach is there...

    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.
    ...
  21. Replies
    7
    Views
    1,641

    New user - Nuint test prob.....

    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...
Results 1 to 21 of 21