CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cjard

Page 1 of 80 1 2 3 4

Search: Search took 0.21 seconds.

  1. Replies
    1
    Views
    3,122

    Re: Islands challenge, skeloton code given.

    your post doesnt seem to contain a question..
  2. Replies
    3
    Views
    2,042

    Re: Referencing Controls on ASP.Net page

    Then why not establish a Dictionary<string, Control> and iterate the controls by index, asking their id and referencing them?



    foreach(Control c in container)
    dict[c.ID] = c;


    //set the...
  3. Replies
    3
    Views
    1,633

    Re: Try/Catch Statements

    Let's think about the logic of your program, in comments:



    //convert the value the user typed into a decimal
    decimal subtotal = Decimal.Parse(txtSubtotal.Text);...
  4. Replies
    8
    Views
    5,135

    Re: Load user input into 10x4 rectangular array

    It would help to know which line the error occurred on (and I don't mean for you to answer with "line 46" .. i mean "if(currentColumn < calculations column maximum)" )

    That said, on that line...
  5. Replies
    1
    Views
    1,536

    Re: setting default DateTime control

    Ahh,, the age old ugliness of a nullable date time picker rears its head again..

    http://stackoverflow.com/questions/5947726/set-datetimepicker-value-to-be-null

    But i've most often found it to...
  6. Replies
    1
    Views
    2,916

    Re: How to zoom a panel with all control on it?

    Is that not the sort of thing that's normally left to the operating system? Are you doing this for better accessibility for e.g. blind users?
  7. Replies
    1
    Views
    5,584

    Re: Creating an application bot

    (Just a note to say I'm making a personal decision NOT to help out with this, because I don't agree with the [lack of] principles behind creating automated players for games that are designed to be...
  8. Replies
    2
    Views
    1,681

    Re: Help With Project Please

    Here's a constructor definition:

    Constructor()

    Here's a method definition that returns something:

    string Method()

    Here's a method definition that returns nothing:
  9. Re: Hi Hows it going? I'm new and already need help!

    Don't really have enough info, but letters.Any() isnt going to work in the way you expect

    Perhaps consider a loop that iterates through the history and if the url StartsWith()...
  10. Replies
    3
    Views
    2,749

    Re: HttpWebRequest/Response Exception

    i should point out that this code is massively inconsiderate and badly behaved because there's no rate control; it just hammers out a new request as soon as the old one finishes. You should consider...
  11. Replies
    1
    Views
    1,173

    Re: styles disappearing when back button clicked

    Try a different browser to rule out the possibility that your page is cached and the styles are never actually being loaded properly (now) from the server, only from cache
  12. Re: using Response.Redirect() and posting at the same time

    Redirect tells the user's browser to go and get another page
    UserBrowser> Hi server, give me page1's response to button1 being clicked
    Server> Hi browser, request page2 from me
    UserBrowser> Hi...
  13. Thread: DSQuery in C#?

    by cjard
    Replies
    7
    Views
    8,115

    Re: DSQuery in C#?

    Hoping it wont be too difficult.. dsquery is a tool to query active directory services.. I've never done it myself but the following article on querying anything about AD in C# is well rated and...
  14. Re: Beginner problems - reading / writing to a file

    Actually, the easy way is to use settings:
    http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx
  15. Replies
    7
    Views
    48,685

    Re: Hiding a DataGridView column

    Hopefully, at some point since the OP posted 5 years ago, he found the answer to the problem ;)
  16. Re: I declared a variable but can't reuse it in another scope

    Indeed, variables must be made available in whatever scope (within curly brackets) you plan to use them:




    class a{
    object b;

    method c(object d){
    object e;
  17. Re: TcpClient.Connect() is preventing my textbox from updating

    Indeed; welcome to the concept of threads. You can read a vast quantity more on the net about threads than I will present here but for a quick run-down:

    When you write a program in C# and start...
  18. Replies
    3
    Views
    3,941

    Re: Tired. Need Help. Please. :(

    Mmm.. youre using recursion to stay in your program, you should perhaps use a loop in main. Perhaps the biggest problem is that you hvent written your logic out in plain english first, either pen and...
  19. Replies
    18
    Views
    2,876

    Re: Please don't cringe

    Coders should be flexible enough to code to whatever standards are required of them: do as youre told, earn your money, with it do as you want

    Here are no wrongs and rights with...
  20. Replies
    2
    Views
    7,731

    Re: C# Lottery console application NEED HELP!

    When you start learning to program, first write the program in english (or your native language) then translate it into code.. write it in comments, that way you already have a commented program when...
  21. Re: did you ever see if(false) run the if block anyway?

    you know what's even weirder? I just F10'ed again while control was pointing to the "throw exception" line, and no exception was throown, the code just carried on as normal..

    I see different...
  22. did you ever see if(false) run the if block anyway?

    I'm getting that at the moment.. bugging me for the past few hours. The condition in my IF is evaluating to false, but VS2010 Pro runs the if block anyway. Noone in my team can explain it; this is a...
  23. Re: How to read labels and data from a xml file and store them as variables

    DataSet ds = new DataSet();
    ds.ReadXml(PATH_TO_FILE_OR_OTHER_XML_SOURCE_GOES_HERE);
    foreach(DataTable dt in ds)
    foreach(DataColumn dc in dt.Columns){
    MessageBox.Show(dc.ColumnName);
    ...
  24. Replies
    2
    Views
    766

    Re: New to VB.net, but need assistance

    Read the DW2 link in my signature, section "Creating a simple data app"

    Note: you didnt say what version of .net you use so I have assumed 2.0
  25. Replies
    2
    Views
    763

    Re: Data Adapters in vb.net

    http://www.codeguru.com/forum/showthread.php?t=403073
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured