[Resolved]Designer Generated Code problem
Hi All,
I stuck with a problem which is very weird and can't find a solution for it.
I use a form and there are 100s of buttons and several text boxes, tab controls, list boxes etc etc. When I try to change any property to any of those controls, sometimes it happens that it make a complete black out from the designer generated code. Suppose, I edit a comboBox to be named as 'orderType' and its text property to "Order Type" and run the code. Then at first it gives a run time error that the object(the comboBox) is not declared, I stop debugging and found at Designer Generated Code Part there is no declaration for that combo box. If I undo my work, it works again and the declaration at designer generated code part comes back. So my problem is, I'm unable to change anything on my form. More specifically, any change I made (even the size of a button makes that comboBox not working).
Several weeks ago, I had the same problem with a label. Someone suggested to delete the obj\debug- folder and run the code again. It worked at that time, but now its not.
Please suggest something on this. I passed one whole day just to change the name and text property of that comboBox, but failed.
Thank you in advance.
Shomoodro
Hi All,
I stuck with a problem which is very weird and can't find a solution for it.
I use a form and there are 100s of buttons and several text boxes, tab controls, list boxes etc etc. When I try to change any property to any of those controls, sometimes it happens that it make a complete black out from the designer generated code. Suppose, I edit a comboBox to be named as 'orderType' and its text property to "Order Type" and run the code. Then at first it gives a run time error that the object(the comboBox) is not declared, I stop debugging and found at Designer Generated Code Part there is no declaration for that combo box. If I undo my work, it works again and the declaration at designer generated code part comes back. So my problem is, I'm unable to change anything on my form. More specifically, any change I made (even the size of a button makes that comboBox not working).
Several weeks ago, I had the same problem with a label. Someone suggested to delete the obj\debug- folder and run the code again. It worked at that time, but now its not.
Please suggest something on this. I passed one whole day just to change the name and text property of that comboBox, but failed.
Thank you in advance.
Shomoodro
Last edited: