Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

Question about GCHandle::AddrOfPinnedObject method

Hello,I have a small doubt about GCHandles. Let m_ptr be an IntPtr to some data, for example first byte of a bitmap image.// Assume m_bmpData to be properly set from a BitMap// Scan0 points to the...

View Article


ResourceManager GetResourceSet locks resource Satellite assembly

Hi,I have created a WPF application for translating .Net Desktop application (WPF and Forms).I load all resources from the executable file the user selectes. I then load the key and value from the...

View Article


working in vs 2010, and not in vs 2012

unable to cast object of type 'system.invalidoperationexception' to type 'system.web.httpexception

View Article

What is the correct way to read from the config file?

We are doing it, I think, 4 different ways. What is the approach we are supposed to use.Some of our code is a commercial library that is used in web apps, Forms, apps, Silverlight, and more. So the...

View Article

Need help with C# xsl web page - trying to set item in drop-down list

I am working on an asp.net application that uses XSL heavily (unfortunately) and am trying to set Items in drop-down list controls. The controls populate as expected, but I don't know how to set the...

View Article


Does FtpWebRequest Support VMS?

Back in 2007, there was a post that said FtpWebRequest did not support...

View Article

How to assign generic list return from a method to generic list variable?

Hi,I have a method which returns generic list and wants to assign the result to another list. How to do this?For example have a methodpublic class ValueDAL{ public List<KeyDO> GetKeyValues()}In...

View Article

Image may be NSFW.
Clik here to view.

DirectoryEntry.CommitChanges() block my Windows Service

Hi All,I'm writing a Windows Service process that blocks during the CommitChanges operation:        DirectoryEntry ent = new DirectoryEntry( bindString );...

View Article


how to replce the selected frames of the video

for my video steganography application i have to replce the embedded frames with the orignal frames of the video i am using avi file library but it is not working it is giving exceptions ....so i need...

View Article


After manually and programatically assign all the rights to IIS_User, why do...

It is dangerous to executing codes below to modify the registry, please note. My code:    DiscretionaryAcl acl;        var localSystem =new...

View Article

How do I enumerate all indices to a multi-dimensional array?

I would like to fill a multi-dimensional array A with values of function f.  I am tempted to writeforeach (int[] X in A. GetIndices ()) A .SetValue (X, f (X)); But I cannot find anything resembling...

View Article

IMAP Class library

Hi,I want to access a mailbox using IMAP from C# .Net. Is there any class library available in .Net SDK for IMAP. If not is there any recommended opensource library.Regards,Rajiv

View Article

Not able to run my .net application. Error occuring is...

Hello,Few days before I was able to run my website developed in .net framework 4 version.Now am not able any of the websites from IIS  . Am getting following error in all of...

View Article


File SystemWatcher

Greetings,I have a C# Windows Forms app that has been running for a couple of years.  One of its components watches a log file (text) which is periodically written to by a machine to which the computer...

View Article

Missing read/compressed and write/uncompressed methods in DeflateStream class

The System.IO.Compression.DeflateStream class provides a read() method to read compressed data from an input stream and return decompressed bytes, and awrite() method to compress data bytes and write...

View Article


JumpList w/o XAML

I'd like to take advantage of JumpList in a VB.Net application.  Since there is now .Net support (as of 4.0 I think) I'd rather use that than the "api code pack".  But the official doc which I find...

View Article

String.Compare() giving incorrect result for case insensitive comparison in...

The following code should print true, but it prints false. Can someone explain what's going on? This code works on about 100 other languages (including Turkish strings) but somehow fails on Ukranian....

View Article


.net database connect api

hi, I wanted to ask is there a universal api to connect to any or to many databases from MySQL, MS SQL to Oracle, etc without having to change the sqlConnection, sqlCommand, etc for every different...

View Article

How to use List(T).FindIndex with c++

I'm trying to use this method with a List<String^> but it wants a Predicate as an agrument and I can't find any documentation for declaring a predicate in c++.   This is what I...

View Article

storing and retrieving more than one set of my.settings values

HiI have combobox1 that displays usernames and several comboboxes to grant or deny the selected user certain functions. I am using my.settings. I want to save and retrieve settings based on the...

View Article
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>