Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to remove tab page dynamically?
Resign Designs
9y
314
1
Reply
Hi,
I need to remove tabpage dynamically based on a result from database.DB result having tabpage names.
SqlDataReader reader = command.ExecuteReader();
while (reader.Read())
{
string langname = reader.GetString(0);
TabControl.TabPages.Remove(langname);
}
Error showing in highlighted section saying it has some invalid arguments.
When I put a tabpage name manually instead of langname it is working.
How can I achieve this?
Thanks
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Upload file chunk by chunk using threads in c# console app
How to find COM port for a specific USB devices connected.