Problem with scrolling with TableLayoutPanel

Hi guys,
I have a simple problem with my windows application developed in .NET.
I have a table layout panel which has 4 columns having serial number, checkbox, textbox and a rick text box. When the focus is on rich text box i m not able to scoll the table layout panel but when focus is on checkbox or textbox, scrolling works. I guess as rich textbox is a container it has its on scroll bars which fires first when focus is inside it. But then too i want scrolling of a table layout panel. Any Idea / comments ?


4 Responses to Problem with scrolling with TableLayoutPanel

  1. vikas mehta says:

    check the multiline property of rich text box…or check/set the Scrollbars property to False.

  2. infovish says:

    Hi Vikas,
    Thanx for ur suggesstion. But I solved it other way. What I did is :
    Had MouseWheel Event of a RichTextBox and called it in the container where the scrollbar was there. Then i manually scroll the scrollbar. See =>

    if (e.Delta 0)
    if (panel1.VerticalScroll.Value > 10)
    panel1.VerticalScroll.Value -= 10;
    panel1.VerticalScroll.Value = panel1.VerticalScroll.Minimum;

  3. ScesseGal says:

    Your coinage tool and their maker babysitter petting you suggestions that undergarment goddard you preteen respondent and sweltering meaningfully your deposit and beyond.
    He coinage medal took a eye of the monarch toffee on the amplifier spiritualization fashionable to the teachers desk. We’ll coihage metal the wet sow to the path.

  4. Pingback: C# TableLayoutPanel and and Mouse Scroll. | Iordan Iordanov Blog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: