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

Property handler stuck (C#)

Hello,I am trying to make a simple property handler and I got to a dead point. This is the simplest code I could come up with:using System; using System.Runtime.InteropServices; using...

View Article


IMAP internal date issue

Hi,I am using IMAP command to download the Yahoo mails.Mails got download successfully.But there is a 4 hours difference between the date shown by yahoo and the downloaded date.Date shown by...

View Article


Image may be NSFW.
Clik here to view.

trying to grasp Lambda usage - can I run this function from a Lambda (simple...

I am trying to grasp Lambda usage and put together a very simple winform test app that copies the content of one textbox to another textbox and adds a little bit of additional text from a button click...

View Article

Image may be NSFW.
Clik here to view.

weird errors that should not be there

ok i have this class in  another project that I am working on and it works with out any error...now I am trying to turn this class into a service and out of no where I am getting 3 errors...

View Article

OPC fundation API raw data

I can only seem to pull data for one hour past the current time. so if it is 9:00 pm, i can only pull data from about 8 to 9. but I know i have way more data in my Hda... I have another problem where I...

View Article


C# console application does not terminate in command window when lost focus.

Hi,I have developed a console application in c#. When I invoke developed command in command window and minimise it to work on other window (so command window lost focus), I notices command executes...

View Article

How can I get HotSpot and Size of mouse cursor in C#?

Hi dudes, how can I get HotSpot and Size values of any mouse cursor, globally?Following code works only in my own application:Cursor.Current.HotSpot.ToString();Tip for Windows API?

View Article

Entity Framework Error: Method not found: 'System.Data.Objects.ObjectContext...

Today my 'manage NuGet packages'  updated my EntityFramework in one of the projects and since then I am getting following error message whenever I try to login with the credentials (user Login). I am...

View Article


Wrapper Class

I'm a novice (so please be gentle with me!).I've come across a wrapper class for using huge integers (multi-millions of digits).The class is from Emil Stefanov. Apparently there is a pretty standard...

View Article


Image may be NSFW.
Clik here to view.

Cannot use Xml classes in a Coded UI Test project in Visual Studio 2013 premium

Hi, I am working on a Coded UI Test project using Visual Studio 2013 Premium with .NET4.5. However, even I added "using System.Xml;" namespace, in the source code, I cannot access any Xml class, such...

View Article

How to use AssemblyKeyContainerName

How do I specify in the project properties that I want to sign assembly using key container instead of key file? There is AssemblyKeyContainerName property, but it does not seem to be used anywhere. Is...

View Article

index was out of range error when insert the data to cell in datagridview

hi, i was trying to send the data to datagridview column once i get the true value from a condition. but the error i get was index was out of range. what happen to my code...

View Article

microsoft visual c# windows form application

difintion textbox1.text & lable1run time in textbox1 write 2+2 click enter, label1 add sumation 

View Article


Extract out only certain rows of text from a text file

say with the given text file, as here.. Date SystemType Testtime Waittime Systemtime Utilisation (%) Utilisation (%) (Test, System time) (Test, Wait, System time) ========== ========== ========...

View Article

save and load from and to a textfile c#

I am wondering can anyone please tell me how to save from a listBox to a text file and load it back in again or to another in wpf form in c#.net, can anyone tell me whats wrong. Thanks...

View Article


How to create drag and drop web or desktop application ?

Hi,I need to create web or desktop application where the user can drag and drop items and draw flow chart like Visio charts.Is it possible with any framework, technology or library ??Thanks,

View Article

Image may be NSFW.
Clik here to view.

Does C# AsyncCallback creates a new thread?

I have written an HttpListener which listens on one of the ports:httpListener.BeginGetContext(new AsyncCallback(ListenerCallback), httpListener); The ListenerCallback handles any request that is...

View Article


Display progressbar and percentage (%) while querying a database

when querying a database, I wish to display the progressbar and its percentage (10% interval till 100%) of completion.How do I implement it? I refer to...

View Article

Google or Yahoo API for Stock Data

I'm wondering if someone here knows where I can find a good tutorial that shows how to use an API (Google or Yahoo) or get stock data using C#.NET.  I need something that explains how the overall...

View Article

Problem with protocol

Hi, With these codes MailMessage message = new MailMessage(); message.From = new MailAddress("Administrator@my-friend.co"); message.To.Add("peterchen@gmail.com"); message.Subject = "test message";...

View Article
Browsing all 31927 articles
Browse latest View live


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