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

directoryinfo.getfiles return 0 elements

In my process, i use the following codeDirectoryInfo dir = new DirectoryInfo(path); // path is a network path        FileInfo[] files = dir.GetFiles(".xls");actually there are 2 .xls files in that...

View Article


设置断点与否会影响性能计数器的值?

大家好,有个问题困扰我一下午了:我通过如下代码从性能计数器读取处理器的工作时间。 PerformanceCounter counter = new PerformanceCounter() { CategoryName = “Processor”, CounterName = “% Processor Time”, InstanceName = “_Total” }; var value =...

View Article


Image may be NSFW.
Clik here to view.

How to get network adaptor Flow Control value through WMI or any C# class?

Hi, How to find flow control value through WMI or C# class shown in image?  

View Article

Start programming with C# and Visual studio

Hi,I am new to programming. Got some vague indications of which programs I needed to download from our teacher. Tried couple of times and it just wont work out. Searched info online- still cant figure...

View Article

how to add child node to xml?

Hi, I've got a ribbon.xml, and after "menu", I would like to add button node with its attributes: <button id="button4" label="button4" showImage="false" />. this is my xml:<?xml version="1.0"...

View Article


When searching Active Directory account,...

Hi, I am getting same error when i search for LDAP users in AD. If I restrict the DirectorySearcher.SizeLimit = 1, then i am getting the result (1 result returned). But when I increase the SizeLimit...

View Article

Unable to find the requested .Net Framework Data Provider. It may not be...

After deploy the program and run, got this error when save data with entity framework for MySQLthe only difference from development machine is development machine has MySQL Workbench 5.2New Begining

View Article

fire HTML Radio Buton Event from my windows form but Jquery fails to load Dom

Having 2 RadioButtons and 2 TextBox on my windows form such as rdbMale and rdbFemale , txtMale ,txtFemale sililar way the same Radio Button and TextBox on my HTML page. At Html page I use some Jquery...

View Article


Static Dictionary Initalization from a static array

I have a static array built from an enum, I would like to set up a static dictionary that uses the values in the array and returns the indexusing System.Collections;using...

View Article


max size xml serialize can handle

I have a csv file with lots of data (1 million lines), the file size is 150MB. I want to upload the data in file to a server via http post I will create an object (of type MyDataType)  The object has a...

View Article

Image may be NSFW.
Clik here to view.

Data Report Merge Data Cells?

class Service    {        public int Hour { get; set; }        public int Minute { get; set; }        public string Driver { get; set; }        public DateTime Date { get; set; }        public TimeSpan...

View Article

where do I start and in which order

HelloI am a complete novice to web programmingPlease clarify my doubts1) HTML is a markup langyage to create HTML web pages?2) We have HTML events / methods properties to manipulate the contents of an...

View Article

FTPS - .Net FTPWebRequest supports Implicit SSL or not?

I am sure , it supports Explicit SSL. Just wanted to know about implicit SSL.

View Article


APPCRASH, Fault Module Name: KERNELBASE.dll

I had this application which can run smoothly in Win XP OS, but with the Win 7 OS, it has the error below: Problem signature:  Problem Event Name:APPCRASH  Application Name:TPUMonitorSystem.exe...

View Article

The type or namespace name 'InnerText' could not be found (are you missing a...

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml;...

View Article


Unsubscribing from a custom event accessor

I have the below sample code. When I unsubscribe from the Onchange event. My anonymous method still handles the event. What is the proper way to unsubscribe from the defined event below?using...

View Article

What are the standard Display settings for a C# Application? Display?...

There's a minor debate here as to what resolution and Display settings we should set for programming a C# Web Application. We have a mix of Windows XP and Windows 7 clients that we're dealing with.Can...

View Article


Same object, different namespace, calling the same function

Hello forum,I cant seem to figure out a more efficient way to do this.  I have three classes, same objects, but different namespaces, and I need to map first two classes to the third class which will...

View Article

Using Microsoft Visual Studio to create a C# Windows Forms Application

So I have now successfully created my first C# Windows Forms Application. I did so using Microsoft Visual C# 2010 Express. Can I begin using Microsoft Visual Studio to create and maintain a C# Windows...

View Article

Microsoft.Xna error

this is the error I am getting"FrameworkDispatcher.Update has not been called. Regular FrameworkDispatcher.Update calls are necessary for fire and forget sound effects and framework events to function...

View Article
Browsing all 31927 articles
Browse latest View live


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