A rather unusual error, I think. I have been working with a usercontrol creating an extended text box with some additional properties
I have created a project group, added this control to the project and created a form to add this control on
I set the index to 0 to make it into an array and I add a single label also with index of 0 and a button, note that the user control has only a text box in it
At runtime the new form calls a routine that opens a table and loads enough extextboxes and labels to cover the number of fields in the table, positions them, sets the properties and populates them with data.
So now if I run the program everything seems fine, the form loads, it creates all the text boxes and labels, positions and populates them correctly
I have ran through that part several times getting everything just right and no problems there at the moment, all data is correct and no errors [am running the IDE set to break on all errors for testing purposes]
Now I added a button which I was going to write to a file from but at run time when I clicked it the IDE crashed :( So I reloaded, added a break point at the top of the sub and tried again, IDE crashed, did not hit the break point.
I reloaded the IDE commented out all the code in the sub and tried again. IDE crashed as soon as I clicked the button.
I rebooted the system, added another button to the form with no code behind it and ran the program again. Again the IDE crashed as soon as I click the button.
I tried another form which does the same basic thing but with a standard text box and without creating them dynamically it does however position, populate and make them visible dynamically. No issues with that form
The error I get when I click the button is
![Name: error.jpg
Views: 45
Size: 24.0 KB]()
If it makes a difference the usercontrol has not yet been compiled to an OCX and registered as it is still in the testing phase.
Any idea where I should look to resolve this issue?
I have created a project group, added this control to the project and created a form to add this control on
I set the index to 0 to make it into an array and I add a single label also with index of 0 and a button, note that the user control has only a text box in it
At runtime the new form calls a routine that opens a table and loads enough extextboxes and labels to cover the number of fields in the table, positions them, sets the properties and populates them with data.
So now if I run the program everything seems fine, the form loads, it creates all the text boxes and labels, positions and populates them correctly
I have ran through that part several times getting everything just right and no problems there at the moment, all data is correct and no errors [am running the IDE set to break on all errors for testing purposes]
Now I added a button which I was going to write to a file from but at run time when I clicked it the IDE crashed :( So I reloaded, added a break point at the top of the sub and tried again, IDE crashed, did not hit the break point.
I reloaded the IDE commented out all the code in the sub and tried again. IDE crashed as soon as I clicked the button.
I rebooted the system, added another button to the form with no code behind it and ran the program again. Again the IDE crashed as soon as I click the button.
I tried another form which does the same basic thing but with a standard text box and without creating them dynamically it does however position, populate and make them visible dynamically. No issues with that form
The error I get when I click the button is
If it makes a difference the usercontrol has not yet been compiled to an OCX and registered as it is still in the testing phase.
Any idea where I should look to resolve this issue?