Cancel event of DataGridView CellContentClick
Hello, I'm wondering how can I cancel an event in c# when a user click in a checkbox, for exemple, I want the user to start the program before he can use the checkbox on the in the table, this...
View ArticleRun Download Manager exe and Pass values from Asp.Net web page
Hi,I have Download manager Windows application in C#.now i have a web page that should have download link(i will click once deployement) and when user clicks the link it should download and install...
View ArticleC# ref and out parameters
Hi C# Experts,Just was preparing a checklist for C# 5.0 code review and guidelines and of course, I did some Internet search too. I was surprised to see some "C# experts" advising against the use of...
View ArticleCovariance with interfaces
Hi,I have defined an interface as follows:public interface IMyInterface<out T> { }I have marked the generic parameter T as 'out' to indicate it should be covariant (that is, may also accept...
View ArticleC# LINQ OrderBy extension does not appear to evaluate all possible...
I am attempting to use the LINQ "OrderBy" extension method with a custom comparer class to sort a list of values where there is a dependence between the values. From what I can tell, the OrderBy...
View ArticleError marshalling data
Hi all!I am trying to code something more efficient, and so, I try do not use a loop in order to marshal the data which the app receives.It throws an exception which I do not know how to handle it.Does...
View ArticleVisual Studio right-click and "Create Unit Tests..."
Hi Visual Studio Experts,Why on earth the right-click and "Create Unit Tests..." feature got removed from Visual Studio 2012 and 2013 (I know the feature is available as an add-on VSIX in the Visual...
View Articlehow to capture message "windows has detected an ip address conflict" using c#
HII'm doing a program to controller my network and I need to capture the message "windows has detected an ip address conflict".I want to use c# to get this event or notificationCould you help me Please
View ArticleWindows service huge Virtual Memory Consumption causing production server...
We have a Windows Service which is consuming very huge Virtual Memory. This service is a thread based TCP Socket Listener. we are seeing 32GB virtual memory consumption out of 35GB these days. so we...
View ArticleProblem within classes to access values
I am developing application to monitor some server over the network. I prepared simply class Server which give me IP and Protocol which give me Name of protocol then in class Heartbeat supervisor in...
View ArticleC# Server
Hello all! I am creating a simple server for a messaging program that i am running that I downloaded off the internet. It woks only if I run it in local mode, or simply through my "localhost" However,...
View ArticleC#, forms do not display
HelloI am just starting to work with C#. I used the follwoing code to show a form in C#, by using a button in a menu strip. The problem is that other forms with the same code show with no problem,...
View ArticleDeterring an SQL Injection Attack on a DataGridView
How can I apply the concept parameterized queries on my datagridview?A little info on my application: I create a datatable in my DGV and it allows the user to change data. I then allow the user to...
View ArticleC#, show number in textbob
HelloI have just started working with C#. I need to show a number in a TextBox. But no matter what I have tried, I can not make it appear. This is the code. Any...
View ArticleGet the selected index of combobox
Currently, I got 3 windows, which are Login form, Wait,Choices Form. On the Login form, there is a combo box for language that user could select the his or her desired language, while I got 2 windows...
View ArticleIs possible set of enums in C# ?
In Pascal I have code: {$APPTYPE CONSOLE} program enumSet; uses SysUtils; type TMyEnum = (meA, meB, meC); TMyEnumSet = set of TMyEnum; TMyStruct = record value: integer; en: TMyEnum; end; var List:...
View ArticleAcces a .txt file from a installer
Hello guys. I had successfuly created my project and created a installer for it with the aid of this...
View ArticleMenustrip adding items and subitems programatically
I am trying to add menu items and submenu items to a menutoolstrip for some reason the sub items do not get added - I would appreciate any help. Many thanks in advance private void BuildMenuItems() {...
View Articledynamic code
how do I add code during runtime ?so I have a set of Nodes and I want to add one during run time. That part i can do. But some node( not all) will have a timer. how do I add times during runtime as...
View ArticleConsulting DataSet Error: cannot find column 1
Hello, I have using a store procedure on SQL 2008 R2 called procPortalesByIniciarLecturaSelect in charge of select all portales table with iniciarLectura column in 1, and is not included into a defined...
View Article