Click here to Skip to main content
15,896,726 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Insert into multiple tables via dataset Pin
waner michaud19-Feb-09 10:46
waner michaud19-Feb-09 10:46 
GeneralRe: Insert into multiple tables via dataset Pin
Dave Kreskowiak19-Feb-09 11:42
mveDave Kreskowiak19-Feb-09 11:42 
GeneralRe: Insert into multiple tables via dataset Pin
waner michaud20-Feb-09 8:36
waner michaud20-Feb-09 8:36 
QuestionDeliveryNotificationOptions Pin
puneet_shadija19-Feb-09 1:34
puneet_shadija19-Feb-09 1:34 
AnswerRe: DeliveryNotificationOptions Pin
Dave Kreskowiak19-Feb-09 2:12
mveDave Kreskowiak19-Feb-09 2:12 
GeneralRe: DeliveryNotificationOptions Pin
puneet_shadija20-Feb-09 3:15
puneet_shadija20-Feb-09 3:15 
GeneralRe: DeliveryNotificationOptions Pin
Dave Kreskowiak20-Feb-09 11:57
mveDave Kreskowiak20-Feb-09 11:57 
QuestionCreate a Folder with Full permission and access Rights Pin
pdnet19-Feb-09 1:06
pdnet19-Feb-09 1:06 
Hi All,

I am using vb.net 3.5

I am facing a problem when I am trying to attach a ".mdf" from my application's Data folder. its throws an error message "Access Denied",but when I am Change the permission manually the database attached successfuly.

So, I am trying to Create Data folder's Perpisson and Rights Programiticaly, but it's not accessable. my code is :

Try
Dim DomainUser As String = Environment.UserDomainName & "\" & Environment.UserName
Dim Dinfo As New DirectoryInfo(Folder)
Dim Dsecurity As DirectorySecurity = Dinfo.GetAccessControl
Dsecurity.AddAccessRule(New FileSystemAccessRule(DomainUser, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow))
Dsecurity.AddAccessRule(New FileSystemAccessRule(DomainUser, FileSystemRights.FullControl, InheritanceFlags.ObjectInherit, PropagationFlags.InheritOnly, AccessControlType.Allow))

Catch ex As Exception
Debug.Print("GrantAllAccess EXCEPTION:")
Debug.Print(ex.ToString)
End Try

----------------------------------------------------------------------------------------------------

After doing This

under Sequirity tab in "Allow " Columns all the Checkbox uncheck state, but into the advanced tab all the Checkbox Checked

So, What I am doing to to check all the permission in "Security" Tab

Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)

QuestionHow to detect KeyPress Event of datagridView Cell? Pin
ivo7518-Feb-09 21:26
ivo7518-Feb-09 21:26 
AnswerRe: How to detect KeyPress Event of datagridView Cell? Pin
Jay Royall18-Feb-09 23:15
Jay Royall18-Feb-09 23:15 
Questionhow to insert a date inside an array Pin
hyperalergelo18-Feb-09 19:55
hyperalergelo18-Feb-09 19:55 
AnswerRe: how to insert a date inside an array Pin
Guffa18-Feb-09 20:11
Guffa18-Feb-09 20:11 
QuestionHow to get the list of all the folders inside the mailbox store in exchange server with their URL Pin
prateeksj18-Feb-09 18:34
prateeksj18-Feb-09 18:34 
AnswerRe: How to get the list of all the folders inside the mailbox store in exchange server with their URL Pin
prateeksj19-Feb-09 12:33
prateeksj19-Feb-09 12:33 
QuestionHow to retrieve the appointment from exchange server's user mailbox store using VB.net Pin
prateeksj18-Feb-09 18:32
prateeksj18-Feb-09 18:32 
Questionpop up window Pin
aswd18-Feb-09 17:54
aswd18-Feb-09 17:54 
AnswerRe: pop up window [modified] Pin
Nanda_MR18-Feb-09 18:12
Nanda_MR18-Feb-09 18:12 
GeneralRe: pop up window Pin
aswd18-Feb-09 19:58
aswd18-Feb-09 19:58 
GeneralRe: pop up window Pin
Ray Cassick19-Feb-09 4:22
Ray Cassick19-Feb-09 4:22 
QuestionHow could you highlight (select) an item in a listview according to sample here? [modified] Pin
JUNEYT18-Feb-09 11:18
JUNEYT18-Feb-09 11:18 
AnswerRe: How could you highlight (select) an item in a listview according to sample here? Pin
Mycroft Holmes18-Feb-09 21:46
professionalMycroft Holmes18-Feb-09 21:46 
GeneralRe: How could you highlight (select) an item in a listview according to sample here? Pin
JUNEYT18-Feb-09 23:14
JUNEYT18-Feb-09 23:14 
Questioninfrared communication Pin
mayyaz18-Feb-09 10:29
mayyaz18-Feb-09 10:29 
AnswerRe: infrared communication Pin
EliottA18-Feb-09 10:43
EliottA18-Feb-09 10:43 
AnswerRe: infrared communication Pin
Dave Kreskowiak18-Feb-09 12:33
mveDave Kreskowiak18-Feb-09 12:33 

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.