Skip to content

FlowLayout Panel - Scroll control into view not working #1260

Closed

Description

@itg-assistant

edmond girardi asked 2017-12-17 15:22:18 UTC

I have a flowlayout panel into which I add user controls with the following code:

this.flp_Hearings.Controls.Add(ucItem);
this.flp_Hearings.ScrollControlIntoView(ucItem);

I ahve the following flow layout panel properties set:

Autoscroll = true

Flow Direction = TopDown

WrapContents = false

Am I missing something ?

Any other way to get my newly added item into view ?

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    edmond girardi answered 2017-12-17 15:33:11 UTC

    I solved this myself Via a post on Stack Overflow site: Instead of using the ScrollIntoView method - used the following:

    ucBatchItem ucItem = new ucBatchItem();
    ucItem.Parent = this.flp_Hearings;
    this.ActiveControl = ucItem;
    this.flp_Hearings.Controls.Add(ucItem);
    // this.flp_Hearings.ScrollControlIntoView(ucItem);   ** not used

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions