InvalidCastException using a 2nd AppDomain
Hi all,we are loading an instance of a class from a 3rd party assembly in a 2nd AppDomain. It contains a control which we host on a Form. Certain events are sent back into our assemblies for...
View ArticleUsing PCL as project, not as assembly reference
Hi everybody,I recently converted a project into PCL (Portable Class Library) but I have a problem :When I add a reference to this project, sometimes it tells me that it will be treated as an assembly...
View ArticleHow To Override The DigitShapes Setting In C# .NET 4.0? (Use Native Digits...
I have a C# form application that needs to override the DigitShapes (Use Native Digits) setting. What I need to achieve is to always display digits using their original shapes. So I need to always...
View Articleinput type file one click upload
Hi,I have a web page and I have a input type="file" component for uploading files on it. Now, I have to click on browse button and after choosing file I have to click on button for uploading. But I...
View ArticlePortable Class Libraries and AppDomains
I have some types which are used from .Net 4.5 and WinRT code, so I moved these to a portable class library.In the WinRT world, everything works fine. But in the .Net4.5 world, these types needs to be...
View ArticleWebClient WebException "Too many automatic redirections were attempted"
Hi,I use WebClient class from my C# Application for download the webpage data .There isQueue<string> Urls in the application. It inside a loop.Please see my code below public string...
View ArticleMemoryCache with Attribute
I need to cache the results of method calls by time. I saw this MemoryCache class, but how can I create an Attribute like Asp.net MVC Cache?To do that, I think I need to intercept the calling method,...
View ArticleReceipt Paper Roll Size
Hi, I am developing a cashier POS. I would like to know how many characters to be printed on the receipt paper roll? is it standard?www.volow.com
View ArticleSetting Global dateTime format for an application
Hi ,I have created an application where i have a requirement to convert string date to datetime. For this I have used Convert.DateTime,DateTime.ParseExact,DateTime.TryParse etc.It works fine with some...
View ArticleHandle exceptions Class level or Class Library level without writing Try,...
I am working with ASP.NET MVC 4, .Net 4.5, Windows Azure. I handled all exceptions with out writing try catch blocks in Frontier(Web Application) usingOnException() controller base class method. I am...
View ArticleWindows Forms entering Not Responding state
One of the Windows Forms I have been developing has that if any of the focus is taken away from it, it goes into a Not Responding state. For example, if it is minimized or if a different window is...
View ArticleUse tlb type library developed in c# DotNet in delphi5 application
I imported the tlb type library (developed in C# DotNet) from Delphi5, but the component only have the class BUT without any method. Plz help.RS
View ArticleCan't send Email to Hotmail on windows 8.1 OS
My application uses C# code to send EmailsOn win 8.1 it failed to send to Hotmail address using Hotmail SMTP server (smtp.live.com)same code works with other providers(such as Gmail)same code runs on...
View ArticleWebBrowser Control repaint causes hidden cursor to flash momentarily - CE6 /...
We have a Windows CE6 application which uses the WebBrowser Control from the Compact Framework. Since this is sometimes a touchscreen and sometimes a mouse driven application, we sometimes have the...
View ArticleC# ActiveX and VisualStudio integration
We have to replace a C++ ActiveX with one developed using C#.The created C# activeX is working fine within Internet Explorer.We can import it as ActiveX within a C++ project but there is no way to...
View ArticleCompare different files c#
Hai to all, I have a query, wanted to compare two or more files with same content, it may be a doc or an image ,but it has different signature (metadata) .How can i achieve the goal.I already used...
View ArticleHttpWebRequest.ClientCertificates Client Certificate Authentication with...
Hello All,I am trying to write a PCL library that calls a REST API. I must authenticate to the REST API using a client certificate.To my horror, I have realised that the ClientCertificates property is...
View ArticleHow can we use .jar file in a C# code.
Hi,I want to use a .jar file in my C# code. That is i want to call the methods from the C# code. Is there any direct way of doing it without conversion?Thanks in advance.
View ArticleOSGI Equivalent
Is there any thing in .net 2010 equivalent to OSGI?Is there a way to replace dlls without stopping the application?Raamakarthikeyan
View Article