PC Review


Reply
Thread Tools Rate Thread

AddOleObject() fails if a key is pressed

 
 
abhimanyu
Guest
Posts: n/a
 
      17th Oct 2007
I am developing an AddIn in C# 2.0 using Visual Studio 2005 for Excel
2002.

The addin adds a number of OLE objects to the form in a loop. The
problem is that if I press any key when the loop is executing, the
AddOLEObject() method fails and throws a COM exception.
I tried disabling Events, Calculation etc but could not get a way to
disable input in the cell. Is there any way I can disable the keyboard
while the loop is being executed.
If I use Interactive = False, ESC key processing is also disabled and
I need it to interrupt the processing.

 
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
how to use addoleobject Dicaprio Microsoft Excel Discussion 1 27th Oct 2005 02:59 AM
Direct3d wont run in dxdiag test it fails saying a key pressed . =?Utf-8?B?SmltSmFja3MgYWxpYXMgSWNreSBCbG9jayBmb3Ig Windows XP Hardware 5 9th Nov 2004 10:44 PM
AddOLEObject Sean McPoland Microsoft Excel Programming 0 14th Sep 2004 12:25 PM
PowerPoint use of AddOLEObject Tom Welch Microsoft Powerpoint 5 16th Apr 2004 06:46 AM
AddOLEObject() fails =?Utf-8?B?Sm9obg==?= Microsoft Powerpoint 1 18th Dec 2003 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 AM.