Windows 10: HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR

Discus and support HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR in Windows 10 Software and Apps to solve the problem; I WRITE CAD / CAM SOFTWARE. CURRENTLY USING VISUAL STUDIO 2017 PRO ON HP TS 17 ENVY LAPTOP AND AN HP DIT111 (EXTENDED) MONITOR, ALL RUNNING ON WINDOWS... Discussion in 'Windows 10 Software and Apps' started by FrankPeck, Oct 18, 2018.

  1. FrankPeck Win User

    HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR


    I WRITE CAD / CAM SOFTWARE. CURRENTLY USING VISUAL STUDIO 2017 PRO ON HP TS 17 ENVY LAPTOP AND AN HP DIT111 (EXTENDED) MONITOR, ALL RUNNING ON WINDOWS 10, VERSION 1803. A WHILE BACK, I NOTICED THAT THE KEY DOWN EVENT WOULD OCCASIONALLY CAUSE THE FORM TO LOSE FOCUS. WHEN THIS HAPPEND, I DISCOVERED EXECUTION CONTINUED IN THE LOST_FOCUS EVENT HANDLER. IN THE FORM_LOSTFOCUS EVENT, I WOULD RE-INITIALIZE GRAPHICS AND REFRESH THE SCREEN AS A WORKAROUND, NEVER FINDING WHY A KEY PRESS WOULD CAUSE THE FORM TO LOSE FOCUS. WHEN THIS HAPPEND, IT SEEMED THAT FORM_GOTFOCUS NEVER FIRED. RECENTLY, THERE WAS A SUGGESTION THAT THE APPLICATION COULD BENEFIT FROM USING AN EXTENDED MONITOR TO DISPLAY PDF FILES. THE PDF FILES OPEN ON THE EXTENDED MONITOR IN 'RESTORE DOWN' MODE (MULTI-TASKING). MY WINFORM STATE IS 'MAXIMUM'. THE CURSOR AND THE PDF SEEM TO HAVE FOCUS AS USUAL, HOWEVER; MOVING THE CURSOR BACK FROM THE EXTENDED MONITOR TO THE VISUAL BASIC APPLICATION DOES NOT SEEM TO EVER CAUSE THE VISUAL BASIC FORM TO ONCE AGAIN GAIN FOCUS. MOUSE CLICKING, KEYBOARD PRESSING, TOUCH SCREEN TOUCHING, WHATEVER; I CANNOT SEEM TO GET FORM_GOTFOCUS (OR SOME OTHER EVENT) TO START BACK UP. I CAN ISSUE A [CTRL] + [ALT] + [DEL] AND OFTEN GAIN CONTROL BACK TO THE APPLICATION.


    DOES ANY ONE KNOW WHERE THE OPERATING SYSTEM CALL BACK TO VISUAL BASIC GOES TO? CHECKED EVERY EVENT I COULD THINK OF. TO THE CASUAL OBSERVER, EXTENDED MONITOR MODE IS JUST MORE 'WINDOWS REAL-ESTATE', SO WHEN THE CURSOR IS BACK OVER THE WINFORM, WHY DOES THE APPLICATION APPEAR LOCKED UP?

    :)
     
    FrankPeck, Oct 18, 2018
    #1

  2. Trouble with 2 monitors

    Hi Tim,

    Thank you for posting your query in Microsoft Community.

    I suggest you to change the settings to Extended Monitor and check if it helps.

    Please follow below steps:

    • Right Click any ware of the Desktop, and launch Personalization.
    • Go to dual monitor settings under personalization, and change it Extended Monitor.
    Please get back to us for future support, we’ll be glad to assist you further.



    Thank you.
     
    Prabhavathi Patil, Oct 18, 2018
    #2
  3. using a monitor to extend my screen

    Hi Lou,

    There are several possible reasons why your LCD monitor suddenly stopped working. It could be that the graphic driver is outdated or could be the cable used is already damaged.

    For us to isolate this problem, we would like to ask the following information:

    • Were there any changes made on your computer prior to the issue?
    • Have you installed any updates?

    In the meantime, please try the following suggestions and see if your laptop will detect the LCD monitor:

    • Update the graphic card driver. Check out Update drivers in Windows 10 for the steps.
    • Use another cable. Try using another VGA cable to connect the LCD monitor to the laptop.
    • Connect the LCD monitor to another computer. To help us isolate the issue, try connecting the LCD monitor to a different computer.

    Please let us know how it goes. We're looking forward to hearing from you.

    Regards.
     
    Vanessa Yar, Oct 18, 2018
    #3
  4. AminSaad Win User

    HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR

    Extending display to multiple monitors

    I have 4 monitors that I would like to connect to my laptop and extend display. I can't seem to find anything that will allow me to do this. My laptop doesn't have a docking station. Any suggestions?
     
    AminSaad, Oct 18, 2018
    #4
Thema:

HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR

Loading...
  1. HANDLING WINFORM LOSTFOCUS AND GOTFOCUS WITH EXTENDED MONITOR - Similar Threads - HANDLING WINFORM LOSTFOCUS

  2. In Windows 10 Winforms app, Keys.Right and Key.Left are not handled in Textbox.KeyPress...

    in Windows 10 Gaming
    In Windows 10 Winforms app, Keys.Right and Key.Left are not handled in Textbox.KeyPress...: In Visual Studio 2022 CE, I have a Windows 10 Winforms application, and in a TextBox.KeyPress event handler, I am trying to handle the KeyPress of Keys.Right and/or Keys.Left keyPress. While debugging, I place a breakpoint on the first line of the KeyPress EventHandler. If I...
  3. In Windows 10 Winforms app, Keys.Right and Key.Left are not handled in Textbox.KeyPress...

    in Windows 10 Software and Apps
    In Windows 10 Winforms app, Keys.Right and Key.Left are not handled in Textbox.KeyPress...: In Visual Studio 2022 CE, I have a Windows 10 Winforms application, and in a TextBox.KeyPress event handler, I am trying to handle the KeyPress of Keys.Right and/or Keys.Left keyPress. While debugging, I place a breakpoint on the first line of the KeyPress EventHandler. If I...
  4. Extended monitor

    in Windows 10 Customization
    Extended monitor: When I’m using a secondary monitor with Extended Screen, the secondary monitor temporarily goes to the Home Screen when I peek at collapsed pages in the task bar. Is there a way to turn this off so the page on the secondary monitor does not go away?Thanks...
  5. When using Extend monitor, the monitor extended is going to sleep

    in Windows 10 Performance & Maintenance
    When using Extend monitor, the monitor extended is going to sleep: I need some assistance. I have a new Acer monitor that I hooked to my X1 Carbon Lenovo laptop. When I am in duplicate monitor mode everything works great. However when I put the computer in extend mode, I am having issues. The monitor extends as expected, but if I do not...
  6. extended monitor

    in Windows 10 Customization
    extended monitor: Hi, I'm trying to have a dual monitor, I'm currently using acer monitor 17inch. I accidentally change the resolution of the extended monitor to the recommended resolution of my laptop lenovo ideapad s145 which is not compatible to the extended monitor, now the extended...
  7. Unable to Extend Monitors

    in Windows 10 Drivers and Hardware
    Unable to Extend Monitors: I have a HP Envy x360 Convertible 15m-bq0. It has only one video port - HDMI. I have attached a HDMI Splitter box, and it enables me to connect 2 Monitors. The problem is that it displays mirrored only, displaying the same picture on both screens. When I go to the Display...
  8. Extending Monitor

    in Windows 10 Drivers and Hardware
    Extending Monitor: Hi all, I have just bought a PC and I am wanting to extend the monitor to another monitor, however when I go to do this my PC informs me that the only display is my graphics card and does not pick up any monitors. How do I solve this?...
  9. Monitor extend

    in Windows 10 Drivers and Hardware
    Monitor extend: I have an issue with monitor extend. When I tried to extend the monitor, the monitor didn't react properly, it looks like the monitor is freeze but the cursor is visible and you can moving the cursor but when I tried clicking on an object on the screen or use right click...
  10. extending monitors

    in Windows 10 Customization
    extending monitors: I have 2 additional monitors connected to my pc, when I try to extend the display to the 3 one in advanced display settings says its not active, how do I make all 3 displays active?...