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

Basic LINQ : Why is this code returning null

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Linq.Expressions; using System.Xml.Linq; namespace ConsoleApplication6 {...

View Article


connecting/odbc with database on server

My experience with database connections has been limited to localized files such as Access or FoxPro databases.  Now I need to connect to a database on a server such as FileMaker which is like MS SQL...

View Article


A generic error occurred in GDI+

I am able to run the code snipped I posted below without any issues on my machine both debug and installed version(running Windows 7, 64 bit, VS 2010).  It however crashes on the test machines (both...

View Article

need help on my C# array

I am trying to do my homework on Array and passing through reference in the Main Method. For some reason my array from the InputData is not passing through the Main Method. Can someone help me with...

View Article

Matching records from separate datasets and building a trace to other...

Hello All, I have a list of 5 datasets that include various numbers of records of individuals' information.  What I have so far is an object oriented program that treats individual records as unique...

View Article


shared embedded assembly resource not working

Hi there, I've got a tricky problem.  I'm trying to use embedded assemblies so that I can have a single EXE deployment.  ILMerge is not an option here.There is one main exe.  Let's call this...

View Article

How to pass data from a user control to the parent form

Hello everyone!I am trying to make this work and so far every answer I found on the net did not work for me. So here is the problem: I have a Winform in which I embed a user control. The user control...

View Article

How to: Advance to Stage Two?

So I am REALLY new to C# (view signature). I understand some things, but others can get out of comprehension quickly. Using a timer loop (game time) I have managed to make some 2D animations and get...

View Article


How to save a file without using the SaveDialog Box?

Hello,So I have a program which basically takes a lot of reading and everytime we take a reading we want to save the file. Now the problem is I am using the Savedialog and calling the ShowDialog...

View Article


Callig a 32 bit app in from asp dot net code in 64 bit windows 2008 R2 not...

Hi My web applicaiton calls a 32 bit app an exe file from my asp dot net code and its works fine on win XP 32 bit  machine ,,,but when i deploy it on Win server 2008 R2 with iis7 ,, on 64 bit machine...

View Article

Difference between?

Hi,What is difference between these? class Class2    {        public  static int ta()        {            return 2;        }    }via static class Class2    {        public  static int ta()        {...

View Article

Interview Question for C#

Implement the following function and test it (C#):protected int GetSum(int from, int to){// add the numbers from “from” to “to” all together and return the result.}

View Article

Problem with switch structure

I'm starting to learn C # and I need to develop a program in console mode. Must have a menu with an option to register a student and another option to show the record of this student. First I checked...

View Article


Generically call List.AddRange

Hiif you have a variable typed as IList, not the generic IList<T>, and you know it could be a List<T> at run time and you want to add many items to it, is there a way to call the AddRange...

View Article

Error al crear Excepción System.Data.SqlClient.SqlException utilizando...

Hola, mi problema es el siguiente, estoy utilizando WCF para realizar un componente que almacene las excepciones de mi sistema, como bien saben, las excepciones no se pueden pasar por WCF, por lo que...

View Article


how fit the picture in picture box in visual C#

can u please help me in fitting a picture that i have browsed from openfileDialouge in the picturebox?

View Article

concurrent access in my e-commerce web application

Hello! show all stocks in my application .... user see the stock item via web site and at the same time we need to modify price this item in back end section ... how can i handle it ... pls help me!...

View Article


Enum Is Defined Method

I have enum with flags attribute,i receive enum values as string , then i do parsing,and try to verify if enum is defined , using IsDefined method,but the problem is , when enum to check has multiple...

View Article

How can I store a to a Text Field in SQL Server Database?

Ok...So I have these text fields on my C# Form. I am initializing a GlobalVariable for each ...GlobalVariableClass.GlobalStringText = null;If nothing is changed in that text field, I then use the...

View Article

Develop C# webservice to access Active Directory

Hi, I would like to make a webservice in C# that could be used by a client applications to bring modifications in Active Directory. Is this possible ? And if yes, does someone know usefull articles...

View Article
Browsing all 31927 articles
Browse latest View live


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