Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 24-Nov-12 0:25am
Comments
OriginalGriff at 24-Nov-12 5:40am
   
What have you tried?
Where are you stuck?
lovejaygore at 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
good
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.
 
Thanks.
  Permalink  
Comments
lovejaygore at 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
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 200
3 Zoltán Zörgő 149
4 BillWoodruff 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 24 Nov 2012
Copyright © CodeProject, 1999-2014
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