Tag Archives: .NET Framework

What part of Windows is written in .Net/WPF/Silverlight?

user 曹一聪 on zhihu is curious how widely .Net is used within Windows components. Obviously an operating system component cannot depend on something that isn’t in the operating system, so nothing uses Silverlight in the desktop version Windows. And because XP editions … Continue reading

Rate this:

Posted in enmsdn, Microsoft | Tagged , | 1 Comment

Howto: Ignoring web browser certificate errors in a webbrowser host

The webbrowser queries host services via IServiceProvider implemented on the ActiveX host. One of the services is IHttpSecurity, which can be used to override the certificate problem dialog. Security warning: ignoring security problems can compromise your application. IHttpSecurity is derived from IWindowForBindingUI, … Continue reading

Rate this:

Posted in C#, MFC, Microsoft, Visual Studio, Webbrowser control | Tagged , , , , , | 15 Comments

When you get a System.BadImageFormatException. maybe you indeed have a bad system image.

I am getting a StackOverflowException with two functions repeating on the call stack, one is the constructor of System.BadImageFormatException, another is System.Environment.GetResourceStringLocal.  Since the call that throws the stack overflow is to a web service proxy defined in the same project as the application, … Continue reading

Rate this:

Posted in Microsoft, Visual Studio | Tagged , , | 1 Comment

Make the webbrowser control styled the same way as the hosting application

User wtx_sonery wants to know whether it is possible to style the webbrowser control with the rest of the application. The answer is yes, you can implement IDocHostUIHandler’s GetHostInfo method and return DOCHOSTUIFLAG_THEME in the host flags. IDocHostUIHandler is already … Continue reading

Rate this:

Posted in Active Template Library, enmsdn, Microsoft, Microsoft Foundation Class Library, Visual C++ | Tagged , , , , , , , , , , , , | Leave a comment

Type ‘System.Web.UI.WebControls.Parameter’ does not have a public property named ‘DbType’

In Visual C# 2005 SP1, I added an object data source to a web page that uses my business class as the select method. The method has one parameter of type Guid. The data source wizard generates code like this … Continue reading

Rate this:

Posted in Microsoft | Tagged , | Leave a comment