My goal is to have a combo box for genders. I need the combo box to display the selected gender. Currently I have a class that has one of it's properties as gender. 1 is supposed to be male and 2 is female. However I am willing to do it however is best. I would like to incorporate binding since that is how I am doing the rest of my app. i.e. text boxes and datepickers etc
My problem is that the only thing I really know how to do in data binding is to drag an item from the data sources menu to a text box or a date time picker. Here the most important thing is the selection be the selection that has been chosen in the object. Ideally I can just use objects but if I have to I can go with xml, but either way I really need some direction.
In the most simplest form, I want a combobox that will load on a form that will have have a item selected already. In other words lets say it's a male. So in my object it will have gender equal to 1. I want my form to know that when gender = 1, then it will automatically select male. I want to use data binding because thats how I have the rest o my project set up, and I feel that I will just be asking for trouble, if I use databinding for only half. I already know I can do it with if statements.
//Iterate through every possible LAN IP address...
//Iterate through every possible Port...
// attempt to connect TCP
success = true;
// not valid
// attempt to connect UDP
success = true;
// not valid
NB: This will take forever to run unless you're VERY lucky!
I have a dataset with 4 different columns Day, Month, and Year-1 and Year-2 (e.g 22-July-2008 is present in Database as: 07, 22, 20, 08) as columns. I have added a new column in Dataset which concatenates all these 4 fields and show it as a date field. Now I just want to know that how can I display these newly added DataSet column also in my Crystal Report alongwith the other fields.
Hi to all
I need ur help in C#
I've a homework and i wanna do a dll file which consist of a button and textBox.
The button is a browes button which allow u to open file dialog and choose a file..
the path of this file is saved in the textBox
I can do it easly in windows application ,but I wanna to do this .dll file
Guys I can not find a list of all the available interfaces in C#. I have done some googling and have found no shortage of tutorials on this feature. Now I would like a big list, other than IDisposable. I do not see anything in my Visual Studio Doco that lists them all out. How can I learn what they are?
This is why I sent you to the diagrams. The BCL diagrams tend to have them listed. Alternatively, you could write a program to load all of the assemblies and iterate over them and use reflection to identify the interfaces.
I can only assume that you want somebody to list the whole bloody lot out to you, as you obviously didn't go the diagrams I sent you to (hence the reason you univoted).
Deja View - the feeling that you've seen this post before.