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...
Type: Posts; User: stumon
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...
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...
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...
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...
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.
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...
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....
Thank you Cat. I see now where I was going wrong.
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...
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...
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...
Now I can go to bed with a smile. Reading this was a fun!
I second that! Lmao!
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.
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...
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...
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.
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???
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...
What kind of application are you creating? You mentioned a web service...
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...
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...
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...
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...
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...