Forum: C# Jul 5th, 2008 |
| Replies: 4 Views: 1,986 I checked MSDN page for selectedrows property (http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectedrows.aspx). it says just check SelectionMode property on properties... |
Forum: C# Jun 28th, 2008 |
| Replies: 1 Views: 2,604 mouse click is an event which only be form as how its delegate describes it. that means there is no way to change what it takes. but if you need a different mouseclick event you can create one of... |
Forum: C# Jun 28th, 2008 |
| Replies: 1 Views: 2,085 treeview had a NodeMouseClick event when any node clicked this event gets fired. you can get which node clicked from e.Node varaible. it returns a reference to the node that clicked. here is a sample... |
Forum: C# Jun 28th, 2008 |
| Replies: 2 Views: 2,312 if I would see the code I would give you a better answer. but I think what your problem is that you are drawing the line on onClick event. you have to draw it on onPaint event in order to keep them... |
Forum: C# Jun 28th, 2008 |
| Replies: 3 Views: 623 u have to make it public in order to access it.
public int myProperty...... |
Forum: C# Jun 28th, 2008 |
| Replies: 1 Views: 1,058 here is a tutorial (http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=400) for you. Actually I would suggest to google it first. there are millions of tutorials about that subject |
Forum: C# Jun 16th, 2008 |
| Replies: 7 Views: 1,253 hello again!
first of all since you are listening your connection from the thread you will have to throw acception from your client. and your code in your backgroun thread probably will look like... |
Forum: C# Jun 16th, 2008 |
| Replies: 7 Views: 1,253 I forgott to send you the coe fot delegate that I used in that function. I am sending the code again here it is.
public delegate void writeOnRichBox(string str);
private void... |
Forum: C# Jun 16th, 2008 |
| Replies: 7 Views: 1,253 if I understand your problem correctly you are raising an event from your background thread and it is calling a function from your main class. and you probably are getting a runtime error. the reason... |
Forum: C# Jun 15th, 2008 |
| Replies: 5 Views: 3,532 if you do it in the same timer you will have a problem of having the image move very slowly, it is because image is blinking like every 3 seconds, but is should move like every milliseconds, so you... |
Forum: C# Jun 14th, 2008 |
| Replies: 5 Views: 3,532 I'm sure there is a lot of way to do that but what I did was to put a timer (System.Windows.Forms in the components menu) on the form. and in its tick event write the following code.
... |
Forum: C# May 30th, 2008 |
| Replies: 1 Views: 469 Hi everybody!
I think I have a very simple problem which I couldn't find a solution. code I added gives an explicit conversation error. I used casting but it doesn't work. I appreciate for your... |
Forum: C# Jun 6th, 2007 |
| Replies: 5 Views: 2,819 well I couldn't find a way to use that variable before I declare it but I work my way around with an abstract property . and I have my toString function in my base class . here is the code. thanx for... |
Forum: C# Jun 4th, 2007 |
| Replies: 5 Views: 2,819 yes, but base token is an abstract class and I will not use base token except for inheritance. so it would be logical to use child class declerations in base class. I just think that there should be... |
Forum: C# Jun 4th, 2007 |
| Replies: 5 Views: 2,819 Hi! I was writing a calculator to practice my programming skills and I really cannot solve a problem with an abstract class
//base class for all tokens
public abstract class BaseToken
... |