المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : reduce line count in an edit window



C# Programming
03-29-2009, 05:42 AM
I want to reduce the line count in an edit window from another process. I
am using a controller that connects to an external unit(providing it is turned on). The controller connects via a button that I am programatically clicking.The controller has an edit window that shows its status(failed too connect, connected, etc.), and every time the button is clicked the line count increases by one.I am using a recursive setup telling the operator to turn on the unit on each pass and then clicking the connect button.The line count goes to 16 and then gives an error ,which I believe is a page saying the edit window is full.Is there a way to decrease the line count so that the count will not change on each pass?I have ben using window apis to communicate with the edit ********Some code would be very helpful. My program is written in C#.Thanks in advance.