G
Guest
Hi there,
Ok, this is weird. For some reason, when I open up a windows form to edit,
there is a piece of my code being run. Here's the story:
I have a base main form that contains code that opens the COM port (as well
as doing other things). I derive my "real" main form from the base as there
will be multiple versions of my app. The problem I am running into is, if I
open the main form for editing (design view and not code view), I get a
message box pop up indicating that access is denied to the COM port. This
message box is the one contained in the base form that gets displayed during
run time if there is a problem opening the COM port.
As far as I know, nothing is being run. To be sure that was the code being
executed, I changed the text of the messagebox, saved the files, closed the
files and opened the main form again. Sure enough, up pops the newly modified
message box. I didn't compile or anything. One thing that sets off a little
red flag in the back of my mind is that there is a 3rd party control on the
derived main form that pops up a message concerning a demo license. I don't
know if that has anything to do with it.
Can anyone shed light on this? It has me stumped.
Thank you,
Carlo.
Ok, this is weird. For some reason, when I open up a windows form to edit,
there is a piece of my code being run. Here's the story:
I have a base main form that contains code that opens the COM port (as well
as doing other things). I derive my "real" main form from the base as there
will be multiple versions of my app. The problem I am running into is, if I
open the main form for editing (design view and not code view), I get a
message box pop up indicating that access is denied to the COM port. This
message box is the one contained in the base form that gets displayed during
run time if there is a problem opening the COM port.
As far as I know, nothing is being run. To be sure that was the code being
executed, I changed the text of the messagebox, saved the files, closed the
files and opened the main form again. Sure enough, up pops the newly modified
message box. I didn't compile or anything. One thing that sets off a little
red flag in the back of my mind is that there is a 3rd party control on the
derived main form that pops up a message concerning a demo license. I don't
know if that has anything to do with it.
Can anyone shed light on this? It has me stumped.
Thank you,
Carlo.