![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What does this error mean? "The event click is read-only and cannot be changed" One or more errors encountered while loading the designer. The errors |
#3
| |||
| |||
|
|
I have made it go away by commenting out the following code. Then I rebuild, close and reopen the solution. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Cor, There you go guessing ![]() Please read my posts carefully before responding ![]() I said I have made it go away by commenting out the following code. Then I rebuild, close and reopen the solution. How coud that work if I had changed or deleted code or deleted a class? The problem does come back, but not on the first time I run it after the steps above. It will seem to work okay on the first or second running, but then it will fail again. The same steps will temporarly recover the problem, but the problem *will* return. Anybody have any suggestions regarding why commenting the following code would temporarly remedy the problem \\ Protected Overrides Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click ---------------------- |
|
'Save to Quote table InsertIntoQuote() 'UpdateDatasourceTable(_dataSet1.tbl010Quote) 'Save to Version table insertIntoVersion() 'UpdateDatasourceTable(_dataSet1.tbl020Version) Me.Close() End Sub // Thank you, dbuchanan |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Bart, The exception is not caused because of the modifier because the base class is modified as "Protected", |
|
however I need to remove the "Handles btnOK.Click" from the derived class code. |
|
I'll try that and see if I get any errors. Thank you, dbuchanan |
#8
| |||
| |||
|
|
The exception is not caused because of the modifier because the base class is modified as "Protected", |
#9
| |||||
| |||||
|
|
Hello Bart, when I said... The exception is not caused because of the modifier because the base class is modified as "Protected", I had misunderstood you. I thought you meant the code as in "Protected Overridable Sub". |
|
Now I know you meant the modifier in the properties of the button. Yes it was "Friend". (!) |
|
And now I think I know why the error was "Click is read-only" though it certainly isn't very clear. |
|
Thanks again, |
|
dbuchanan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |