I need to build a Windows control that displays KPI indicators. Something similar to the one displayed at the following picture.
There are also the following requirements:
List needs to refresh from a background thread every ~15 seconds
It needs to handle 100+ indicators
My initial idea was to use FlowLayoutPanel with a combinatio...
Hi there,
I have some C# code, the server app, that access a WCF service, thE client app, using a WCF service hosted in the client app
WheN the server connects to the client it uses a DuplexChannelFactory and passed in an instance of a class to be used for the client to talk back to the server
The client is a singleton i.e.
[Service...
Maybe I'm thinking about this the wrong way but here's the idea:
Class A gets, as part of it's constructor, a pointer to class B and saves that pointer in a private variable. Class B exposes a public function, F. I'd like for class A and all classes that inherit from class A to NOT be able to call B.F.
The idea is that class A will i...
Exist any ADO.NET Provider for access to the windows registry? Or rather you can use ADO to connect to the windows registry?
Thanks in advance.
...
I need to get all controls inside a specific RowDefinition/ColumnDefinition without iterating through all controls in a container.
Any tip? Thanks.
...
I'm learning Silverlight and am trying to ingest some new concepts. Just so I understand, is the data binding feature found in Silverlight part of Silverlight itself? Or is part of the underlying .NET framework itself?
...
Hi guys
Just wondering if anyone has any ideas on how we can style templates... Like if I want to change the MaxLength of a textbox how do I go about doing this.
What I would like to be able to do is something like what I can do in WPF with styles and templates... In WPF you can pass through styles to the templates and then choose whe...
Hi,
I was wondering whether or not I can extend the Enum type in C# to implement my custom Enum.GetValues(type) and call it like Enum.GetMyCustomValues(type)
I am trying to implement something like this:
public static bool IsFlagSet<T>(this T value, T flag) where T : Enum
{
return (value & flag) != (T)0;
}
but it cannot be done....
So I run this Windows Server 2008 security update and this code block is now throwing an error:
using(MemoryStream ms = new MemoryStream())
{
xslt.Transform(navigableSet, xslArgs, ms);
ms.Position = 0;
ret = new XPathDocument(ms);
}
return ret;
The error is EXCEPTION [System]: The remote server returned an error: (503) Ser...
Hi,
Say if i had the following interface mocked in (NMock). How could i check that email.Subject = 'xyz' ?
Currently im doing something like
IEmailService s = mocks.NewMock<IEmailService>();
Expect.Once.On(s).Method("Send").With(?????)
s.Send(new Email { Subject = 'rarr' });
mocks.Verify...();
interface EmailService { void SendEm...
In my A-Level project I have all the record info stored in an MS Access database file. I'm just wondering, can I bundle this file with the software and not require the computer the software is running on to have MS Access installed?
The reason I ask is that if finished, this program will be ran on my college network to handle room booki...
There have been several questions over the past few days about the proper use of null; here are three (one is mine):
Best Practice: Should functions return null or an empty object?
null objects vs. empty objects
how do i explain that if (xyz == null) checks are not “protective”.
While reading and thinking about this issue, the though...
I want to create a PNG file from a System.Drawing.Bitmap with the colours defined using CMYK.
I can create the PNG OK but how do I define 'with CMYK' ?
I've looked at the encoderparameters argument to the save method but it seems to me they don't cover what I need ?
Any pointers/samples appreciated.
thanks
...
I want to have a NotifyIcon in the system tray that when clicked, opens a context menu on the NotifyIcon with several options that open different forms.
I have read I need to use a ContextMenu and after Google'ing and trying out various code I can't seem to get it working :/
Any help on the matter is greatly appreicated.
...
I am converting a .NET 1.1 ASP.NET web project to .NET 3.5 in VS 2008. The conversion ran without any errors. However, when I open up a code-behind file for an aspx page, the lines of code that reference controls on the page are not being recognized as existing. I looked at a brand new .NET 3.5 Web Application and all the aspx files h...
Hi
I am looking for some way to consistently test a .Net windows app i am working on, I need to be able to test the GUI and not so much the business logic. Any suggestions welcome.
...
I have a method Foo4 that accepts a parameter of the type Func<>. If I pass a parameter of anonymous type , I get no error. But if I create and pass an object of the type 'delegate' that references to a Method with correct signature, I get compiler error. I am not able to understand why I am getting error in this case.
class Learn6
...
Hi All,
could you please give me some information For how to develop an application/Service for iPhone/Smart phone to restrict Texting in device if it is in Motion of 10MPH speed.
Thanks in Advance.
Bhramar
...
In C# 3.5 System.Speech.dll was added for doing text-to-speech and speech-to-text conversions. Searching on the internet I've found a few blog posts about getting started, but are there any good resources for learning more about this technology? (Other than the obligatory MSDN documentation.)
...
Hai every one
I am developing an windows application in which i have to block the removable storage devices such as pendrives.I found that its possible by changing the registry value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor,start value to 4.But the problem is I have to block it on remote systems too.Can any one sug...