Search results

  1. JohnH

    Picturebox events

    It sound really complicated to me, and I can't imaging the code flow here, anyway you must never block UI thread. I don't see why you would try to print a PictureBox, its purpose is to show an Image, surely it is the image that you would want to print? This is done with DrawImage method of...
  2. JohnH

    Picturebox events

    Do you think it is wise to use this in UI thread? No, my suggestion was that you use LoadCompleted event handler to signal your processing that you say need to wait for LoadCompleted to happen. It is your processing thread that needs to wait.
  3. JohnH

    detect if certain image on screen

    Thread split, post doesn't pertain to original thread.
  4. JohnH

    parameter must be positive and < height

    Thread split, post doesn't pertain to original (and very old) thread.
  5. JohnH

    Picturebox events

    You shouldn't do any processing in UI thread that may take more than a split second, use a background thread for that. Use for example a AutoResetEvent to signal the worker thread that it can continue when LoadComplete happens.
  6. JohnH

    Picturebox events

    Your Do-loop will block UI thread, so there will be no room for LoadCompleted to report back. Why not start print from LoadCompleted ?
  7. JohnH

    programmer (?) cars :)

    I had no idea what dump valves was. We do have roads! South-western part, the milder climate area of Norway, if one can call it that :) We don't see much snow unless we drive a couple of hours to the mountains during winter. The quattro drive is very nice when there is snow though.
  8. JohnH

    programmer (?) cars :)

    Most of what you mentioned for the A4 is included in s-line I think, also including sporty bumpers and side skirts, leather sport seats, and a lowered and stiffer suspension, but excluding neon lights and high rise spoiler - that I'm far too old for anyway. Norway also has strict rules for car...
  9. JohnH

    programmer (?) cars :)

    Yes, it looks like that, no particular extras besides s-line as I know of, mine has dotted upper front leds (as seen here ) and rear leds as well ( or similar), which still looks modern.
  10. JohnH

    programmer (?) cars :)

    split thread It's a 2011 phantom black sportback S-line quattro with a TDI that feels more powerful than an old GTI... I get around :)
  11. JohnH

    programmer (?) cars :)

    /off topic/ Currently it is an Audi A3, practical for all my purposes.
  12. JohnH

    Answered Debug very slow...

    I already have a car, so we'll settle with a beer maybe some day :)
  13. JohnH

    Answered Debug very slow...

    There are some earlier versions reports and workarounds about this that I've seen, but the latest two weeks ago recommends installing .Net Framework 4.8: Debugging Slow in Visual Studio 2019 - Developer Community
  14. JohnH

    Question SerialPort.Write more than 64 bytes

    Yes, WriteBufferSize defaults to 2048 bytes, and default BaudRate 9600 bits means 1200 bytes can be transmitted per second. Compare that with your actual communication properties. https://docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport.basestream?view=netframework-4.8
  15. JohnH

    Creating form in Visual Studio

    Use DateTimePicker.ShowCheckBox Property (System.Windows.Forms) and DateTimePicker.Checked Property (System.Windows.Forms) for that purpose.
  16. JohnH

    Question VB6 ocx property to VB.Net problem

    Nice, today properties may have a Get/Set, in VB6 there was a Let also that in some cases was used instead of Set.
  17. JohnH

    Question VB6 ocx property to VB.Net problem

    It is possible interop generated separate accessor members for the properties, for example Let_Max and Get_Max.
  18. JohnH

    first record is missing

    Add ColNameHeader=false to schema.ini
Top Bottom