Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Pin
Dalek Dave25-Sep-11 21:46
professionalDalek Dave25-Sep-11 21:46 
GeneralRe: c# Pin
Pravin Patil, Mumbai25-Sep-11 22:21
Pravin Patil, Mumbai25-Sep-11 22:21 
GeneralRe: c# Pin
Dalek Dave25-Sep-11 23:39
professionalDalek Dave25-Sep-11 23:39 
AnswerRe: c# Pin
Abhinav S26-Sep-11 1:12
Abhinav S26-Sep-11 1:12 
SuggestionRe: c# Pin
Pravin Patil, Mumbai26-Sep-11 1:32
Pravin Patil, Mumbai26-Sep-11 1:32 
AnswerRe: c# Pin
OriginalGriff26-Sep-11 8:17
mveOriginalGriff26-Sep-11 8:17 
AnswerRe: c# Pin
ScottM126-Sep-11 20:40
ScottM126-Sep-11 20:40 
Questiondock a windows form into ppt application window Pin
shama_12325-Sep-11 21:08
shama_12325-Sep-11 21:08 
hai ,
I have to dock a windows form into ppt application window. I try to do this
by using this code

PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;
          MyForm.Parent =(System.Windows.Forms.Control) presentation .Parent;


then the following error message shown

"Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.Control'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface."

is there is any way to solve this problem?

Thanks.
AnswerRe: dock a windows form into ppt application window Pin
BobJanova26-Sep-11 0:45
BobJanova26-Sep-11 0:45 
AnswerRe: dock a windows form into ppt application window Pin
Dave Kreskowiak26-Sep-11 3:47
mveDave Kreskowiak26-Sep-11 3:47 
QuestionRefrence VSTO Project Pin
Hamid Noahdi25-Sep-11 19:55
Hamid Noahdi25-Sep-11 19:55 
AnswerRe: Refrence VSTO Project Pin
Dalek Dave25-Sep-11 21:46
professionalDalek Dave25-Sep-11 21:46 
QuestionMaking custom (High performance) GUI elements. Pin
biojae25-Sep-11 17:32
biojae25-Sep-11 17:32 
AnswerRe: Making custom (High performance) GUI elements. Pin
BobJanova26-Sep-11 0:52
BobJanova26-Sep-11 0:52 
GeneralRe: Making custom (High performance) GUI elements. Pin
biojae26-Sep-11 19:33
biojae26-Sep-11 19:33 
QuestionSample C# project Pin
Software200725-Sep-11 12:26
Software200725-Sep-11 12:26 
AnswerRe: Sample C# project Pin
walterhevedeich25-Sep-11 14:13
professionalwalterhevedeich25-Sep-11 14:13 
AnswerRe: Sample C# project Pin
PIEBALDconsult25-Sep-11 14:22
mvePIEBALDconsult25-Sep-11 14:22 
AnswerRe: Sample C# project Pin
Mycroft Holmes25-Sep-11 16:15
professionalMycroft Holmes25-Sep-11 16:15 
AnswerRe: Sample C# project Pin
Abhinav S25-Sep-11 18:33
Abhinav S25-Sep-11 18:33 
AnswerRe: Sample C# project Pin
Richard MacCutchan25-Sep-11 23:12
mveRichard MacCutchan25-Sep-11 23:12 
AnswerRe: Sample C# project Pin
BobJanova26-Sep-11 0:56
BobJanova26-Sep-11 0:56 
AnswerRe: Sample C# project Pin
uspatel26-Sep-11 1:52
professionaluspatel26-Sep-11 1:52 
GeneralRe: Sample C# project Pin
Software200726-Sep-11 17:41
Software200726-Sep-11 17:41 
QuestionMonitor a txt log file for keyword Pin
Tom Remmert25-Sep-11 9:20
Tom Remmert25-Sep-11 9:20 

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.