Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to remove tab page dynamically?
Resign Designs
May 19 2015 4:39 AM
305
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
Upload Source Code
Select only zip and rar file.
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.