Click here to Skip to main content
16,004,969 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Tram882-Jun-06 4:45
Tram882-Jun-06 4:45 
QuestionScreen-Saver Preview Pin
D11131-May-06 7:57
D11131-May-06 7:57 
QuestionVisual Studio 2005 Basic for Pocket PC Pin
datacore UK31-May-06 7:13
datacore UK31-May-06 7:13 
QuestionCopy file Pin
Kosta Pereira31-May-06 7:04
Kosta Pereira31-May-06 7:04 
AnswerRe: Copy file Pin
Steve Pullan31-May-06 13:57
Steve Pullan31-May-06 13:57 
Questioncombobox-treeview Pin
SVb.net31-May-06 6:58
SVb.net31-May-06 6:58 
QuestionDisable button for certain users (ContentMenu) Pin
isfufushah31-May-06 5:41
isfufushah31-May-06 5:41 
AnswerRe: Disable button for certain users (ContentMenu) Pin
Leeland31-May-06 6:41
Leeland31-May-06 6:41 
You need to create roles and demand permissions. Create a Principal permission based on their user and then demand it.



Dim myPermission1 as new PrincipalPermission("ADMINISTRATOR", Nothing)
Dim mypermission2 as new PrincipalPermission("MANAGER", Nothing)
Dim myPermission3 as new Principalpermission("EXECUTIVE", Nothing)
Dim myPermission as PrincipalPermission

Try
myPermission.demand
button1.enabled = true
Catch
'If they're not in the ManagerGroup it won't run the enabled = true command
End Try

Questionxlapp.quit does not close excel Pin
dptalt31-May-06 4:53
dptalt31-May-06 4:53 
QuestionWinforms Question Pin
batmike200031-May-06 3:38
batmike200031-May-06 3:38 
AnswerRe: Winforms Question Pin
Leeland31-May-06 6:30
Leeland31-May-06 6:30 
GeneralRe: Winforms Question Pin
batmike200031-May-06 20:28
batmike200031-May-06 20:28 
GeneralRe: Winforms Question Pin
batmike20001-Jun-06 23:58
batmike20001-Jun-06 23:58 
QuestionAuthentication Pin
Anu_Bala31-May-06 2:16
Anu_Bala31-May-06 2:16 
AnswerRe: Authentication Pin
Tim Carmichael31-May-06 3:11
Tim Carmichael31-May-06 3:11 
QuestionDataGridView - prevent selection highlighting Pin
mdsffm31-May-06 0:54
mdsffm31-May-06 0:54 
AnswerRe: DataGridView - prevent selection highlighting Pin
sathish s31-May-06 2:42
sathish s31-May-06 2:42 
AnswerRe: DataGridView - ignore the previous post Pin
sathish s31-May-06 2:43
sathish s31-May-06 2:43 
AnswerRe: DataGridView - prevent selection highlighting Pin
Kschuler31-May-06 4:11
Kschuler31-May-06 4:11 
GeneralRe: DataGridView - prevent selection highlighting Pin
mdsffm31-May-06 4:18
mdsffm31-May-06 4:18 
Questionmediadet getbitmapbits in vb.net Pin
asadn14731-May-06 0:41
asadn14731-May-06 0:41 
QuestionColor listbox Pin
mikica1731-May-06 0:02
mikica1731-May-06 0:02 
AnswerRe: Color listbox Pin
Mekong River31-May-06 0:07
Mekong River31-May-06 0:07 
QuestionToolStrip Pin
Socheat.Net30-May-06 23:26
Socheat.Net30-May-06 23:26 
AnswerRe: ToolStrip Pin
Mekong River31-May-06 0:11
Mekong River31-May-06 0:11 

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.