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
  • Two JOINs in SQL

    database help question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Thanks a lot!!! Jerzy:)
  • XML files

    question database xml
    3
    0 Votes
    3 Posts
    0 Views
    M
    hmmm,thanks:):rose: Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
  • dllimport

    csharp c++ tutorial
    2
    0 Votes
    2 Posts
    0 Views
    M
    I think it's not bad to take a look at "managed C++" part, I think your answer is there. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
  • Problems on NT4

    help csharp tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Selecting from listbox with right mouse button

    question
    2
    0 Votes
    2 Posts
    0 Views
    S
    override the MouseDown Event from the ListBox Control: private void listBox_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if(e.Button != MouseButtons.Right) return; int nIndex = listBox.IndexFromPoint(new Point(e.X,e.Y)); if(nIndex != -1) listBox.SetSelected(nIndex,true); } Rgrds Martin
  • How to convert "string" to "int"?

    tutorial question
    6
    0 Votes
    6 Posts
    0 Views
    S
    for any conversation i use System.Convert. Example: string str = "555"; int i = System.Convert.ToInt32(str); (also you can use ToInt16(), ToInt64() ...) See System.Convert for additional Information. Rgrds Martin
  • How to store an object into a database?

    database help tutorial question
    4
    0 Votes
    4 Posts
    2 Views
    A
    Very nice! Andy Gaskell, MCSD MCDBA
  • How to store an object into a database?

    database help tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    A
    Very nice! Andy Gaskell, MCSD MCDBA
  • is there OMG IDL2cpp or IDL2C#?

    csharp c++ data-structures question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • **** The DataGrids! All of them!

    database com design xml performance
    6
    0 Votes
    6 Posts
    0 Views
    J
    Domenic [CPUA 0x1337] wrote: Ah, my code is way too messy anyway, it's prolly a good thing I'm redoing it. If its too messy its probably a good idea :) Personally I find myself redoing lots of code because it becomes difficult to discern what is going on. Domenic [CPUA 0x1337] wrote: So, does this sound like a good plan? I just iterate through the rows every time columnchanging is called, determine the valid ones, rebuild my data structure using those, and then rebuild my datagrid from my datastructure. Without knowing whats going on its hard to say what would be best. From what I know I would let the datatable do its job then pull the data out of it only when its needed. Handling the ColumnChanging/ColumnChanged events as needed for validation; then run a final validation with the RowChanging event to ensure that fields within a row are ok. Domenic [CPUA 0x1337] wrote: And how to decide between ColumnChanged and ColumnChanging? Here's a quote from the documentation. The ColumnChanging, RowChanging, and RowDeleting events are raised during the update process. You can use these events to validate data or perform other types of processing. Because the updates are in process during these events, you can cancel the update by throwing an exception, which prevents the change from being completed. For more information, see Data Validation in Datasets. The ColumnChanged, RowChanged, and RowDeleted events are notification events that are raised when the update has been completed successfully. These events are useful when you want to take further action based on a successful update. Hopefully you can get some idea where to go from here :) 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
  • Declarative Code Access Security

    csharp com security help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Accessing the shell

    csharp linux question
    7
    0 Votes
    7 Posts
    0 Views
    L
    Okay, now I understand. Depending on the operating system, you still have to write different code. Thank you very much for your remarks! Kind Regards, Ludwig
  • help in treeview needed

    data-structures help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    A
    try to get code from this book. chapter 13 - Programming C#. by Jesse Liberty Link for source code is in this web site. www.libertyassociates.com
  • Are ownerdrawn buttons available?

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    J
    This should give you a base to start from. using System; using System.Windows.Forms; namespace Namespace { public class MyButton : Button { public MyButton() : base() { SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true ); } protected override void OnPaint(PaintEventArgs e) { // Draw the button } } } 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
  • How to use SSL

    tutorial csharp c++ sysadmin algorithms
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • C# question

    csharp question c++
    5
    0 Votes
    5 Posts
    0 Views
    J
    Hehe lets hope so. It also seems that .NET server has it already and will have it. On my beta it has 'The .NET Framework' however I have not dabbled in that realm as of yet. .NET or not .NET? MFC is the question......
  • messages

    csharp c++ tutorial
    3
    0 Votes
    3 Posts
    0 Views
    W
    :-D thank you!! now i get the messages.
  • Magic Version 1.2 Released

    csharp visual-studio com design announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • FTP client

    question sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Popup styled window

    csharp docker question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied