TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kshitij Bhatia
NA
22
4.3k
Change the cell position of the Panel dynamically
Apr 19 2018 1:12 AM
Hello,
I want to change the cell position of the panel at runtime through programmatically, I have Used TableLayoutPanel And for inserting the records into cell i have used panel in each cell.
Here is my code
Dim
c1
As
New
Control
Dim
c2
As
New
Control
MainTableLayoutPanel1 = TryCast(c1.Parent, TableLayoutPanel)
If
MainTableLayoutPanel1
Is
c2.Parent
Then
'AndAlso MainTableLayoutPanel1 IsNot Nothing Then
Dim
PosC1
As
TableLayoutPanelCellPosition = MainTableLayoutPanel1.GetCellPosition(c1)
Dim
PosC2
As
TableLayoutPanelCellPosition = MainTableLayoutPanel1.GetCellPosition(c2)
MainTableLayoutPanel1.GetCellPosition(PnlLinegraph)
MainTableLayoutPanel1.GetCellPosition(PnlDoughnutChart)
c1 = PnlLinegraph
c2 = PnlDoughnutChart
MainTableLayoutPanel1.SetCellPosition(c2, PosC1)
MainTableLayoutPanel1.SetCellPosition(c1, PosC2)
End
If
does any one have better solution on it....?
I have got an error (Object Reference not set to an instance of the object)
Reply
Answers (
0
)
ConfigurationManager error
Y am i coulnt redirect to the actionresult in mvc