Problem deleting Directory - access denied
I am copying Windows directory from "C:" drive to "E:" drive. When we try to delete this directory from C# application then application throws "Access denied file" exception. If we try to delete it...
View ArticleShrink Image Size
I am trying to update a legacy application. I want to have an icon that links to another webap and uses the search results in the url. I can't figureout how to shrink the image when I use a hyperlink...
View ArticleFindByIdentity, .NET Framework 4.5
Hi,I'm setting up a service to manage AD user accounts via System.DirectoryServices.AccountManagement. The service lives in a different domain (our DMZ) than where the user accounts live (user...
View ArticleUsing System.IO.Compression ZipArchiveEntry class in Visual C++
I have a Visual C++ application where I would like to use the ZIP file features of System.IO.Compression of .NET 4.5. I have gotten the unzip to work. What I would like to do now is to use the...
View ArticleReflection Emit - C# - Indexer problem
Through Reflection Emit, a Type / class with an indexer (signature: string this[int]) is created this way:DefineProperty - "Item" (System.Reflection.PropertyAttributes.SpecialName)DefineMethod -...
View Articlemscorblib.dll
Please any can tell me whether mscorblib.dll is a part of windows7 language pack/windows7 or .Net framework language pack/.Net framework?thanks
View ArticleRS 232 COMMUNICATION IN C#
HI IM SRIRAMI'VE CREATED A PROGRAM FOR RS 232 COMMUNICATION , IN WHICH IM COMMUNICATING WITH A CONTROLLER,THE PROGRAM RECEIVES THE DATA FROM THE CONTROLLER, BUT WHEN I SEN SOME DATA THE CONTROLLER DOES...
View ArticleJavascript Launched C# ActiveX Assembly Gets System.DllNotFoundException:...
Hi,I have created a C# ActiveX server which is started from Javascript running on a web page. The C# library displays a form and when the user clicks a button on the form, the C# library calls a DLL....
View ArticlePortable class library projects are building with non portable library
I referenced System.ComponentModel.Composition in my PCL which supports Windows 8.1 and .net 4.5.1 . I was able to buld successfully the PCL.I was under impression that...
View ArticleDigital Signing of TIFF file
Hi All,I want to digitally sign a TIFF file using visual studio (VB.net/ASP.net/C#). I do not want to convert the TIFF image to byte array and then sign on the the byte content. I want to directly sign...
View ArticleQuery regarding Transaction Scope.
Hi,I have few queries about transaction execution using TransactionScope.Kinldy, go throw below sample code:staticbool MSGQueue() { MessageQueue q =null; bool isSuccess...
View ArticleReflection: how do I get a MethodInfo for a method in a generic class where...
We have a compiler that uses Reflection Emit to generate assemblies. We are compiling a class that's equivalent to this C# code, where List is the framework's System.Collections.Generic.List<T>:...
View ArticleCreate Microsoft Excel using C#
Hi, I would like to ask what's the best way to create and manupulate Microsoft Excel files in C#? Thanks, Jassim
View ArticleReporting progress of a hash algorithm
I am trying to figure out how to report progress of a hash algorithm.Currently we create a hash using:hashAlgorithm = new SHA256Managed();hash = hashAlgorithm.ComputeHash(stream);This doesn't provide...
View ArticleSoftware Protection vs Dongle Protection
Hi,I have a C# .NET software and I would like to deploy it with protection. I though many times of the [Product Key] which will be generated from a mix of hardware serials but I saw some applications...
View ArticleIssue with itestsharp.dll
Hi,I have a wesite using itextsharp.dll 5.4.5 which generates the PDF perfectly when run from visual studio 2010.But when deployed in windows server 2008r2(iis7.5) the PDF are not poped up. Also no...
View ArticleCan I make a ComboBox display the ValueMember instead of the DisplayMember?
I have a ComboBox with a DataSource, DisplayMember, and ValueMember. And all works well except that when the drop down list is closed I'd like the ValueMember displayed. That must sound strange but I...
View ArticleHelp with an ASP .NET Application involving PNG Image file and DispInterface...
I don't know why there is no forum for ASP .NET. Maybe I am in the wrong forum. I need to write an application that takes a user provided PNG image file and processes it. I know this is probably very...
View ArticleCheck whether text has particular words
Hello,I have string variable.String s1 = "It is a nice day today";string searchString = "is;day";-- NOTEVariable search string has two words delimited by semicolon (is and day)I want to write an...
View ArticleSubstring
I have the following piece of code.<span>@Model.Interview4.Description.Substring(0, 200)</span><br />It works pretty well but if my Description has less than 200 characters I have an...
View Article