Generic GDI+ Error Win98

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??
 
K

Ken Tucker [MVP]

Hi,

Not all functions in the dot net framework work on windows 98.
If you look up the function in the msdn documentation you will see the
suported platorms check and see if win 98 is listed.

Ken
 
H

Herfried K. Wagner [MVP]

ML said:
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 this even occur with a "blank" project with only one form and a dummy
groupbox?
Does Win98 not fully support VB.NET??

Yes, it supports "VB.NET", but it does not fully support the .NET Framework.
There are certain classes that are not supported on Windows 98/Me.
Nevertheless, the groupbox should work.
 
M

ML

Only seems to happen with groupbox. All other controls are fine. If I turn
off hardware acceleration for the video card in the Virtual PC OS settings
it is fine.
 
M

ML

Do you have a link to the supported features? I had thought it was fully
supported on 98, not partially. This may be a an issue if our assumptions
were wrong.
 
H

Herfried K. Wagner [MVP]

ML said:
Do you have a link to the supported features? I had thought it was fully
supported on 98, not partially. This may be a an issue if our assumptions
were wrong.

You will have to check the documentation for the methods you are calling.
For each method/property/... it's documented on which platforms the
method/property/... is supported.
 
M

ML

Yes thanks I found the list. It seems to be more lower level and some web
based calls. All the UI elements and general features seem to be fine.
This GDI+ issue I don't think is related to an unsupported feature. A
groupbox is a pretty basic UI element.
 
P

Peter Huang

Hi,

Can you reproduce the problem on a physical win98 machine?
I wonder if the VPC cause the problem, because the problem will disappear
after you shutdown the hardware acceleration.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

ML

It seems fine on one other "real" Win98 box. What seems odd is that the
only control that causes the issue is the groupbox. Also if the groupbox
has no text title, just the frame it works fine as well. Any form with a
groupbox with a title fails. Oddly enough I tried using the Janus groupbox
and it works fine. Seems as if it is only an issue with the MS groupbox.
This is with VS2003 using the latest .NET framework.

My concern is that this could show up on a client PC under the right
conditions since it happens in the VirtualPC. I also read a few other posts
of similar issues on real 98 machines but no clear answer as to why.
 
P

Peter Huang

Hi

Thank you for you input.
I think the mainly difference between a real machine with a VPC which may
cause the issue is that the VPC is a software machine while not a physical
machine, most of whose "hardware" is simulated by the software.
So it is hard to say which one cause the problem. If you have specified
problem with running .net application on win98, can you post here detail,
so we can troubleshoot it.

If you do care what caused the problem, which may need low level debugging.
I think you may try to contact MSPSS for further support service.
You may reach MSPSS via the link below.
http://support.microsoft.com

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

ML

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.
 
P

Peter Huang

Hi

I am glad that you have "fix" the issue, if you still have other concern,
please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top