April 19th, 2010, 08:04 AM
Is it possible to use preprocessor definitions in C# like we do in C and C++?
#define DEBUG
// ...
#ifdef DEBUG
Console.WriteLine("This is a debug message.");
#endif // #ifdef DEBUG
April 16th, 2010, 05:12 AM
Adding "public" keyword did not change anything.
April 15th, 2010, 09:30 AM
TcpClient.cs
namespace TCP_Communication
{
class TcpClient
{
// ...
public delegate void OnDataAvailable(char[] data);
// ...
}
}
April 6th, 2010, 07:31 AM
Thank you!
That worked for me too... :thumb:
April 5th, 2010, 07:22 AM
The entire text in the control is selected only if you focus the control by means of pressing the TAB key. The text is not selected if the control catches focus by mouse click.
April 5th, 2010, 07:03 AM
I want to make it selected, so that when user clicks on it he can immediately start typing new data without bothering to delete the old one, like in the web forms implemented by JavaScript.
Thanks...
April 5th, 2010, 06:53 AM
Thank you for your reply.
I put a break point inside txtIpB_OnFocus() to see that this method is indeed called when I focus on the control. And saw that the "txtIpB.Text" contains the string...
April 5th, 2010, 06:26 AM
Rather than, I found this solution and it works just fine:
http://msdn.microsoft.com/en-us/library/6w2tb12s%28VS.80%29.aspx
Title in page: To create an event handler in the Properties window
...
April 5th, 2010, 05:49 AM
Quick question about Visual Studio 2005 IDE.
When I double-click a control in the design window, the IDE automatically creates a method for the default control event. But what about tons of the...
December 24th, 2009, 04:47 PM
Yeah, it mysteriously works when I add the "static" keyword.
But why, what is the logic behind this?
December 24th, 2009, 04:10 AM
Error given :
IDE : MS Visual Studio 2005
GenericThread.h
#pragma once
#include <Windows.h>
class GenericThread
{