Click here to Skip to main content
15,885,065 members
Home / Discussions / C#
   

C#

 
AnswerRe: what is the equivalent to this c++ code in C#? Pin
iscript21-Jul-09 15:56
iscript21-Jul-09 15:56 
QuestionIs it possible to disable parts of a pictureBox? Pin
NewJavaBean20-Jul-09 11:23
NewJavaBean20-Jul-09 11:23 
AnswerRe: Is it possible to disable parts of a pictureBox? Pin
Christian Graus20-Jul-09 14:30
protectorChristian Graus20-Jul-09 14:30 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean20-Jul-09 15:30
NewJavaBean20-Jul-09 15:30 
AnswerRe: Is it possible to disable parts of a pictureBox? Pin
PIEBALDconsult20-Jul-09 17:18
mvePIEBALDconsult20-Jul-09 17:18 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean21-Jul-09 2:16
NewJavaBean21-Jul-09 2:16 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean21-Jul-09 6:03
NewJavaBean21-Jul-09 6:03 
QuestionIntermitant Error in Outlook 2007 Plugin using VSTO 3.0 Pin
Wendelldh20-Jul-09 9:33
Wendelldh20-Jul-09 9:33 
Hi,
I have created an Outlook 2007 plugin using VSTO and I am getting an error that I hope someone out there has seen and could help me fix.
The plugin (add-on) is a command bar that simply waits for a (email appointment, or task) property to change (MS CRM stuff - gets changed by Microsofts CRM Integration) and then shows a Windows form asking for a Category. Everything works great unless I follow a very specific set of steps.

What I mean by that is I can get the form to popup a hundred times for Emails, Tasks, and Appointments and never have a problem. Then if I do an appointment a certain way, it blows up and then it will do it for everything until I restart Outlook.

This is the error message I get...

Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Runtime.InteropServices.UCOMIConnectionPointContainer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B196B284-BAB4-101A-B69C-00AA00341D07}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

I can find almost no information about UCOMIConnectionPointContainer other then it looks like it is depricated in the .NET Framework 3.5. The odd thing is where this error is occurring, I am not actually trying to cast to a UCOMIConnectionPointerContainer object, I am trying to cast to an Outlook.Appointment object.

Here is the piece of code that causes the error....

if (m_Item is Outlook.AppointmentItem)
{                    
     m_ItemType = OutlookItemType.AppointmentItem;
     ((Outlook.AppointmentItem)m_Item).CustomPropertyChange += new Microsoft.Office.Interop.Outlook.ItemEvents_10_CustomPropertyChangeEventHandler(Item_PropertyChange);
     ((Outlook.AppointmentItem)m_Item).Write += new Microsoft.Office.Interop.Outlook.ItemEvents_10_WriteEventHandler(OutlookItem_Write);
}
else if .......


This goes on to check for a Mail Item and a Task Item. Those never fail initially. It is always an Appointment item and once it fails, then I get the error for almost everything.

I hope somebody has seen this an can offer some advice.

Thanks in advance,
Wendell
QuestionProblem with populating data from one grid into other Pin
rocky81120-Jul-09 7:51
rocky81120-Jul-09 7:51 
QuestionRepeating Images Pin
eddieangel20-Jul-09 6:57
eddieangel20-Jul-09 6:57 
AnswerRe: Repeating Images Pin
Luc Pattyn20-Jul-09 8:29
sitebuilderLuc Pattyn20-Jul-09 8:29 
QuestionAdd text to listbox with different color Pin
tamir90120-Jul-09 6:40
tamir90120-Jul-09 6:40 
AnswerRe: Add text to listbox with different color Pin
musefan20-Jul-09 6:49
musefan20-Jul-09 6:49 
GeneralRe: Add text to listbox with different color Pin
tamir90120-Jul-09 6:53
tamir90120-Jul-09 6:53 
AnswerRe: Add text to listbox with different color Pin
Luc Pattyn20-Jul-09 6:55
sitebuilderLuc Pattyn20-Jul-09 6:55 
AnswerRe: Add text to listbox with different color Pin
PIEBALDconsult20-Jul-09 7:01
mvePIEBALDconsult20-Jul-09 7:01 
GeneralRe: Add text to listbox with different color Pin
tamir90120-Jul-09 7:23
tamir90120-Jul-09 7:23 
GeneralRe: Add text to listbox with different color Pin
Luc Pattyn20-Jul-09 7:47
sitebuilderLuc Pattyn20-Jul-09 7:47 
GeneralRe: Add text to listbox with different color Pin
tamir90120-Jul-09 8:03
tamir90120-Jul-09 8:03 
GeneralRe: Add text to listbox with different color Pin
Luc Pattyn20-Jul-09 8:10
sitebuilderLuc Pattyn20-Jul-09 8:10 
GeneralRe: Add text to listbox with different color Pin
tamir90120-Jul-09 18:32
tamir90120-Jul-09 18:32 
GeneralRe: Add text to listbox with different color Pin
Luc Pattyn21-Jul-09 1:30
sitebuilderLuc Pattyn21-Jul-09 1:30 
Questionhard disk serail number Pin
mokhtar2820-Jul-09 6:21
mokhtar2820-Jul-09 6:21 
AnswerRe: hard disk serail number Pin
Eddy Vluggen20-Jul-09 6:28
professionalEddy Vluggen20-Jul-09 6:28 
GeneralRe: hard disk serail number Pin
Luc Pattyn20-Jul-09 6:57
sitebuilderLuc Pattyn20-Jul-09 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.