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
  • problems getting a timer to work

    csharp help question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Thanks James, that did the trick.
  • Windows Form Help Application

    database help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Visio with c#

    csharp tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • IP Address in .NET

    csharp question help
    2
    0 Votes
    2 Posts
    0 Views
    J
    Never mind. I found it.
  • trap arrow keys in usercontrol

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Look at the IsInputKey protected method on the usercontrol. protected override bool IsInputKey(Keys keyData) { // Arrow keys are not considered input keys for this control, // need to override this method to make them so if (keyData == Keys.Left || keyData == Keys.Right || keyData == Keys.Up || keyData == Keys.Down) return true; else return base.IsInputKey(keyData); } Then I think the OnKey* events will fire for it, the docs aren't too clear on that aspect. Your control will have to have the UIPermission.AllWindows security permission to run that code however. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • XP style controls

    csharp question
    7
    0 Votes
    7 Posts
    0 Views
    L
    Thanks for that info James and Mazdak!!! :-D pointed me in the right direction. Anyway for anyone who is still having problems displaying XP style controls. i found the following site on msdn useful. http://msdn.microsoft.com/library/?url=/library/en-us/dv\_vbvcstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp?frame=true Kenbloke
  • Preserving dynamic controls across postbacks

    help question asp-net
    2
    0 Votes
    2 Posts
    0 Views
    J
    Try searching the DOTNET mailing list archives; here is one post that might help a little bit, though I could have sworn I've seen more similar to what you're trying to find. Sorry I can't be of more help, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • how to get the address of a managed type

    csharp help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    P
    Like this: SomeObject obj = new SomeObject(); Component1.Prop1 = obj; Component2.Prop2 = obj; All objects are refered to through "object references". You can freely pass this object reference to any part of your system. -- Peter Stephens
  • Which C# version to use?

    csharp visual-studio question announcement beta-testing
    4
    0 Votes
    4 Posts
    0 Views
    M
    Yes,I think for begining,it is not necessary to upgrade:) Travis D. Mathison wrote: --- After three days without programming, life becomes meaningless ... nice:) Mazy You can find a solution (even a foolish one) for all problems (even big ones)
  • Use win32 DLL with C#

    csharp debugging help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • printing

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • textbox size change!

    5
    0 Votes
    5 Posts
    0 Views
    M
    Thanks James,I found it :-D Mazy You can find a solution (even a foolish one) for all problems (even big ones)
  • How do I use ParseControl?

    help question design
    7
    0 Votes
    7 Posts
    1 Views
    L
    Thanks for all the help!! ParseControl now works perfectly :-)
  • a public class... for what?

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    P
    "public" is contrasted with "internal". public classes can be accessed outside of the assembly that contains them. internal classes can only be accessed by other classes in the same assembly. -- Peter Stephens
  • Problem/bug in .net class library

    help csharp question
    4
    0 Votes
    4 Posts
    0 Views
    L
    I found the solution to my managed C++ problem. I had to add a #using <System.dll> to the program. Stupid newbie mistake... :)
  • Jag Arrays again, sorry

    question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Assuming test is your array and the data stored in the particular row you want is a string. ((string[]) test[myrow]).Length; HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • Jag Arrays

    data-structures question
    5
    0 Votes
    5 Posts
    0 Views
    L
    Thanks a bunch guys :)
  • Sockets

    csharp sysadmin tutorial question workspace
    2
    0 Votes
    2 Posts
    0 Views
    J
    I don't think there is a pure .NET way to do this. You'll have to use p/invoke and call into some system dlls (winsock2?) to get the information. I don't have any experience with winsock to know where to look though. James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • The Final Version

    csharp help visual-studio question announcement
    3
    0 Votes
    3 Posts
    0 Views
    F
    Hi James Thanks a lot It worked after using the tool to convert the .resx files:)
  • Remove title bar

    question winforms
    2
    0 Votes
    2 Posts
    0 Views
    J
    myform.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; This works on a form with default settings. James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002