Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
hi
I'm having problems using visual studio 2010 with windows 8. in a certain part of my code I use the message.box (); however an error occurs:
  Generic GDI + error
 
anyone been through this?
 
thank you
Posted 30-Jan-13 6:38am
Comments
Dave Kreskowiak at 30-Jan-13 12:46pm
   
Without more detail, it's impossible to answer your question. What does the code look like? What's the app type? Modern app? WPF? Windows Forms? HTML5? Java? ...?
arthur.rafa10 at 30-Jan-13 12:58pm
   
Sorry Dave. I am working with windows form (desktop) with the C # language with OpenCV. and when I display a message using MessageBox.show () an error occurs: GDI + generic error. I use Windows 8 and the visual studio 2010. this helps?
Sergey Alexandrovich Kryukov at 30-Jan-13 13:03pm
   
No. The only thing which could help is the code sample. You need to create one, complete but short; and it should clearly reproduce the problem. —SA
Sergey Alexandrovich Kryukov at 30-Jan-13 13:02pm
   
Not enough information. Please use "Improve question". —SA
arthur.rafa10 at 30-Jan-13 13:09pm
   
sergey the error occurs in a simple command line to display a message on the screen, using the C # language with visual studio 2010 on windows 8.   line of code is: MessageBox.Show ("System Training Held Successfully!", "Training", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); and the error message is:        Generic GDI + error. does not show anything ...
OriginalGriff at 30-Jan-13 14:04pm
   
I just pasted your line into a button click handler and press the button - the message box showed up fine, with no error. So, taking my lead from your "simple command line" I tried it in a Console app. After adding the System.Windows.Forms assembly, and the appropriate using statement, it worked fine again. So it must be something else in your code, and the symptom is only showing up when you display the message box. Without more detail of your code, there really isn't anything we can do to help you!
Sergey Alexandrovich Kryukov at 30-Jan-13 17:06pm
   
Command line?! Where is a command line here? —SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 319
1 OriginalGriff 280
2 Sergey Alexandrovich Kryukov 250
3 Peter Leow 171
4 Abhinav S 168
0 Sergey Alexandrovich Kryukov 8,944
1 OriginalGriff 5,280
2 Peter Leow 3,985
3 Maciej Los 3,535
4 Abhinav S 3,218


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid