P
PPCdude
Hi,
I don't want to make this too long, but here's what I am doing. I have
taken most of my constructors out of the initializecomponent to
optimize loading speed. This has worked well for years. Then the
other day, I temporarily moved a constructor back to
initializecomponent in order to change a picturebox picture. It all
seemed to work just fine till I ran the program and suddenly I get
every time I click a button.
An unhandled exception of type 'System.NullReferenceException' occurred
in System.Windows.Forms.dll
I thought at first I wrecked the resx file, but replacing it with a
backup does nothing. I still crash.
I am pulling my hair out because if I set a breakpoint on a button it
doesn't find anything.
thanks.
I don't want to make this too long, but here's what I am doing. I have
taken most of my constructors out of the initializecomponent to
optimize loading speed. This has worked well for years. Then the
other day, I temporarily moved a constructor back to
initializecomponent in order to change a picturebox picture. It all
seemed to work just fine till I ran the program and suddenly I get
every time I click a button.
An unhandled exception of type 'System.NullReferenceException' occurred
in System.Windows.Forms.dll
I thought at first I wrecked the resx file, but replacing it with a
backup does nothing. I still crash.
I am pulling my hair out because if I set a breakpoint on a button it
doesn't find anything.
thanks.