Unhandled exception after calling Environment.Exit(0)
Seems managed code was still running after CLR unloaded.------------------Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1677 Exception code: 0xc0020001Clifford Jin
View ArticleCapturing or preventing mouse events in a .Net control
HiI'm fairly new to C# windows forms. I have a third party .net component that plots an xy graph on a control. This control has many mouse events that i can use but the only one I need is mouse...
View ArticleRotate Image on a non Center point.
Hey guys! So I am working on a game, and I'm using SdlDotNet as my graphics library. I can rotate images no problem without them moving to a different X and Y. This is because when you rotate an image...
View ArticleColor Blending Help
Hey guys! So I am wanting to blend two ARGB colors together. Now this is for a driver, so I don't have .Net calls, but I write in C#. So the equation I currently have isbyte alpha = (127 / 255);Alpha...
View Articleembedded dll can't be detected when installing control in visual studio 2008
In order to embed third party dll into my user control, I have added the dll to the project and set it to embedded resource and then added it to the references.In order to load it I have used...
View ArticleCoded UI searching and filtering Property
Hi First I want to suggest that...In forum Category I selected .Net Framework, soon after it is sowing some option in the forum. there I don't find any option for Test automation Tool ' Coded UI'....
View ArticleUsing Code Analyze, Rule:CA1722 does not work.
Using Code Analyze, Rule:CA1722 does not work.I wrote codes like this:class CMyClass{ ........{And I enable the Code Analyze with Rule CA1722, after building the project , VS does not report a...
View Articleplease help! i'm having a big problem with VS and i can't use it at all!
when i try to just launch a blank document i get the error "the name 'InitializeComponent' does not exist in the current context" and whatever i do i cannot get any kind of app to run. i tried...
View ArticleReferencing DLLs ?
Hi ,I have two dlls Company.dll and DataAccess.dll written in C#.DataAccess.dll is referencing Company.dll.Now I created a C# class library project in which I added these two dlls as references.But I...
View ArticleIllegal characters in path.
following is my xml file. The compiler say that Illegal characters in path. <paragraph>The car <carVersion>Maruti Suzuki Omni 5 STR BS-IV</carVersion> This is the most conspicuous car...
View ArticleEncrypted Storage
I don’t want to hard code user names and passwords how I ve done, How I can put this in Encrypted Storage??? in Asp.net code...Xdocument xdoc= new Xdoc('..........") new...
View Articleinvalid resx file
I have a windows forms application that has a few forms. I built the project, noticed that a couple of buttons on a form were not in the right place, moved the buttons in the designer, then when I...
View Articlehow to append root element to the xml file
I have the following xml file and i want to append the <root> as root element and </root> as last element using the c# code.<paragraph>The car <carVersion>Maruti Suzuki Omni 5...
View ArticleCircle Chords of a Specific Length
I've searched high and low for a solution to this one, with no luck. I want to calculate the ending point of a chord given a specific pixel length. I have the center point of the circle, the radius,...
View ArticleC sharp - Error while taking value from text file
Hi All,I am working on Windows Forms application where values from text file is taken and inserted in database.My text file contains almost 23 columns.But for one column i am not getting complete...
View ArticleInvalid Arguement error
please find my below code and it show invalid arguement error but the same code able to run in other systemdont know why. please let knowprotected void Page_Load(object sender, EventArgs e) {...
View ArticleAccess to path xxxxxxx is denied
I know similar questions were asked in the past but none of them address my problem.I am running VS 10.0.402191 SP1 in administrator mode. On 64-bit Windows 7 Home Premium sp1.Windows solution written...
View Articleread integer values in one line
Hello everyone! I want to input 5 integer values in one line, without getting to next line. Example: Please enter the values of x: 10 20 30 5 11 2How should I do this? Peter
View ArticleAccessViolationException on Linq.SqlClient
once in a while, when accessing some values from the SQL DB through Linq2SQL, i'm getting AccessViolationException.the stack: at...
View ArticleCapture Image from webcam in C#.Net
Hi everybodyHow can I capture from webcam (or any other camera) in C#.Net (or C++.Net)?Are there any step by step Guide to do this?Thanks...The Best Programs
View Article