Click here to Skip to main content
15,920,688 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionColoring rows in DatagridView Pin
charchabil039-Feb-07 12:37
charchabil039-Feb-07 12:37 
AnswerRe: Coloring rows in DatagridView Pin
Star Vega10-Feb-07 4:52
Star Vega10-Feb-07 4:52 
QuestionHow can I define an array for a label or picturebox? Pin
JUNEYT9-Feb-07 12:10
JUNEYT9-Feb-07 12:10 
AnswerRe: How can I define an array for a label or picturebox? Pin
Christian Graus9-Feb-07 12:16
protectorChristian Graus9-Feb-07 12:16 
GeneralAn array of label objects... Pin
JUNEYT9-Feb-07 23:00
JUNEYT9-Feb-07 23:00 
GeneralRe: An array of label objects... Pin
Christian Graus9-Feb-07 23:25
protectorChristian Graus9-Feb-07 23:25 
Questionusing vb.net to post to a website Pin
keroed_edmond9-Feb-07 8:33
keroed_edmond9-Feb-07 8:33 
Questionhow to recognize a readonly directory ? Pin
prady929-Feb-07 8:18
prady929-Feb-07 8:18 
Hello,

1°) I would like to know how to recognize a readonly directory in advance
only without having to await the code error of return in attempt at writing
on this one as one can let it to know if a file is system, file, reading, hidden.
2°) I would like to also know how to detect the authorizations (permissions,
accounts authorized) of writing on a directory without having to await the code error of return in attempt at writing on this one like one does it for
a file.
This question is independent of the first because the directory can be
in read/write but that only for certain people thus useless to go further if it is already in readonly mode.

I tested by the code according to various tests:

Dim FolderBrowserDialog1 as FolderBrowserDialog = New FolderBrowserDialog()
Dim MyAttr asFileAttribute

If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then

MyAttr = GetAttr(FolderBrowserDialog1.SelectedPath)
MsgBox(MyAttr.ToString) 'response : Directory

MsgBox(File.GetAttributes(FolderBrowserDialog1.SelectedPath).ToString)
'response : Directory

Dim information as System.IO.FileInfo
information =
My.Computer.FileSystem.GetFileInfo(FolderBrowserDialog1.SelectedPath)
MsgBox(information.IsReadOnly) 'response : always false even if the
directory is readonly mode

End If

in advance thank you with all
AnswerRe: how to recognize a readonly directory ? Pin
Dave Kreskowiak10-Feb-07 4:56
mveDave Kreskowiak10-Feb-07 4:56 
QuestionHelp with saving Printdocument data to a file Pin
vbbeg9-Feb-07 8:17
vbbeg9-Feb-07 8:17 
AnswerRe: Help with saving Printdocument data to a file Pin
Dave Kreskowiak10-Feb-07 4:26
mveDave Kreskowiak10-Feb-07 4:26 
GeneralRe: Help with saving Printdocument data to a file Pin
vbbeg10-Feb-07 4:50
vbbeg10-Feb-07 4:50 
GeneralRe: Help with saving Printdocument data to a file Pin
Dave Kreskowiak10-Feb-07 4:59
mveDave Kreskowiak10-Feb-07 4:59 
GeneralRe: Help with saving Printdocument data to a file Pin
vbbeg10-Feb-07 5:04
vbbeg10-Feb-07 5:04 
GeneralRe: Help with saving Printdocument data to a file Pin
Dave Kreskowiak10-Feb-07 5:11
mveDave Kreskowiak10-Feb-07 5:11 
QuestionIterate through Array Pin
Larry White9-Feb-07 7:27
Larry White9-Feb-07 7:27 
AnswerRe: Iterate through Array Pin
Dave Kreskowiak9-Feb-07 7:38
mveDave Kreskowiak9-Feb-07 7:38 
GeneralRe: Iterate through Array Pin
Larry White9-Feb-07 8:01
Larry White9-Feb-07 8:01 
AnswerRe: Iterate through Array Pin
Guffa9-Feb-07 7:39
Guffa9-Feb-07 7:39 
GeneralRe: Iterate through Array Pin
Larry White9-Feb-07 8:35
Larry White9-Feb-07 8:35 
AnswerRe: Iterate through Array Pin
Guffa10-Feb-07 3:57
Guffa10-Feb-07 3:57 
GeneralRe: Iterate through Array Pin
Larry White12-Feb-07 4:33
Larry White12-Feb-07 4:33 
AnswerRe: Iterate through Array Pin
Guffa12-Feb-07 4:57
Guffa12-Feb-07 4:57 
GeneralRe: Iterate through Array Pin
Larry White12-Feb-07 5:21
Larry White12-Feb-07 5:21 
AnswerRe: Iterate through Array Pin
Guffa13-Feb-07 11:34
Guffa13-Feb-07 11:34 

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.