October 4th, 2010, 04:16 PM
I think the OP wanted to know how to pass data from form to form, not a OpenFileDialog.
Here is a link with 4 methods:
http://www.codeproject.com/KB/cs/pass_data_between_forms.aspx
October 4th, 2010, 03:50 PM
k, now I see. :)
Since the int is not nullable, there needs to be a value you can set to signify that no sort has been specified. Like zero or -1 or 999 or some integer and trap it in the catch:
...
October 4th, 2010, 03:30 PM
Strange, mine compiles and runs.
I put a number in the tb and get a msg for the value.
October 4th, 2010, 03:12 PM
VS 2008
Just guessing here, but have you tried:
Here is my class:
using System;
using System.Collections.Generic;
using System.Linq;
October 4th, 2010, 11:53 AM
Try this, it worked for me.
Put the image file in the dir with the exe of your project(debug or release) or adjust the path to it.
good luck.
using System;
using...