Questions tagged [windowsformsintegration]

42 questions
48
votes
2 answers

Using FolderBrowserDialog in WPF application

I have a WPF application that I need to have users access directories in. I have searched to the end of the world on how to integrate windows forms into WPF and have found all kinds of information on how to integrate form controls into my xaml,…
david
  • 726
  • 1
  • 5
  • 10
29
votes
1 answer

Public class modifier for WPF control

I'm creating Windows application and Class library. Class library contains WPF control named "InsertForm.xaml" InsertForm contains TextBox named eUserName. I'm using the following code to show InsertForm. That's successful. But I can't access…
ebattulga
  • 10,774
  • 20
  • 78
  • 116
16
votes
1 answer

How to implement Ads in Desktop Application built with WPF or Windows Forms?

I would like to implement like as it comes in Utorrent/Skype. I looked forward to lot of options. Here is the list: Google Adsense Microsoft Pub Center Desktopad -- Communicated with them and got the answer that it is only for Windows Store…
Nikki Punjabi
  • 383
  • 2
  • 16
11
votes
4 answers

Integrate a C# console application with a GUI

I've been developing using C# from scratch for less than 3 months and what I got at present is a console application made with Visual Studio 2015. This application consumes a web service, the XML is deserialized, formatted and saved in an Access…
4
votes
2 answers

Hide control when another control overlaps it

I am having pretty big problem with windows forms controls hosted in WPF. When, for example, user scrolls the window, the hosted control goes on top of the window, although it should be hidden. I know this is known problem, and default behavior of…
Vale
  • 3,258
  • 2
  • 27
  • 43
2
votes
1 answer

Google Map info window display previous geo result instead of current result

can someone help me out with this pretty please? i dont know what went wrong with my codes, i want to display the location address in the info window but everytime it displays the previous result instead of the current one. for example when i first…
rey
  • 21
  • 2
2
votes
1 answer

NumLock isKeyLocked not working

I'm using the following code to check is NumLock, CapsLock or Insert are pressed, and if their status is ON update a label's text accordingly. But for some reason I can't get NumLock to work properly. It updates the label's text with "Num" if…
EAmaral
  • 23
  • 3
2
votes
0 answers

System.ObjectDisposedException after changing from WPF project to WinForms context

The application was started from an empty C# project, output type set to "Windows App": using System.Windows.Forms; static class Program { static System.Windows.Forms.NotifyIcon notifyIcon; static System.Drawing.Icon LockedIcon =…
Joe
  • 2,496
  • 1
  • 22
  • 30
1
vote
1 answer

Getting cookies from WebBrowser in F#/C#

My goal is to retreive the cookies from a webBrowser Control. I tried to do this with a reference, but Event.map doesn't allow me to return the value: let getCookie(url:string) = let form = new Form(Text="Internet Navigator") …
jlezard
  • 1,417
  • 2
  • 15
  • 32
1
vote
1 answer

Resource URI in WPF UserControl, which is hosted in Windows Forms application

I have a WPF UserControl, which is using some PNG bitmap resources as part of it's UI. Currently, those files are referenced with Build Action: Content and a Copy to Output Directory: Do not copy. Elements on this UserControl are using following URI…
masiton
  • 147
  • 2
  • 10
1
vote
1 answer

Can I add an ElementHost to a regular WinForm StatusStrip?

I just started learning WPF, and I've been trying to add this WPF control to a regular WinForm. I know I can use Forms.Integration.ElementHost to host WPF controls in a WinForm. But as StatusStrip takes Items and not Controls it's marking the…
1
vote
1 answer

entity model removed by mistake how to reconfigure

my friend remove entity model from my working project of c# visual studio , in most of forms i am using core ADO.net but for datagridviews i was using entityframework now its not working i tried to reconfigure it but its not working showing…
1
vote
1 answer

Multithreaded Library using Worker Thread cannot communicate with UI Thread

I'm using a 3rd party Library to communicate data from a 3rd party input device to a Windows Form. What I am looking to do is gather input data from the device, process it and given certain conditions report back to the Windows UI thread what is…
1
vote
1 answer

Call PrintDialog.ShowDialog() in a WPF UserControl which is hosted in WinForms Application

I have a WPF UserControl which use the System.Windows.Controls.PrintDialog: XAML:
rhe1980
  • 1,557
  • 1
  • 15
  • 36
1
vote
2 answers

DataGridView draw bug in WPF

I am using WindowsFormsIntegration in a WPF project to add a DataGridView and I am having some problems with it simply being drawn in the window (it takes a while). I am aware of the solution with the doublebuffered datagridview but how can you use…
Partial
  • 9,529
  • 12
  • 42
  • 57
1
2 3