Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

Windows Forms :: A generic error occurred in GDI+.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sullu - 30 Mar 2006 16:04 GMT
Hi,

I am getting the following error message when i am trying to maximize the
windows form which is displaying data in a datagird ....
Your help is appreciated in advance...

************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred
in GDI+.
  at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
  at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
  at System.Windows.Forms.DataGridTextBoxColumn.PaintText(Graphics g,
Rectangle textBounds, String text, Brush backBrush, Brush foreBrush, Boolean
alignToRight)
  at System.Windows.Forms.DataGridTextBoxColumn.Paint(Graphics g, Rectangle
bounds, CurrencyManager source, Int32 rowNum, Brush backBrush, Brush
foreBrush, Boolean alignToRight)
  at
System.Windows.Forms.DataGridRelationshipRow.PaintCellContents(Graphics g,
Rectangle cellBounds, DataGridColumnStyle column, Brush backBr, Brush
foreBrush, Boolean alignToRight)
  at System.Windows.Forms.DataGridRow.PaintData(Graphics g, Rectangle
bounds, Int32 firstVisibleColumn, Int32 columnCount, Boolean alignToRight)
  at System.Windows.Forms.DataGridRelationshipRow.Paint(Graphics g,
Rectangle bounds, Rectangle trueRowBounds, Int32 firstVisibleColumn, Int32
numVisibleColumns, Boolean alignToRight)
  at System.Windows.Forms.DataGrid.PaintRows(Graphics g, Rectangle&
boundingRect)
  at System.Windows.Forms.DataGrid.PaintGrid(Graphics g, Rectangle
gridBounds)
  at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
  at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
  at System.Windows.Forms.Control.WmPaint(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Signature

Many Thanks,
Sulaiman Abubacker

Kevin Westhead - 30 Mar 2006 19:30 GMT
It's difficult to say really. The generic error is usually the result of a
GDI+ function returning a status code of 1 (see
http://msdn.microsoft.com/library/?url=/library/en-us/gdicpp/GDIPlus/GDIPlusrefe
rence/enumerations/status.asp?frame=true
).

Are you doing any custom drawing? What happens if you manually resize the
form to be almost fullscreen?

Signature

Kevin Westhead

> I am getting the following error message when i am trying to maximize the
> windows form which is displaying data in a datagird ....
[quoted text clipped - 36 lines]
>   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.