PC Review


Reply
Thread Tools Rate Thread

Drawing error ,Help!Help!Help!

 
 
=?Utf-8?B?emVuZ291?=
Guest
Posts: n/a
 
      6th Feb 2004
My application have many picturebox objects,when run it ,sometimes i will

have a strange error,how to work out ,help me please!(in windows98,the error

cause frequently than in windowsxp

System.InvalidOperationExceptionSystem.InvalidOperationException: The object

is currently in use elsewhere
at System.Drawing.Image.get_Width(
at System.Drawing.Image.get_Size(
at System.Windows.Forms.PictureBox.GetPreferredSize(
at System.Windows.Forms.PictureBox.SetBoundsCore(Int32 x, Int32 y, Int32

width, Int32 height, BoundsSpecified specified
at System.Windows.Forms.LayoutManager.AnchorControl(Control ctl, Rectangle

parentDisplayRectangle
at System.Windows.Forms.LayoutManager.LayoutAnchoredControls(Control

container, LayoutEventArgs levent
at System.Windows.Forms.LayoutManager.OnLayout(Control container,

LayoutEventArgs levent
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent
at System.Windows.Forms.Control.PerformLayout(Control affectedControl,

String affectedProperty
at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width,

Int32 height, BoundsSpecified specified
at System.Windows.Forms.Control.set_Location(Point value
at BanZiPao.BanZiPao_Client.MDPlayTurnHandle(String Message

the code is
pb_CardEast0.Image=il_Card1.Images[54]
pb_CardEast1.Image=il_Card1.Images[54]
pb_CardEast2.Image=il_Card1.Images[54]
pb_CardEast3.Image=il_Card1.Images[54]
pb_CardEast4.Image=il_Card1.Images[54]
pb_CardEast5.Image=il_Card1.Images[54]
pb_CardEast6.Image=il_Card1.Images[54]
pb_CardEast7.Image=il_Card1.Images[54]
pb_CardEast8.Image=il_Card1.Images[54]
pb_CardEast9.Image=il_Card1.Images[54]
pb_CardEast10.Image=il_Card1.Images[54]
pb_CardEast11.Image=il_Card1.Images[54]
pb_CardEast12.Image=il_Card1.Images[54]

In fact,when the error cause,the code has excuted some line,but not

completely excute,it's very strange
my email:(E-Mail Removed)
thanks!!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing Custom Shape Using PowerPoint Drawing Tool Mosfiqur Rahman Microsoft Powerpoint 0 6th Jul 2008 01:06 PM
exporting drawing created in PowerPoint in Word as a drawing amit Microsoft Powerpoint 4 16th Mar 2008 04:19 AM
Drawing tool bar and drawing canvas tools are dimmed with new pag. =?Utf-8?B?Sm9obk1j?= Microsoft Frontpage 3 19th Jan 2005 04:11 PM
Drawing tool bar and drawing canvas tools are dimmed with new pag. =?Utf-8?B?am1jY2FkYW1z?= Microsoft Frontpage 2 19th Jan 2005 02:19 PM
compiler error: vbc : Command line error BC2001 : file 'system.drawing.dll,' could not be found Pablo Villa Microsoft Dot NET Framework 2 6th Aug 2003 02:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:14 PM.