Ok thanks it works now!:)
Megastoffel
Posts
-
Selecting buttons -
Selecting buttonsI'm working on a little project for school and I'm having a little problem with selecting a button. I have some buttons and I have to detect which 2 buttons I just clicked so I can compare the values in it. How do I do that? I can compare the two values, so that's not the problem, I want to know how to select two unknown buttons. My code looks a bit like this
//the text in my buttons is a number! int comp1; int comp2; Button btncompare1; Button btncompare2; //Here's the problem! this is the only way I can select buttons //but I have to select them by a click. btncompare1=button1; btncompare2=button2; comp1=Convert.ToInt32(btncompare1.Text); comp2=Convert.ToInt32(btncompare2.Text); if(comp1>comp2) ...
I hope you understand my problem!!! Thanks -
How to save data in listctrlI have no idea how to save and load the data in my List Control. Can somebody help me please!
-
selecting a row in a List ControlI want to select a row in a List Control and then delete it by pressing a deletebutton in my dialog based program. How do I do that? Please help me, I tried so many things but it doesn't work!
-
Sorting dates in a ListcontrolHi I have a problem with sorting dates in a Listcontrol. When I add some dates they are sorted by day but I want to sort them by day AND month AND year of course. How do I do that? (sorry for the probably stupid question) now I get e.g. 1. 13 May 2003 2. 14 February 2005 3. 15 August 2001 4. 16 May 2003 And I want 1. 15 August 2001 2. 13 May 2003 3. 16 May 2003 4. 14 February 2005 please help me!:confused: