GDI + Errors

  • Thread starter Thread starter ML
  • Start date Start date
M

ML

I am trying to test a vb.net app in VirtualPC on a Win98 install. The app
runs but I get "Generic GDI+" errors on any form with a groupbox.
Does anyone know what this issue is or how to fix it? Does Win98 not fully
support VB.NET??
 
Hi ML,

Thanks for your posting. As for the problem you mentioned, you've done some
seaerch on the group's former threads and some former issues. It seems that
the problem is likely due to the hardware(Craphic driver). Some one avoid
it by turn off the "graphics acceleration" and some occurs on a dell
machine. Also, what's the framework version you're running on the win98 box
and have you tried installing any updates related to the directx or .net
framework. In addition, I suggest you also try testing on another win98
box to see whether it'll have the same behavior. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
This is using the latest update to the framework. The app is built in
VS2003.
The problem only happens with the groupbox and only if it has a text title
set. If the groupbox has no text, just the frame it works fine.

This is running on a VirtualPC session of Win98. The application runs fine
on another Win98 PC. My concern however is this issue showing up on a
client's PC. Since it seems very sporadic I would hate to have it not show
up until a client tries to use it. I would rather try and fix or remove the
issue before shipping a product that has a know issue.

All other controls work fine, including charting controls that are graphics
heavy. I also tried replacing the stock groupbox with a groupbox from Janus
and that worked fine as well. I guess the only real solution is to replace
the groupbox or at least remove the text title of the groupbox, otherwise it
may be an issue on some PCs.

Seems as if this could be a bug in either GDI+ or the groupbox. Does anyone
know what is special about how the groupbox is rendered over other controls?
 
Hi ML,

Thanks for your detailed response and further description on your concern.
Based on my checking, there seems haven't any existing known issue of the
winform groupbox or at least against the win98 system. Also, from the view
of the GroupBox's managed source code, we also can't find any thing
particular. Anyway, regarding on this problem, I'll consult some further
experts on this to see whether this is really a expected behavior. And I'd
like to confirm some enviroment info first:

VIRUTAL PC , WIN98 , .NET 1.1 and winform app with GroupBox on it. The
"Generic GDI+" errors only occur when you set "Title text" on it. Also, the
problem will go away when turn off the Graphic Driver's accelerate. The
problem dosn't occur on other win98 system(with the same enviorment?)

If there is anything unclear or any further things I missed, please feel
free to let me know. And I'll update you as soon as there're any new infos.
Thanks for your understanding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
I managed to "fix" the issue. I set the groupbox's flatstyle to "system"
instead of "standard" and now it no longer generates a GDI+ error.
 
Hi ML,

Thanks for your followup. I've also got the info after some further
consultant. But seems you've found the answer quicker :). Anyway, glad that
the problem is figured out. Thanks again for posting here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top