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

reading an xml file in c# from a web server

I can read the file. from the web server. The problem I'm having is reading the contents of the xml file. I wish msdn.com forums was easy to find what forum I need. So I know this is not in the right...

View Article


DataGridViewComboBoxColumn cell value returning null

I am trying to get a value from a DataGridViewComboBoxColumn cell that is named "Item".When I run the program and make a selection from the combobox, string itemValue always returns "";I am also...

View Article


developers and their laptops!

hi friends, I bought a HP envy laptop which has an MacBook pro like Touch pad. which means so far for general purpose such as MS word, excel, email and internet it was darn good. But I know most people...

View Article

usb communication

hello,how to read data from usb and write data to usb using windows forms applicationsThanks and Regardsm.koteswararao

View Article

Writing information into the USB Dongles using C#

Hi All,I have a requirement to read the Safe Net dongle number programmatically from C# and also i need to write some value into the dongle.Later i need to convert this as a Active-X plug in to access...

View Article


Public Field - why is it bad?

I'm a C# novice.I was at a Microsoft event recently and the presenter showed this line of code from Azure Mobile Services:public static Microsoft.WindowsAzure.MobileServices.MobileServiceClient...

View Article

Tracking down a Type Initialization Exception

Hello all, At the client's PC my test program crashes with what seemsto be a Type Initialization exception, but I can't track itdown in the source code, although it is built in Debug modeand the main...

View Article

Unit test double values in c#

I have following unit test and  to calculate shipping cost ,I have a Calculate method that will return double value and am checking against hard coded value (1566.66666666667) and the test is failing....

View Article


Sql Server CE - The column name is not valid. [ Node name (if any) = ,Column...

I have the sql like this SELECT 2, COUNT(3) AS [C3]I run using ADO.NET using System.Data.SqlServerCe.dll and got this error The column name is not valid. [ Node name (if any) = ,Column name =  ]Then I...

View Article


Image may be NSFW.
Clik here to view.

DropDown multiple selection with a checkbox

Hi, can I have a DropDown that allows multiple selection with a checkbox beside each item? thanks

View Article

What's TaskCompletionSource good for?

I've been playing around with this and I can see how to expose a Task<T> from a conventional EAP based implementation, that is how to expose the Begin/End semantics as a simplerTask<T>...

View Article

Linq Query Syntax

This is more just bothering me than of need.  Syntactical question.  Suppose I want to use linq on a List<string> called Lines and return the value and index of each line in that list.  So, I use...

View Article

Retrieve API Data by Using C#

Goal: Using C# code to retrieve data from API and insert it into a SQL server's table. Problem: What C# source code / syntax do you suggest me to use? Is it efficient to use LinQ? What syntax do I need...

View Article


App.config and project settings

I've come across something on Stack Overflow about app.config and the GenerateDefaultValueInCode property on the project settings.  It implies that by setting this property to false for all settings,...

View Article

OutOfMemoryException loading image

Hello all!I hope you can help me. I've a  use drawing control in order to show an image. The image is about 12000x3500 pixeles. The first time it load the image, I don't have any problem but if I try...

View Article


Size type string

int nr = listenSocket2.Receive(buf,sizeof(ulong),SocketFlags.None); I see type string only limit 8 bytes(8 character) although i set size buf is sizeof(ulong). Everybody can tell me how way to receive...

View Article

Search inside in directory

Hi,I want search in all folder in a directory.What is do?

View Article


Component - Subclass event c#

I have a class what I would like to close into a component. I try to make it work, based on the following code, The issue is, that the properties are editable and viewable in the property browser...

View Article

reading the paths from the command line

I want to read the command line path, as in you open the app up like "app.exe -C:\" and I want to sue what was typed as a string. anyone know how I could do this? (In C#)

View Article

List not working

Trying to figure out why this isn't working, the list is to retrieve photos using the combobox item (which lists local HDDs root address as items) when selected that item it is converted into a string...

View Article
Browsing all 31927 articles
Browse latest View live


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