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 ArticleIMAP 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 Articletrying 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 Articleweird 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 ArticleOPC 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 ArticleC# 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 ArticleHow 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 ArticleEntity 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 ArticleWrapper 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 ArticleCannot 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 ArticleHow 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 Articleindex 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 Articlemicrosoft visual c# windows form application
difintion textbox1.text & lable1run time in textbox1 write 2+2 click enter, label1 add sumation
View ArticleExtract 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 Articlesave 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 ArticleHow 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 ArticleDoes 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 ArticleDisplay 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 ArticleGoogle 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 ArticleProblem 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