Click here to Skip to main content
15,867,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

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
Comments
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

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.

Thanks.
 
Share this answer
 
Comments
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)



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