Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys i am getting the error in the fellowing designer.cs

when the form having inkpicture is trying to load.

can you please help me.
thanks .


C#
this.inkPicture1.BackColor = System.Drawing.SystemColors.ControlLightLight;
          this.inkPicture1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
          this.inkPicture1.Cursor = System.Windows.Forms.Cursors.WaitCursor;//the error at the line bold(Unable to load DLL 'olepro32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
      )    this.inkPicture1.Dock = System.Windows.Forms.DockStyle.Fill;
          this.inkPicture1.Location = new System.Drawing.Point(0, 0);
          this.inkPicture1.MarginX = -2147483648;
          this.inkPicture1.MarginY = -2147483648;
          this.inkPicture1.Name = "inkPicture1";
          this.inkPicture1.Size = new System.Drawing.Size(714, 514);
          this.inkPicture1.TabIndex = 0;
          this.inkPicture1.UseWaitCursor = true;
          this.inkPicture1.WaitOnLoad = true;
          this.inkPicture1.Stroke += new Microsoft.Ink.InkCollectorStrokeEventHandler(this.inkPicture1_Stroke);
Posted

Hi Rajesh,

I think,To display the wait cursor over a given control,you need to call that control's UseWaitCursor method. To make the wait cursor display for the entire application, regardless of the control or form selected, call UseWaitCursor on the Application class.
 
Share this answer
 
Comments
[no name] 1-Aug-12 3:50am    
Hi sir, Actualy its working fine having xp and vista. but when i am trying to install the application in window7 i am getting that error..
In that case, you should refer to this URL

http://pcsupport.about.com/od/findbyerrormessage/a/olepro32-dll-not-found-missing-error.htm[^]

The missing '.dll' might be an issue.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900