Skip to content

C#

C# discussions

This category can be followed from the open social web via the handle c-065f1d12@forum.codeproject.com

93.7k Topics 383.1k Posts
  • Databinding and xml

    c++ docker xml tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • C# - my first stupid question

    question csharp
    7
    0 Votes
    7 Posts
    0 Views
    C
    Thanks - it seems the way I added the file did not make it part of the proejct, I did the exact same thing this morning, but added the class by right clicking in the class view and it all worked fine. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
  • @#$%(#($ Microsoft and GDI+

    graphics csharp css winforms data-structures
    5
    0 Votes
    5 Posts
    0 Views
    C
    Yes, while I imagine Get/SetPixl is not as slow as under GDI, there is at least the overhead of the function calls per pixel. I'd be happy if they just gave me the data in an array and left it up to me to keep track of where I was, and which was blue, green, red. While I'm on that, why does GDI+ have me specify 24BitRGB, but I get back 24BitBGR ? I know BGR is windows internal format, but why not make the flag that then ? Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
  • C# vs VB.NET. Facts not opinions please :)

    csharp question visual-studio com
    4
    0 Votes
    4 Posts
    0 Views
    J
    David Wengier wrote: I guess the first question is can you do either of these C# has overloaded the += and -= operators for events so that you can add and remove event handlers at runtime. This is also the only way that C# lets you add event handlers. The AddHandler statement that you see in VB is VB specific and is part of the VB.NET language. However if you can get access to the underlying EventHandlerList there is an AddHandler method on that you can use. An Events property of type EventHandlerList is exposed on the System.ComponentModel.Component class and its derivatives as well as the System.Web.UI.Control class. David Wengier wrote: Are there things that one does that the other doesnt? VB lets you assign events with the Handles keyword; it is also easier to do Late Binding with VB but you can accomplish the same with some Reflection in C# (or any .NET language). C# lets you overload operators, and create/use indexers (a property on a class so that you can treat an instance of the class like an array ie foo[3]). Someone on the DOTNET list noticed that the IL that VB.NET produces has a lot of NOPs in its code generation. While it makes the IL a little bit bigger the JIT will compile those away to nothing. HTH, James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
  • Memory usage API in C#

    csharp json performance
    3
    0 Votes
    3 Posts
    0 Views
    E
    So what namespaces are these in? Still haven't gotten my mind around which namespaces apply to which type of info.
  • Byte representation of integer

    question
    2
    0 Votes
    2 Posts
    0 Views
    S
    int iValue = 500; byte byte0 = iValue; // byte0 is 0xF4 byte byte1 = iValue >> 8; // byte1 is 0x01 byte byte2 = iValue >> 16; // byte2 is 0x00 byte byte3 = iValue >> 24; // byte3 is 0x00
  • Custom Controls for ProgressBar

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Update status of toolbar buttons

    question announcement
    2
    0 Votes
    2 Posts
    0 Views
    J
    A toolbar is displayed at all times so you should update it when you need to (ie the button should change state when the button's representive action has changed state). It makes sense to update a menu in the popup event because the menu isn't always displayed. HTH, James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
  • PE (Portable Executable)

    csharp question discussion
    4
    0 Votes
    4 Posts
    1 Views
    N
    No. I vote pro drink :beer:
  • How to pronounce C#?

    csharp tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    C
    Larry Antram wrote: "C Sharp" Or, for the musically inclined, "D Flat" Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
  • Icon IDs for Imagelist

    question csharp
    3
    0 Votes
    3 Posts
    0 Views
    K
    I want to specify IDs, not file path.
  • Id like some help please....

    csharp help announcement
    5
    0 Votes
    5 Posts
    0 Views
    A
    I got the same problem. you need to have .NET on target machine. http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml. try to download this and have fun. - Anand :)
  • Deploying C# Application?

    tutorial csharp sysadmin help question
    4
    0 Votes
    4 Posts
    0 Views
    J
    It sounds like the target machine doesn't have the .NET runtime installed. You can get the redistributable from this MSDN download page. James Sonork ID: 100.11138 - Hasaki "Smile your little smile, take some tea with me awhile. And every day we'll turn another page. Behind our glass we'll sit and look at our ever-open book, One brown mouse sitting in a cage." "One Brown Mouse" from Heavy Horses, Jethro Tull 1978
  • C# Documentation Tool

    csharp html xml help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • C#'s xsd don't work!

    csharp xml database json question
    3
    0 Votes
    3 Posts
    0 Views
    L
    test.xsd user.xsd
  • DHTML control in windows.forms?

    csharp question visual-studio winforms design
    3
    0 Votes
    3 Posts
    0 Views
    L
    yeah, i find the PropertyGrid now! it's very helpful to change the control's property at runtime. Thanks!
  • COM Interop

    com csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • P4W

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • .Net Book Store

    csharp com announcement learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Calling method on other form dynamically

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied