How to capture Location of points on form minimise - Chart control
I have a query in Win Forms.I'm using microsoft chart control for displaying some set of points.When user mouse over the point, I'm capturing x,y position and I'm drawing lines on the screen from the...
View ArticleThread synchronization & signaling
what is thread synchronization and what thread signaling. if possible explain in easy way with example.here i am pasting code.class SimpleWaitPulse { static readonly object _locker = new object();...
View ArticleTriangular error sample code XAML user control.
I have a compound button - image with text as a user control- just based on the beginners sample at http://wpftutorial.net/WPFIntroduction.html.When I drag the user control to the mainWindow/xaml is...
View ArticleVirtual Desktop delete issue
Hi All,I am using Win32 desktop API's to make use of virtual desktop on windows machine.Desktop methods which I am using in my program are:CreateDesktopCloseDesktopSwitchDesktopOpenDesktopI am...
View ArticleHow to get generic list
I would to build a function which should return a collection of childen with given type:repetitive code like thisIEnumerable<ComboBox> collection = panel.Children.OfType<ComboBox>();...
View ArticleRestore windows minimized at startup
An application has many windows that are minimized on startup. If one hovers on the taskbar application icon, a popup list of windows for the application appears (as expected). Windows that are visible...
View Articlequesioning the value of the text of a button control [ if (button1.Text =...
how could the text value of a control be used in an if statment likeif (button1.text = "Start") { button1.text = "Stop"; }else { button1.text = "Start"; }
View ArticleConfused about the difference between thread pool and background thread
what is thread pool ? is it background thread ?what is the difference between thread pool and background thread ?please explain with sample situation that when to use thread pool and when we should...
View ArticleMembership Services
I was just wondering if Microsoft has ended, or isn't working on Membership Services anymore... I am building a new web application, but it appears that all of the ASP.Net Configuration tools I used...
View ArticleFileSystemWatcher windows service not firing on Windows Server 2008 R2
FileSystemWatcher service works fine on my local computer but not on a Winsows Server 2008 R2. Nothing is being logged in the event logs, however, they do tell me that service is running.Any pointers...
View ArticleNeed Explanation of following Code
Hi Guys,I need explanation of the following code , Can please help me in learning it var product1 = new Lazy<_Default>(() => new _Default { ID = 1, product = "TV" });Thank you
View ArticleTo initialize InArgument with default values
HiIn my application im using a variablea= InArgument<IList<double>>().How can i initialize 'a' with a set of initial/default values
View ArticleWhat Using Statement defines a "Page" object
The statements Page pg = new Page();pg.Draw()is failing in my program and I cannot find the "Using" statement that will make "Page" a valid object.Could someone please point me to the correct...
View ArticleBattery Status
Hello,I am developing an app to determine battery status, I just want to know which field value is changed when battery is full charged. I am using WIN32_Battery class. Referred to...
View ArticleRun C# statement Based Off of SQL Server Field Value
I have a SQL Server Table that contains a value of either 0 or -1. And I have a C# statement set to read like so. BUT it didn't execute and I was curious if it's becauause I have my C# code set to be...
View ArticleHomework Help in C# for dual-form program including a listbox and a text file...
If I show you code (well, I'll show you the Class code), it would have to be the class, the main form, and the short form--basically, too much. So, let me lay out the problem and then tell you what...
View Articlehow can i get images from a folder in C#?
hello i have created a form in C# having a browse button through which user can browse the system for images. i want to get only images of any type from the folder selected be user from system and i...
View ArticleDo...While not functioning as expected.
Here is my code: 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;...
View ArticleSigning assembly
Hello,I have a c# solution developed in visual studio 2010(consists dll and gui) which has been signed using strong key. When i build the same no error occurs. But when I try to run the gui it is...
View Article