Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hkBattousai

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    2,798

    Preprocessor definitions in C#

    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
  2. Replies
    3
    Views
    2,495

    Re: Cannot create/invoke delegate

    Adding "public" keyword did not change anything.
  3. Replies
    3
    Views
    2,495

    Cannot create/invoke delegate

    TcpClient.cs
    namespace TCP_Communication
    {
    class TcpClient
    {
    // ...
    public delegate void OnDataAvailable(char[] data);
    // ...
    }
    }
  4. Replies
    5
    Views
    12,623

    Re: Resize Label on Form

    Thank you!
    That worked for me too... :thumb:
  5. Re: How to add "OnFocus" event in Visual Studio 2005

    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.
  6. Re: How to add "OnFocus" event in Visual Studio 2005

    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...
  7. Re: How to add "OnFocus" event in Visual Studio 2005

    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...
  8. Re: How to add "OnFocus" event in Visual Studio 2005

    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
    ...
  9. How to add "OnFocus" event in Visual Studio 2005

    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...
  10. Replies
    3
    Views
    1,285

    Re: My thread class not working

    Yeah, it mysteriously works when I add the "static" keyword.
    But why, what is the logic behind this?
  11. Replies
    3
    Views
    1,285

    My thread class not working

    Error given :

    IDE : MS Visual Studio 2005

    GenericThread.h
    #pragma once
    #include <Windows.h>

    class GenericThread
    {
Results 1 to 11 of 11


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center