Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

AllowWriteStreamBuffering and proxy authentication

Hi.I am using HttpWebRequest to upload files. The connection is via Proxy which requires authorization. We set credentials on proxy usingHttpWebRequest.Proxy.Credentials. In this case after each...

View Article


Web application accepts only specific version of reference assemblies

Hi,In my web application I am referencing 3 dlls from a project. The project was built a while ago and I have the dlls in a folder. The problem is when I change something in to the reference dlls...

View Article


Move the cursor in a specific time

I have mo move cursor cintinously 1 to 2 hours .if will click button the cursoe will move 1 to 2 hours after that it will stop automatically .I have to cofnigure time in cofig file or timer and and any...

View Article

C# project cant find IApplicationService

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Data; using System.Drawing; using System.Windows.Forms; using...

View Article

running 2 key down events on 2 forms in the same time?

Dear all,I have a wpf project, with 2 forms.I want to when pressing a key, in any of the 2 forms, to make an action.Like, main window have a key down event say up is pressed, and window2 have another...

View Article


SQL Server 2008 SMO not working in C# Namespace Error

SQL ServerR2 2008 SMO not working in C# namespace error. I cannot create server object. The references listed in various sites including stackoverflow posts doesn't work for me, please help me.1st...

View Article

High precision timers in C#

I am currently in need of a high precision timer.The implemented timers found in .NET are not sufficient.I have done some research and found that using HPET timers are possible with newer hardware...

View Article

async/await with Powershell and C#

Hi , Is there a way to use the new await/async feature with powershell.There is some async method in the System.Management.Automation  assembly, but I can't use them with the new Async/await...

View Article


C# SQL Query Question

I need to run a SQL Query in C# to check the count of an item sold, and if the count is 0, then not display it in the results set.  So for example, I was thinking something along these linespublic...

View Article


Changing FileCreation time - be aware of last access and last write times.

While it may be obvious to some, the documentation on the CreationTime method of the FileInfo class does not specifically note that the CreationTime can not be changed to a value more recent than the...

View Article

Image may be NSFW.
Clik here to view.

Downloaded a zippfile using webclient.Download , file size is wrong

Hi All,I have downloaded a zipp file from website which is of size of 827MB but the unzipped file size for that file is showing as 734PB which is definitely of wrong size . Below is the code which i...

View Article

FileInfo.Exists returns false eventhough file exists

Hi,In a web service, i am checking with FileInfo, whether a local file exists, the problem i have found is that when I run the web service in debug mode, then it returns true, but after publishing the...

View Article

IFileoperation with modeless form

Hi,In my application, i need to copy files and folders. I use the ifileoperation wrapper founded on msdn , but i have a (big) problem. The progress dialog open as modal form and i have to wait the end...

View Article


How do I fix "This page can't be displayed" error in asp.net c#?

How do I fix "This page can't be displayed" error in asp.net c#?I was debugging a localhost asp.net and I have made some very minor code changes and ran it again and now I get an error I have never...

View Article

OpenFileDialog Freaks out C#

OpenFileDialog1.ShowDialog();txtPresSDFPath.Text = OpenFileDialog1.FileName;When I click the button to open the FileDialog the app errors out in debug mode stating the following error:...

View Article


sync safe integers

HiI've made a search with "sync safe integer", "sync safe int" and "int28" and didn't get any result talking about a type.I know sync safe integers are used for several tag size fields in mp3 tags.I'm...

View Article

XML Serialization... same nodes with different child elements.

I am having an issue that I think is a pretty simple XML serialization issue, but after a few hours or messing around with it, I think I have come to the conclusion that I am missing something...

View Article


C# - Issue with extended classes and base methods

I have a scenario where I am working with a library from another department in my company that I cannot just change (otherwise it could cause problems later when they release upgrades), and I'm trying...

View Article

C# Wrapper C library, Pointers

I have created a C++ dll / wrapper for a C library. Everything appears to be OK, I can access the C++ functions that in turn access the C lib. My only problem now is that I have no idea how to use the...

View Article

Compress stream

HiI have a TCP port forwarding application that could use compression. The packets are typically small (maybe about 100 bytes each) so a GzipStream performs poorly (actually makes them bigger).There's...

View Article
Browsing all 31927 articles
Browse latest View live


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