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

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 Article


Run 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 Article


C# 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 Article

Covariance 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 Article

C# 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 Article


Error 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 Article

Visual 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 Article

how 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 Article


Windows 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 Article


Problem 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 Article

C# 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 Article

C#, 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 Article

Deterring 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 Article


C#, 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 Article

Image may be NSFW.
Clik here to view.

Get 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 Article


Is 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 Article

Acces 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 Article


Menustrip 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 Article

dynamic 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 Article

Consulting 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
Browsing all 31927 articles
Browse latest View live


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