Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net adding TableLayoutPanels programatically to a Windows Form underneath each other

Posted on 2014-03-07
2
Medium Priority
?
226 Views
Last Modified: 2014-03-09
Hi


On my Windows form I have a button. When the user clicks it I want a TableLayoutPanel to the form. I want the first one to be near the top of the form and then the next ones underneath the TableLayoutPanel above
0
Comment
Question by:Murray Brown
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39914517
So you need to set the Top and Left properties. You can calculate the Top of the 2nd one by adding up Top and Height of the first one and then adding some more pixels.
0
 

Author Closing Comment

by:Murray Brown
ID: 39916752
Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question