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

run process as an admin and redirect the process output

Hello,I've an issue which is running a process as an admin, so i used runas as the process info's verb and i should set UseShellExecute = true, else it won't open as an admin.Beside that, i want to...

View Article


BitVector32 purpose?

Experts,    I'm trying to take in Collections and have run across the BitVector32. Is the sole purpose of a BitVector32 item optimizing available hard drive space? (Example: Using 3 sections of a...

View Article


How does .NET Framework 4 differ from .NET Framework 4 Client Profile?

Are they same or any differences?

View Article

Image may be NSFW.
Clik here to view.

Issue with SQLparameter on .net4.5 and higher

Hi Guys,          I recently acrossed an issue with SQLparameter, may be you guys have an insight.      It never used to be a problem on .net4.0 but have this issue on .net4.5 and higher.Sample...

View Article

Circular Dependency

I am using EF Code first but there is a problem. I have 2 different layers: myProject.DataAccess and myProject.ModelAt DataAccess layer I need to add reference to model so I can use the models as:...

View Article


start button code

im doing a flashing program , i need a start button code 

View Article

Is OPOS Required for POS .NET

Hi all, I am planning to buy a cash drawer to write my own POS system. However my problem is after reading a while on OPOS and POS .Net I am a little confuse as to how to open a cash drawer.I am...

View Article

How to use the ProtectedData class from a Winodws service

I'm trying to use the ProtectedData class from a Windows Service, using the "CurrentUser" scope. It fails with the error "Key not valid for use in specified state.". I believe this is because the user...

View Article


how bitwise shift operation is happening ?

I have done a small program to understand, how bitwise left shift operation is working ? var result = 2088883663 << 5;Binary value for 2088883663 is 01111100100000011101010111001111result binary...

View Article


Different DefaultValues of subproperties for more custom properties

Hello all.I would like to ask you. In C# project, I have a PropertyGrid control, where I want to show four items of custom class (Person1,...,Person4), but with different DefaultValue for each class...

View Article

.NET 4.0 XML validation performance

Trying to validate an XML document (using System.xm.XmlReader) against its corresponding schema, performance can be really slow, depending on the value of certain elements. Below you will find the...

View Article

Installing certificates for SSL programmatically

I am solo programmer writing a shareware application that requires my application to post some data to my web site to validate its serial number. I want to only submit this information using SSL. I...

View Article

How to use DynamicDictionary Class for List (Collection) of Data?

I'm using entity framework but when I execute custom query that time I don't want to create Hard class to carry collection of data.I saw some link for DynamicDictionary Class and use but data was not...

View Article


Web Development Solution

Hi friends,how to display shape file (.shp) file extension in browser?I have one asp.net web form,  and one link button. when we click on link button then show .shp file?Please help me....

View Article

Linq to sql column changes

Good dayWe have a problem with linq to sql at our company.We have many projects which uses the same tables. Once we have to make a column change on sql,We have to update every projects dbml file and...

View Article


DirectoryInfo.GetFiles gets System.IO.IOException when file does not exist

We have an application developed in c# that do lots of fileprocessing. This application runs on Windows Server 2008 R2. We have tried both .NET Framework 4.5 and 4.0. The application runs the following...

View Article

Need a thread safe FIFO queue

I need a queue for first in first out. But the question I want to process the items in the queue kind of block. For example, there are 1000 items entered the queue. Then we process the first...

View Article


File/Directory path validation

Hi folks,     I'm looking for a way to validate a string whether it is a valid file path and/or directory path.  The System.IO.Path class contains some helpful methods but not a solution.  I am not...

View Article

Net Framework 4.5.1 application by redistributable x86 and x64

I hope this email finds you well. I would like to ask some questions about:  I am developing in Net Framework 4.5.1 application by redistributable x86 and x64. However, I need to run this application...

View Article

Help reflecting operator methods

Hi. I need to invoke the Addition operator in a given object (if exist) in order to perform a sum. The object parameters are System.Object types so i don't know if they really has the operator...

View Article
Browsing all 8156 articles
Browse latest View live