Math.Round Problem
Hi all,can anyone help me to round a number to its nearest 10. i have a text box in my application to display the answer of an arithmetical operation. so the requirement is that if the answer is 64 it...
View ArticleAsynchronous HttpWebRequest abort causes application to crash
Hi We have noticed on our production server an extremely rare race condition with HttpWebRequest that is causing our application to crash from time to time.The race condition is caused when...
View ArticleIntegrating OCR software and MS Forefront
Hello,Does anyone have experience integrating OCR software like http://www.card-reader.com/ with Microsoft Forefront?We are looking to integrate them to get real-time info about visitors in the...
View Articleshared data in dll
I'm using vb.net with vs2010 and i have a requirement to share data between two different applications, a windows form application and a service. i thought i could use a dll as an intermediate for...
View Articlehow to tag clipboard text
Hi,Is it possible if windows tag the clipboard to check if it's related my application or to other application?Thanks,Jassim
View ArticleCan i define the TSource type in the method of Single()
Hi,I have an issue of the Single<TSource>()Why I can't set the TSource of the a concrete type while the collection is the astract type. The following is the example of my question.public abstract...
View ArticleCould not find any resources appropriate for the specified culture or the...
Hi, I am working in VS2010 and getting this error when my project tries to access resx file. Resx file is local to this project. It works fine if I exclude and include again in my project. but it does...
View ArticleWill C# classes will clean virus after I cropped / shrink an upload image...
Hi everyone,I do have a question about the uploaded file with virus.I know the common way to deal with this issue is to do a virus scan while uploading.But my question is will the C# code will clean...
View ArticleAutomationElement FromPoint on metro
The method AutomationElement.FromPoint (cursor position as point) dose not recognize AutomationElements on the metro screen. The function returns the elements under the metro (as if the metro isnt...
View ArticleConcurrentbag vs Blockingcollection
I have a telephony application, in which there are many calls. Each call can be done with a process(method). Now I want to make 100 call simultaneously. I also want to return the call result(success or...
View ArticleHow can I extract a file from a System.IO.Packaging.Package hosted on a URL,...
I need to get the stream associated with the file (if present) from a OPC based package hosted on a URL, without downloading the package, as the package could be >1GB as well. I just need an XML...
View Articlehow to convert eml files to pst format
any idea about converting multiple eml's into single pst
View ArticleIs the default Process.MaxWorkingSet bogus?
I have one of the worlds simpilest applications:publicstaticvoid Main() {using (Process p = Process.GetCurrentProcess()) { Console.WriteLine("MaxWorkingSet: {0}", p.MaxWorkingSet);...
View ArticleVOTE: Long filepaths > 260 characters are not supported by the .NET Framework
Hey All,Some of you may know the background behind this, while others may not. The bottom line is that with the release of Windows XP, Windows and the Win32 API have supported filepaths up to 32,767...
View ArticleUnable to determine the identity of domain." exception when saving larger...
Hi all,I am having an issue saving a large XLSX file. SmallerXLSX files seem fine, but this larger one I'm trying to generate keeps failing with the above error.For research around, many solution...
View ArticlePassing a System.Array to a VB6 ActiveX EXE from C#
I have a C# app written in VS2005 using Net Framework 2.0. I call a function in a VB6 ActiveX EXE and pass a System.Array by ref. I recently upgraded the app to VS2010 but still using Net Framework...
View ArticleApplicationSettingsBase and the initialization of the SettingsProvider
Hej!The documentation of the "Application Settings Architecture" (http://msdn.microsoft.com/en-us/library/8eyb2ct1.aspx) states the following:"...For example, suppose that you want to develop and use...
View ArticleGenerate PDF from HTML page programmatically using .NET assembly
Hi,I am trying to generate a PDF file from HTML page. I have searched the web and found 3rd party components which does this but I can't seem to find if this could be done with only .net assemblies. I...
View ArticleWait for an async-continuation before proceeding
I'm using async/await to provide a continuation for a task that needs to be run in the UI context. However, the continuation may be pre-empted by another block of code that needs to wait for it to...
View Articlesending mailmessage using smtp.office365.com and framework 1.1
How I can send mailmessage using smtp.office365.com and framework 1.1 ?I need to use port 587 and TLS I think .It is possible?
View Article