S
stephenbugdenlondon
Hi,
When running the following code:
'************************************************
Dim ColorDB As New ColorDialog()
ColorDB.ShowDialog(Me)
'************************************************
I sometimes (roughly half of the time) get the following
error:
************************************************
An unhandled exception occurred of
type 'system.NullReferenceException' occurred in
system.drawing.dll
Additional information: Object reference not set to an
instance of an object.
************************************************
Some of the time the color dialog is displayed, but then
the error occurs when a color is selected.
Other times it works fine. The statement is withing a try
catch statement.
I have 1.0.3705 of the .net framework and I've installed
service pack 2 and version 7.0.9466 of the development
environment.
Any suggestions greatly appreciated.
Steve.
When running the following code:
'************************************************
Dim ColorDB As New ColorDialog()
ColorDB.ShowDialog(Me)
'************************************************
I sometimes (roughly half of the time) get the following
error:
************************************************
An unhandled exception occurred of
type 'system.NullReferenceException' occurred in
system.drawing.dll
Additional information: Object reference not set to an
instance of an object.
************************************************
Some of the time the color dialog is displayed, but then
the error occurs when a color is selected.
Other times it works fine. The statement is withing a try
catch statement.
I have 1.0.3705 of the .net framework and I've installed
service pack 2 and version 7.0.9466 of the development
environment.
Any suggestions greatly appreciated.
Steve.