Click here to Skip to main content
15,900,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: Making a toolStrip label a link problem Pin
Judah Gabriel Himango13-Aug-06 10:47
sponsorJudah Gabriel Himango13-Aug-06 10:47 
GeneralRe: Making a toolStrip label a link problem Pin
Stick^13-Aug-06 11:08
Stick^13-Aug-06 11:08 
QuestionHow to get Web Server's Folder structure Pin
chinna8213-Aug-06 9:36
chinna8213-Aug-06 9:36 
AnswerRe: How to get Web Server's Folder structure Pin
Judah Gabriel Himango13-Aug-06 10:45
sponsorJudah Gabriel Himango13-Aug-06 10:45 
QuestionMake a double have 2 decimal places Pin
Expert Coming13-Aug-06 9:21
Expert Coming13-Aug-06 9:21 
AnswerRe: Make a double have 2 decimal places Pin
Ravi Bhavnani13-Aug-06 9:26
professionalRavi Bhavnani13-Aug-06 9:26 
QuestionSetting a new DataGridViewComboBoxCell value Pin
Martin Marvinski13-Aug-06 9:00
Martin Marvinski13-Aug-06 9:00 
Questiontreeview at runtime with user rights Pin
stevehammond13-Aug-06 6:01
stevehammond13-Aug-06 6:01 
Hi there,

We have a menu system built using the treeview control. All items of the menu are stored in an XML file and populate at runtime.

I need to implement a new feature to this treeview control and its causing me to pull my hair out (not that I have much to pull out)

I need to implement a user rights feature, where each page of the menu can be assigned to a user, if the user has that page, they see the menu structure etc.

For example, if I have the following structure:

Menu
-Sub heading 1
--page 1
--page 2
--sub heading 2
---page 3
---page 4
-sub heading 3
--sub heading 4
---page 5

User 1 has the rights to page1, page 3 and page 5 so his menu would be

-sub heading 1
--page1
--sub heading 2
---page 3
-sub heading 3
--sub heading 4
---page 5

User 2 only has access to page3 and page 5 so their menu should be

-sub heading 1
--sub heading 3
---page 3
-sub heading 3
--sub heading 4
---page 5

Getting the page access and finding user credentials isn’t an issue, but I’m really struggling to figure out some logic to generate the menu, keep the subheadings there if they are needed and not show anything that is blank.

Has anyone done anything like this in the past? Any tips would be great, and code would be fantastic – but I’m really only looking for ideas on how to complete this.

I’m sure I’m making it harder than it needs to, and I’m also sure loads of people have done this without a problem

Thanks in advance
AnswerRe: treeview at runtime with user rights Pin
leppie13-Aug-06 22:01
leppie13-Aug-06 22:01 
QuestionGetting rid of unk publisher Pin
Stick^13-Aug-06 5:12
Stick^13-Aug-06 5:12 
AnswerRe: Getting rid of unk publisher Pin
Judah Gabriel Himango13-Aug-06 10:44
sponsorJudah Gabriel Himango13-Aug-06 10:44 
Questionprint text Pin
TAREQ F ABUZUHRI13-Aug-06 4:31
TAREQ F ABUZUHRI13-Aug-06 4:31 
AnswerRe: print text Pin
Judah Gabriel Himango13-Aug-06 10:43
sponsorJudah Gabriel Himango13-Aug-06 10:43 
QuestionPassing variables to oledb select statement Pin
Glen Harvy13-Aug-06 3:11
Glen Harvy13-Aug-06 3:11 
AnswerRe: Passing variables to oledb select statement Pin
Colin Angus Mackay13-Aug-06 3:16
Colin Angus Mackay13-Aug-06 3:16 
GeneralRe: Passing variables to oledb select statement Pin
Glen Harvy13-Aug-06 4:53
Glen Harvy13-Aug-06 4:53 
QuestionMySQL SQL Dictionary. Pin
NaNg1524113-Aug-06 1:43
NaNg1524113-Aug-06 1:43 
AnswerRe: MySQL SQL Dictionary. Pin
Colin Angus Mackay13-Aug-06 3:19
Colin Angus Mackay13-Aug-06 3:19 
QuestionRight to left in listbox Pin
Nafiseh Salmani13-Aug-06 0:29
Nafiseh Salmani13-Aug-06 0:29 
AnswerRe: Right to left in listbox [modified] Pin
CooperWu13-Aug-06 0:44
CooperWu13-Aug-06 0:44 
GeneralRe: Right to left in listbox Pin
Nafiseh Salmani13-Aug-06 1:23
Nafiseh Salmani13-Aug-06 1:23 
GeneralRe: Right to left in listbox Pin
CooperWu13-Aug-06 16:21
CooperWu13-Aug-06 16:21 
GeneralRe: Right to left in listbox Pin
Nafiseh Salmani13-Aug-06 20:00
Nafiseh Salmani13-Aug-06 20:00 
GeneralRe: Right to left in listbox Pin
CooperWu13-Aug-06 20:39
CooperWu13-Aug-06 20:39 
AnswerRe: Right to left in listbox Pin
Stefan Troschuetz13-Aug-06 5:10
Stefan Troschuetz13-Aug-06 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.