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

Microsoft.ink?

What reference do I add to my project to use the Microsoft.Ink namspace? I looked in the GAC, its there, but It's not showing up in the add reference dialog box.

View Article


C# Windows Application - Active Directory error with Windows7

We have a Windows Application written in C# that authenticates users to our active directory upon start up.  It works perfectly fine with Windows XP, however when run with Windows7 we get the following...

View Article


Calculate CPU Usage of a function with in a process using C#

Hi,How to get the CPU usage of a function inside a process from C#.Please suggest the best method.thanksBhash

View Article

How to install *.inf files on C#??

Hi,i have many .inf files and I wont install this file.But i wont create program on C# for installing .inf filesand i do not know code line for installing inf fileshelp me write this program functionmy...

View Article

How to move some objects (using the same timer) at an interval of time one to...

1. I have one or more objects (they could be a panel or a button or a pictureBox or etc.)2. I have a button (e.g. button1)3. I have a timer (e.g. timer1) that move an object to the right4. When I click...

View Article


Getting back Decimal address value of a USB device?

Hello All,I have a COM server application written in C#. When I run this application I get 2 type of addresses back for one usb device as follows: USB0::2391::280::MY48220507::0::INSTR;...

View Article

Image may be NSFW.
Clik here to view.

The ridiculous nature of Windows 8 and 8.1 Sideloading LOB apps and new...

I was on a project last month and developed a WPF application.  One of the things I had to do was find all child folders from a parent, simple right?  Just use the C# directory class like I'd done a...

View Article

Issue with Excel Versions

Hello,I have a C# project which references Microsoft.Office.Interop.Excel.dll located in "C:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for...

View Article


How can i populate my radiobutton from xml?

I have 1 label and 4 radiobutton controls(C#). How can i populate my controls from xml. In label from QuestionText and in radiobutton from Variant,but first question three variant , second question 4...

View Article


dataset.haschanges for single table within dataset.

BhHi, im using easytenDataSet.HasChanges(DataRowState.Modified | DataRowState.Added)) to see if user imputed anything into the fields, and ask if the user wants to save changes. However, I would like...

View Article

Cryptic Compile Error with Generics

I dumbed down my code a lot so that it is easier to see the issue. When I compile, I get the error:The type 'T' must be a non-nullable value type in order to use it as parameter 'T' in the generic type...

View Article

How to load an xml into a treeview then when clicked on an item shows in...

Hello,I'm having a problem when loading my xml to treeview. I want to load it in treeview correctlyand then when I cliick on an item it will show in the list viewHere is my xml<?xml version="1.0"...

View Article

Visual Studio 2010 C# - Help with pie chart design

Hey guys. I have a finished chart and was thinking about improving it so it would be much easier for the customer to read the information it shows.This is the chart I'm working on:...

View Article


Generic interfaces used as properties in abstract classes where derived...

I haven't found an answer to this, so I will pose the question...Assume that I have declared a generic interface such as this.  interface IStuff<T> {    void DoStuff(T item);    T GetStuff();...

View Article

Visual Studio Express mark entire folder to be put in the output directory

I am new to visual studios express, coming from an XCode background.I have a project with a giant folder of data files. I would like the entire folder to be copied into my output folder. However my...

View Article


GetDateTime and SQL Server 2008 data type

I am using a DbDataReader to call a stored procedure, this stored procedure pulls back a column whose Data type is "Time" in SQL server 2008.  The stored procedure is just a trivial select...

View Article

C# web application

I have a web application working in c#, however it does not look nice.can i some how use a other program to edit the look of my webpage but  still keep the working code? I have a .aspxand if so what it...

View Article


Can I run an existing Excel spreadsheet with C# controls? or Migrate to C# ?

HiIm trying to create a Financial app in C#.  It will have text boxes to enter values, slider controls to enter amounts and a button to start computing.  it outputs at least 1 graphwe have a working...

View Article

Uppercase a specific letter within a string value on sequence

I have a string, and I want to uppercase a letter on every next 5 letter. For example:string input = "welcome to america";and I want to have the output like the following:welcOme tO ameRicaPlease help!!!

View Article

How should I load a CSV file containing lookup data for one time run...

I wanted to post and get ideas on best practices for loading csv files for one time use in a C# application.I am currently writing a console application for file manipulation. The application will read...

View Article
Browsing all 31927 articles
Browse latest View live