winforms-interop
Getting foreground window size wrong all the time
I am writing a program on c# that implements mouse and keyboard hooks and once a specified key clicked it will go and grab foreground window and save it\'s x,y, height and width into xml file.[详细]
2023-04-08 19:49 分类:问答Show the Windows Media Player on a Windows Form (or Show the output of a process on a WinFom)
I am trying to launch Windows Media Player through Process.Start. I am able to start the wmplayer.exe and with filename as argument its playing the file. But it is playing in Media Player Window. I ne[详细]
2023-04-07 12:16 分类:问答How Can I Check if a Window is an MDI Window?
I imagine there\'s some user32.dll call that I can use to verify if a window is an MDI window, like using DefMDIChildProc and seeing if it fails, but I wonder if there\'s any limitations to this, or i[详细]
2023-03-29 01:53 分类:问答Assembly generation failed -- Referenced assembly 'Interop.Office' does not have a strong name
I have a WPF 4 projectto interact with word documents made in VS2010 and a win form User Control project to host word application into it. And other com dlls. All com dlls are referred into my main wp[详细]
2023-03-23 01:19 分类:问答Why is Interop.WMPLib unable to load assembly in Release mode, but works in Debug mode?
I have added the Windows Media Player com control into my toolbox and then used the control successfully on a Form in Debug mode.[详细]
2023-03-10 06:39 分类:问答WPF repaint issue
I am having an issue with repaint of my WPF control. The WPF control is added as an ElementHost.Child for a Windows form.[详细]
2023-03-05 06:28 分类:问答Replacing text in Microsoft Word 97 with C#
I am writing a program that, in part, replaces text in a word document. Currently, I am referencing the Microsoft.Office.Interop.Word assembly, however, I am receiving an error when running the progra[详细]
2023-02-27 10:45 分类:问答RichTextBox (winform) Save paragraph formatting (PARAFORMAT2)
I\'m working with a RichTextBox control, and it\'s going great, except for the line spacing. I\'m using an interop call via SendMessage with PARAFORMAT2 to set the line spacing for a paragraph.[详细]
2023-02-16 16:12 分类:问答How do you implement drag and drop from a small WPF Element host in a Winforms application?
In our app we host a small WPF Listbox inside of an Element host, we implement drag and drop using the PreviewMouseDown event...[详细]
2023-02-16 16:00 分类:问答How to write to word document (in a particular format ) From C# windows forms application
I am developing a C# windows application , which captures the user\'s inputs(in the form of numerous textboxes, radio buttons and drop downs).[详细]
2023-02-15 05:13 分类:问答