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

Search:

Type: Posts; User: CreganTur

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    848

    JavaScript JQuery- Read value from C# Dictionary

    I'm having to change a working application to accomodate new requirements. Mainly I have 2 arrays, the values of which are now loaded into SQL tables.

    I would like to read these values into C#...
  2. Re: Error: infinite loop in my code(Depth First Search)

    The first thing I notice is that you have "++v" in the declaration of your For loop. It should be "v++"

    I'm just glancing over your code, but that error could be preventing the incrementation of...
  3. Replies
    4
    Views
    1,342

    Re: need help with priority queue/heapSort

    Please enclose your code in [ code ] [/ code ] brackets- it improves readability. It's too hard to try to read large code sections without it.
  4. Replies
    11
    Views
    818

    Re: Static, Classes and Objects

    The class is a blueprint. The object is the implementation of that blueprint.

    A static class and its contained static methods is different because you don't have to instantiate the class to use...
  5. Re: Trying to find date of 2010 for all records in a list (version 4.0)

    Yeah, I'm always forgetting the second = for equality operators.
  6. Re: Trying to find date of 2010 for all records in a list (version 4.0)

    The big problem is your WHERE clause. If the field is named date, then it needs to be:


    var dateSorted = from e in deserializedRoster
    where e.date.Year = "2010"
    select e


    You have to do...
  7. Replies
    3
    Views
    589

    Re: [question] Class structure

    If you're just comparing files to see if they are identical, then you don't need separate classes. Just read the files and compare the length. If that's the same then you can read bytes to compare.
  8. Thread: listbox help

    by CreganTur
    Replies
    2
    Views
    514

    Re: listbox help

    The code you provided only shows lstSeats once in the initializeGUI method, and you're just clearing the list then. Maybe I missed it, but I didn't see anywhere where you were adding items to the...
  9. Replies
    2
    Views
    638

    Re: Help with commenting code

    This is really straight forward, basic graphic stuff. Why do you need help commenting the code? This looks like a homework assignmnet to me, and we don't do people's homework for them. If there's...
  10. Replies
    3
    Views
    1,590

    Re: c# visual studio quiz creating HELP!!!

    If you're running at least VS 2005, hopefully you're using a more recent version, you can create a local SQL database, so there's no need to mess with Access unless you're being required to (this...
  11. Replies
    2
    Views
    787

    Re: Writing Fail-Safe Code

    I'm mostly going to echo what was said above.

    Keeping your method simple in function will give you better control over the application and make it easier to track and fix errors.

    Try/catch is...
  12. Replies
    1
    Views
    633

    Re: Help with C# assignment

    Please surround your code in [ code ] [ /code ] tags (remove the spaces) It makes it much easier to read.
  13. Replies
    17
    Views
    1,622

    Re: Writing a complex loop

    This looks suspiciously like a homework question to me.

    Please tell us what you have tried and we can help, or we can provide a little guidance, but we won't give you the answer straight out.
    ...
  14. Re: Failing Garbage Collector at SerialPort object?

    Does your GC have a Collect method (I'm not familiar with micro .NET)? The collect method is a firmer way of calling the garbage collector, but I do know that you can't always perfectly time when...
  15. Replies
    7
    Views
    1,164

    Re: Book to learn C# classes?

    I didn't get a good handle on classes until I read Head First C# from Head First Labs. It's the best book I've ever read for learning C# and it has a lot of fun examples- you get to build space...
  16. Replies
    3
    Views
    389

    Re: Text file settings

    Use a FileStream to write them to a text file.

    Use a different FileStream to read the text file at Load and assign the values.

    Your question's a little vague, so I can't offer more than that.
  17. Replies
    3
    Views
    411

    Re: SQL Stored Procedures?

    Depending on what you're doing, they can be faster and lighter on resources. They're most useful if you combine multiple tables into a single data pull- makes it so you only have to make a single...
  18. Replies
    1
    Views
    360

    Re: Loop wont work correctly

    Please put code inside code tags ([ code ] [ /code ] without spaces)- it makes it much easier to read your code.

    The code you provided does not show initialization of weatherData[], so I don't...
  19. Replies
    1
    Views
    308

    Re: Need someone help me translate the code

    That code is just a complicated way of using an object without setting a reference to it. What are you actually trying to do?
  20. Replies
    5
    Views
    512

    Re: File.Close()!!!

    The thing you need to close is your FileStream object when you're done using it. Using statements automatically close them for you when the block is exited.
  21. Replies
    3
    Views
    1,665

    Re: Best way to save data in C#?

    If you have a lot of data, then you need a database. LINQ to SQL makes working with databases very easy.

    If it's not a lot, then you have a number of different options for writing to files, or you...
  22. Re: How to enter several numbers to array in one line?

    It's pretty simple. You declare the values you want within curly braces after the initialization.

    int[] intArray = new int[5] {3,5,11,15,46};

    HTH
  23. Thread: C# Error

    by CreganTur
    Replies
    6
    Views
    474

    Re: C# Error

    My main question is why you're converting the Text of a textbox to a string. It's already a string when you pull the Text. Can't really suggest much more than that as I don't know the expected data...
  24. Re: Cannot implicitly convert type "string" to "int"

    Couple of things.

    First, you need to change if (guess = number)- at this moment you're trying to assign the value of number to guess. To test equality you have to use 2 equal signs, like this:
    ...
  25. Replies
    1
    Views
    589

    Re: skipping root element in xml document

    Create an XML Element object based on the root- it will pull in everything under the root.
Results 1 to 25 of 145
Page 1 of 6 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center