Click here to Skip to main content
13,189,506 members (53,598 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I am developing one windows bases application where I want to give options to users to set their favorites tabs, from which they can easily access any windows forms. Please suggest any idea, how to do it.

Thank You,
Posted 23-Nov-12 23:25pm
OriginalGriff 24-Nov-12 5:40am
What have you tried?
Where are you stuck?
lovejaygore 24-Nov-12 5:49am
Thanks for reply,

I try to give option to user to set their favorite windows forms on buttons as Favorite Tab and access them. Just like in mobile we set Favorite Applications.
I dont get how to allow user to set form as Favorite at runtime.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I hope your application have any database.

you can follow below approach if suited to you application:

1. Create a table to store link for favorites form for users. you can use columns: favid, favformdisplayname, favformobjname, userid(forgien key)

2. Provide any checkbox or button on each form to add it to favorite. whenever user click on it, fire a query to insert (favid, favformdisplayname, favformobjname, userid) in table to store favorites for user. It will be good if you use checkbox as on unchecking you can delete the entry from favorite table.

3. On favorite tab, you should fire select query to retrieve favorite form name on the basis of userid. Display the result on favorite tab and provide link for each row. On clicking any of these link open the respective form.

4. Also on favorite tab, you can provide checkbox or delete button for every favorite form to remove it.

Hope it will help. You an improve it as per you need.

lovejaygore 24-Nov-12 6:19am
Thanks a lot...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171016.2 | Last Updated 24 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100