Search:

Type: Posts; User: stumon

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    10,688

    If you don't feel like initializing i to a value...

    If you don't feel like initializing i to a value then you can always add a "finally" block after your catch block and set i to a value there. This way you can check the value of i later on for any of...
  2. Replies
    2
    Views
    1,767

    This is not C#, its C++. And, I think "Code...

    This is not C#, its C++. And, I think "Code readability 101" needs to be the first required class in every computer science program. Like tabstop said, your arrayLabAve function is left with no...
  3. Replies
    3
    Views
    6,930

    Here is a quicky example on how to use the...

    Here is a quicky example on how to use the information once its bound to the DataGrid.



    private void calcHandicapBtn_Click(object sender, EventArgs e)
    {
    DataRowView...
  4. Replies
    3
    Views
    6,930

    A DataGrid bound to a DataTable would probably be...

    A DataGrid bound to a DataTable would probably be best if you want to break down the elements into table format, using columns and rows. By the way, you had columns and rows backwards. Number of...
  5. Replies
    6
    Views
    9,530

    Edit............... Hey batzilla. Look into...

    Edit............... Hey batzilla. Look into something like Double.TryParse so your code doesn't throw a crap load of exceptions depending on what the user inputs.
  6. It will use the different registries for...

    It will use the different registries for different Bit OS's.... But there is a simple way to check if you are on a 32 bit or 64 bit machine. Just create a bool method that checks IntPtr.Size and if...
  7. Thread: c# rotate image

    by stumon
    Replies
    4
    Views
    17,678

    This might help. Its using the Image class'...

    This might help. Its using the Image class' RotateFlip method. Otherwise, I dont really understand what you are trying to do. But i also gave you a link to the RotateFlipType Enumeration members....
  8. Replies
    8
    Views
    2,064

    Thank you Cat. I see now where I was going wrong.

    Thank you Cat. I see now where I was going wrong.
  9. Replies
    8
    Views
    2,064

    Thanks, Yea, I've come to that conclusion, I have...

    Thanks, Yea, I've come to that conclusion, I have a specific implementation that I want to do, and its pretty much impossible. So I will just stick with accessor and mutator methods with my private...
  10. Replies
    8
    Views
    2,064

    That still wont work. Lets use a baseball game...

    That still wont work. Lets use a baseball game for example. A baseball game would be a class and it has Innings, so those innings would be a class with seperate methods to access the top or botton of...
  11. Replies
    8
    Views
    2,064

    Indexer question...

    Is there a way to implement an Indexer on a class member and not the class itself?

    This is strictly for code readability because I would like the idea of having an Indexer property of a variable...
  12. Now I can go to bed with a smile. Reading this...

    Now I can go to bed with a smile. Reading this was a fun!
  13. Thread: Camel Case!!!!

    by stumon
    Replies
    11
    Views
    10,712

    I second that! Lmao!

    I second that! Lmao!
  14. Replies
    4
    Views
    5,136

    All you need to do, is run through the string....

    All you need to do, is run through the string. Find the spaces and remove those elements of the char array, then just turn the next character ToUpper.
  15. Replies
    5
    Views
    7,422

    I was looking into MySql connector.net. Are you...

    I was looking into MySql connector.net. Are you sure you have a reference added to your project? Im guessing your getting the errors i talked about above and thats because there is no reference to...
  16. Replies
    5
    Views
    7,422

    First of all, connection strings can be difficult...

    First of all, connection strings can be difficult sometimes to get working. Go here: ConnectionStrings.com - Forgot that connection string? Get it here! for some help on that. Second, What are the...
  17. Also, real quick. You set n_id = 0; That means...

    Also, real quick. You set n_id = 0; That means your 'for loop' will only execute once. Theres no point in hard coding a for loop to only execute once.
  18. According to this code, found_match will always =...

    According to this code, found_match will always = (equal) 1. Where is the code to check if something matches so found_match can be set to 1 or 0???
  19. Replies
    1
    Views
    5,522

    What kind of error are you getting? is this a...

    What kind of error are you getting? is this a Runtime, an Exception being thrown? or is this a compiler error?

    Have you checked your database file to make sure the tables and columns are being...
  20. What kind of application are you creating? You...

    What kind of application are you creating? You mentioned a web service...
  21. Replies
    2
    Views
    3,261

    I have yet to use ADO.NET to access an excel file...

    I have yet to use ADO.NET to access an excel file but I did a little reading to your problem. You are on the right track with ADO assuming a NULL value. Most everything I've read talks about reading...
  22. Replies
    8
    Views
    1,006

    You could look into implementing strchr(const...

    You could look into implementing strchr(const char *s, int c) into your program. That will return a NULL pointer if it doesn't find an instance of c in your string. If it is not NULL, then it found...
  23. Replies
    2
    Views
    4,048

    I meant to ask also. What are you planning on...

    I meant to ask also. What are you planning on doing with the DataSet ds? Right now, it has no tables and is not used. So i'm wondering if you are getting confused with "Contacts" and what should be...
  24. Replies
    1
    Views
    1,184

    I am not sure I understand what exactly you want...

    I am not sure I understand what exactly you want to do but I will try to give it a shot. lol.

    The NumericUpDown has a .Value property, a .Maximum, and a .Minimum property. Just use those to set...
  25. Replies
    2
    Views
    4,048

    First of all, your SqlCommandBuilder is not going...

    First of all, your SqlCommandBuilder is not going to do anything because there is no instance of da when this line runs. So those two lines need to be reversed. Check here (SqlCommandBuilder Class...
Results 1 to 25 of 324
Page 1 of 13 1 2 3 4