There are a million posts on here on how to convert a character to its ASCII value.
Well I want the complete opposite.
I have an ASCII value stored as an int and I want to display its ASCII character representation in a string.
i.e. please display the code to convert the int 65 to A.
What I have currently is String::Format("You typed '...
I'm currently writing an application that has a NotifyIcon and I'm trying to figure out a way to overlay text on to it. So for example, if the icon indicates the number of files open, it has the icon plus the number on top of it.
Is there a way to do that? I've seen instances of the NotifyIcon solely being text, SpeedFan for example.
...
Im trying to get debugging working without an app.config. I have the following code:
public static class Logging
{
private static ConsoleAppender GetConsoleAppender()
{
ConsoleAppender lAppender = new ConsoleAppender();
lAppender.Name = "Console";
lAppender.Layout = new log4net.Layout.PatternLayout("%date...
In short, what are the steps that one needs to take in order to modify the source of the connector and install it in Windows?
I have the MySQL Connector/.NET Version 6.1.2 installed on my machine, but I'm getting an exception for every DateTime with a value of '0000-00-00'. This exception breaks my application.
As I solution, I downlo...
I'd like to understand how to construct a parser in .NET to process source files. For example, maybe I could begin by learning how to parse SQL or HTML or CSS and then act on the results to be able to format them for readability or something similar.
Where can I learn how to do this? Are there specific books I can refer to? Do I need to...
So I have a registration free VB6 DLL referenced by my .NET 3.5 assembly library that's ultimately referenced by a .NET 3.5 WinForms application (not sure it's relevant, but included to paint a picture).
I am getting the error 'Problem isolating COM reference 'SomeVBDll': Registry key 'HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{dd1d7f5...
I'm looking for a complete list of built-in WPF Commands.
The best list I've found so far is here, but it does not list all commands.
Some nice-to-have details would be:
Controls/components with support to the commands (for example, TextBox supports edit commands such as Paste, Copy, Cut, Redo, and Undo);
Default Key Gestures and UI ...
Hello. I need to write a relatively small program to parse .net executables and generate the list of calls to external methods. For example if System.Console.WriteLine is called inside the file the tool should print that System.Console.WriteLine is called somewhere. I cannot (limited brain and time) and need not (all I need is a list of ...
I have a C# .NET app. This application is tightly coupled to a piece of hardware. Think ATM, drive up kiosk kinda thing. I want a way for my application to assure it is being run on our hardware. Our initial plan was to get the serial number of the CPU, OS, HD, or other hardware with WMI, digitally sign that, and ship that signature with...
I have this .NET application, which relies on deferred execution. When I am profiling it the methods that consume most time are those who enumerates the IEnumerables. Because of this I think that the methods that must be optimized are not in the Top Time Consuming methods.
Did it ever happened to you? How to profile an application corr...
Hi All,
I want to know is there any way to expire the viewstate after a particuler given time.
...
I'm having trouble executing a stored proc...
I've got C# code that tries to call the stored proc. It looks somewhat like this:
DataTable myDataTable = new DataTable();
using (SqlConnection connection = new SqlConnection(myConnectionString))
{
SqlCommand selectCommand = new SqlCommand("MyStoredProc", connection);
selectCommand...
Hello,
I'm playing around with the (MVVM) Model View View Model design pattern but I ran into a problem with the pattern. In my scenario I'm using a DataTable as the View Model. This View Model is set as the DataSource of a DataGridView. Normally, when the Presenter adds a new row to the View Model, a new row is added to the DataGridVie...
Question: Is it possible to create AdornerDecorator that takes only adorners I want to its adorner layer?
public class SimpleCircleBehavior : Behavior<TextBox>
{
private SimpleCircleAdorner sca;
protected override void OnAttached()
{
base.OnAttached();
AssociatedObject.Loaded += new RoutedEventHandler(Associa...
Is it possible to permanently and automagically have a library added for all my future projects? (in Visual Studio 2008)
...
I was thinking about moving from ASMX to WCF to implement web services. One thing that was sometimes very practical with ASMX web services is the fact that you can simply enter the URL of the asmx-file in a web browser and you get a simple user interface that allows you to call the web methods directly from the browser, e.g. for testing/...
Probably staying late fixing a few bugs tonight, but maybe SO can help me out. Does anyone know if there's a way to 'track' where some ignored exceptions are occurring?
Basically I'm finding some System.OverflowExceptions in System.Drawing which are causing some graphics to not get painted (red X box syndrome).
Problem is, I can only ...
I notice that there are a number of different events I can capture when I'm working with a Windows Form in .NET (or any other control, for that matter) - on opening, there's:
Load
Activated
Shown
VisibleChanged
And when closing, there's:
Leave
FormClosed
FormClosing
Disposed
Plus any others I've missed. I know I could put a messa...
What would be the best way to secure .net web services used by a flex application (both desktop and browser) that requires login?
I thought about requesting the user and password in every method of the web service, and having them stored as variables in the flex app, but I don't feel like this is the most elegant way.
suggestions?
tha...
Ok, so the base problem is in setting the innerHTML of a div element, any html markup that is in my string is being stripped (and not displayed) in all major browsers except for Firefox. Now for the catch, this doesn't happen when the page is first loaded, it only happens on a partial postback (unless its Firefox, then it always works)....