Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

adfgh75

@adfgh75
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is this a bug in .NET 2.0?
    A adfgh75

    Well yes, I have set KeyPreview to true on the form (and breakpoints to trace the event)and it still doesn't throw any KeyDown event when when I press the arrow keys, but it throws it when I press any other key. If I let the class inherit from Panel instead of UserControl or Control it works perfect. However I've discovered that if I override the ProcessCmdKey() function in the form and process the key pressed there instead it will work.

    .NET

    C# help csharp question

  • Is this a bug in .NET 2.0?
    A adfgh75

    I'm developing an windows application in .NET 2.0 where the user is supposed to navigate around the application using the arrow keys(I'm using KeyDown event to handle user key input). My problem is that I want to use UserControls in my application but whenever I add my UserControls to my windows form the form don't recieve any KeyDown events when I press the arrows keys, however it reacts to any other keys being pressed! Is this a bug and is there another way to do this? Thanks

    Vester

    C# help csharp question

  • How to run a method from codebehind when clicking on a
    A adfgh75

    For the help.. A.V

    ASP.NET question csharp java asp-net tutorial

  • How to run a method from codebehind when clicking on a
    A adfgh75

    I am quite new to ASP.NET and hope that there is an easy answer to my question.. My question is how can I access an function from codeBehind when I click on a

    in my application? I have a

    tag and when I click on the tag I want to run a function from codebehind to do some calulationes and then redirect the user to a new web page. However the onclick event för the

    tag is only for client side java scripts. Does anyone have a good answer? A.V

    ASP.NET question csharp java asp-net tutorial

  • How can I see if LeftShift or RightShift was pressed?
    A adfgh75

    It worked perfectly! Thanks! -A

    C# question csharp help

  • How can I see if LeftShift or RightShift was pressed?
    A adfgh75

    I'm developing a C# application where I need to find out if the left shift key has been pressed down or the right shift key. I've tried to use the KeyDown event with the following code: private void KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if(e.Control && (e.KeyCode == Keys.D1) && (e.KeyCode == Keys.LShiftKey)) { //Do stuff here } } I can read the keypresses but I can not see if the left shift key is pressed, only that a shift key was pressed. The e.KeyCode == Keys.LShiftKey doesn't work since it seems that KeyCode don't collect info about which shift that was pressed. Any help appreciated! Thaks! Andrew

    C# question csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups