Click here to Skip to main content
15,867,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I write a application that lets the user add tabs and button links.

I want the application to have a max of 15 buttons in each new tab. The idea is that the first tab has one default button in it that you can right click on and edit or delete - the edit will let you add or change the link for the button - add some text (example google) - and change the image. Once the changes have been made the application will save the changed to the button.

Then in order to add another button within the tabs window you would right click on a blank part of the window and select add new button. Then you can edit the new button in the same way as the first.

I would also like to be able to add new tabs and let the end user rename them and also delete a tab if needed.

I would like any changed to be saved automatically and load automatically when the program is run.

The idea is to have a application that can lunch other apps via the buttons within it - a bit like having a programable remote control.

I have limit knowledge and would love some work examples of this if anyone knows how to do it.

Regards
David
Posted
Comments
phil.o 27-Feb-14 18:37pm    
You may be disapointed, but Maciej's advise is a fairly good one. There's nothing better than self experimenting.
Your question is way too vague / broad to be answered precisely. You should split your problem into several simple parts : handling the tabs (creating, activating, destroying) - handling the buttons on the tabs (creating, editing, clicking, destroying) - load and save settings at program's startup. These are the fields that you are going to query somehow. You can find many articles here on CodeProject to explore.
Good luck.

1 solution

How do i write ...?
There is only one answer: start writing ;)

Have a look here: TabControl Class[^]. More samples you'll find here[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Feb-14 18:09pm    
:-) :-)
Fair enough, my 5.
—SA
Maciej Los 27-Feb-14 18:09pm    
Thank you, Sergey ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900