Results 1 to 4 of 4

Thread: How do I scroll over controls added to a dynamic panel?

  1. #1

    Thread Starter
    Lively Member Christhemist's Avatar
    Join Date
    Sep 2016
    Location
    Nevada
    Posts
    116

    How do I scroll over controls added to a dynamic panel?

    I am adding dynamic controls to a panel but when the form loads I cannot scroll down unless I hover my mouse cursor over the panel. If its over a control then it will not scroll. How do I modify this, so that if I am hovering above any of the controls I can still scroll down using the mouse wheel?

  2. #2
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    846

    Re: How do I scroll over controls added to a dynamic panel?

    Hello,

    Have a look here : https://stackoverflow.com/questions/...ems-in-a-panel

    Regards
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How do I scroll over controls added to a dynamic panel?

    me thinks a panel isn't what you should be using. Try taking a look at a LayoutFlowPanel or a FlowLayoutTable ... one or both of thosse should better suit what you're doing and preserve your scrolling w/o needing extra code.


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How do I scroll over controls added to a dynamic panel?

    Quote Originally Posted by techgnome View Post
    me thinks a panel isn't what you should be using. Try taking a look at a LayoutFlowPanel or a FlowLayoutTable ... one or both of thosse should better suit what you're doing and preserve your scrolling w/o needing extra code.


    -tg
    FlowLayoutPanel and TableLayoutPanel, to be precise.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width