Search results for query: *

  1. C

    Arrow keys and button focus

    Thanks guys. I remember seeing this article before here, and thinking "yeah, indeed rather more than I want to know" :D If ProcessDialogKey does not provide a solution I may have to study it yet. Or maybe do that anyway.
  2. C

    Arrow keys and button focus

    That sound much more attractive to me ! I'll try it out. Thanks again.
  3. C

    Arrow keys and button focus

    Thanks, that looks very interesting. Although I was rather hoping not to have to go into these intricacies and bother with Windows messages.... I thought there might perhaps be some setting in the form or buttons that would prevent this ?
  4. C

    Arrow keys and button focus

    This is probably an easy question, and possibly a stupid one... but I've been searching and could not find an answer. When I have a form with a number of buttons, pressing the arrow keys cycles through the buttons, giving each one of them focus in turn. How can I prevent that ? I want to use the...
  5. C

    Resolved Convert true/false bool to letters/text output

    My bad, I should have checked that (having been bitten by it myself). Thanks for correcting.
  6. C

    Resolved Convert true/false bool to letters/text output

    In the first snippet, you are indeed comparing a string with a character. The 'Y' should be "Y". In the second snippet, you should use parentheses around the ternary expression: But note that this is much better written using string interpolation :
  7. C

    Resolved Waiting for any of a set of buttons to be clicked

    Ha ! Brilliant ! Ditching the sacred loop is something that had never occurred to me 💡 That looks absolutely the way to go here. Many thanks for the idea !!!
  8. C

    Resolved Waiting for any of a set of buttons to be clicked

    I have a WinForms program that loops thru a list of images. For each image, a form pops up with buttons for several choices what to do with the image. Originally that form was a separate dialog, which worked fine. But now I had the idea to move all that functionality (including said buttons) to...
  9. C

    Scrolling picture in panel

    I know. It usually works fine for me and I'm too old and too lazy to change my ways 😁 Actually Visual Studio 2022 seems to use it too, at least in the forms editor - the form won't scroll until you release the mouse.
  10. C

    Scrolling picture in panel

    Yes, those halcyon days. Actually this is atrocious behavior, especially if you have a large image in a small panel. I was really hoping there would be some setting for this, but I guess I'll need to about programming it myself.
  11. C

    Scrolling picture in panel

    I have a PictureBox in a Panel with scrollbars. I can scroll the picture fine but it annoys me that the picture does not move along while dragging the scrollbar. It only changes position when I release the mouse button. Would there be a simple solution for this ?
  12. C

    Question Layered graphics vs. flickering ?

    That works most beautifully, plus it made my program so much less complicated. Thanks again.
  13. C

    Question Layered graphics vs. flickering ?

    That looks like just what I need. Thanks !
  14. C

    Question Layered graphics vs. flickering ?

    I half suspected that, seeing that it's only defined on the form level. Thought it was worth a try nonetheless 🙂
  15. C

    Question Layered graphics vs. flickering ?

    I was having fun with programming an analog clock, but one thing I can't work out is how to avoid flickering. When e.g. the second hand moves forward one second, I first need to erase the previous position of the second hand before drawing the new position. I had that programmed nicely, but...
  16. C

    Question Simple Snake Game - Snake Head is not moving after ReadKey()

    And also on C# Corner and Microsoft Q&A... This is certainly one guy I'll never again bother to respond to.
  17. C

    How to set shortcut to write simple code?!

    I can recommend AutoHotKey (AHK). It is very powerful and versatile, and comes with tons of functionality allowing you to do almost anything, in any program, with one keystroke. Sheesh.… I sound like a sales rep 😁 But really I'm not, just a long-standing happy user.
  18. C

    Question Simple Snake Game - Snake Head is not moving after ReadKey()

    Anyway on both forums the OP does not show any reaction so I guess they are not really interested in any suggestions 🙄
  19. C

    Question Simple Snake Game - Snake Head is not moving after ReadKey()

    Yes I know what the true parameter is for. And so was very surprised that it was blocking - I had a breakpoint on the next line which I wasn't hitting until enter was pressed. Having removed the flag it worked right away, so I blithely assumed it was some side effect of the flag (a bug maybe)...
  20. C

    How to modify the size of a form while keeping the content ?

    That form is very spaced out to start with, wasting a lot of screen space. By resizing and rearranging all the components you could reduce the dimensions by 40% or even 50%, perhaps removing the need to make it smaller ? Of course you can make it fully responsive by anchoring/docking etc. but I...
Back
Top Bottom