Click here to Skip to main content
15,921,113 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is ocx registered? Pin
jzonthemtn30-Jul-08 4:26
jzonthemtn30-Jul-08 4:26 
GeneralRe: Is ocx registered? Pin
cstrader23230-Jul-08 5:12
cstrader23230-Jul-08 5:12 
QuestionGenerating a report using wizard and storing as PDF Pin
Subzito30-Jul-08 2:45
Subzito30-Jul-08 2:45 
AnswerRe: Generating a report using wizard and storing as PDF Pin
Paul Conrad2-Aug-08 19:01
professionalPaul Conrad2-Aug-08 19:01 
Questionmuch confused Help!!!! Pin
morena.harris30-Jul-08 1:59
morena.harris30-Jul-08 1:59 
AnswerRe: much confused Help!!!! Pin
Eduard Keilholz30-Jul-08 4:28
Eduard Keilholz30-Jul-08 4:28 
AnswerRe: much confused Help!!!! Pin
rprateek4-Aug-08 15:47
rprateek4-Aug-08 15:47 
QuestionFolderBrowse Pin
manisghouri30-Jul-08 1:44
manisghouri30-Jul-08 1:44 
I am using following API function to open folder browse window. I want to show only selected drives not all the drives. Can anyone help me to achieve this task as I am not a .net programmer.

Thanks

Public Function BrowseForFolder(ByVal sTitle As String, ByVal sRootPath As String) As String

Const WINDOW_HANDLE As Long = 0

Const NO_OPTIONS As Long = 0

Const BIF_NEWDIALOGSTYLE As Long = 64

Const BIF_EDITBOX As Long = 16

Dim fctResult As String

Dim objShell As New Shell32.Shell()

Dim objFolder As Shell32.Folder

Dim objFolder2 As Shell32.Folder2

Dim objFolderItem As Shell32.FolderItem

fctResult = ""


objFolder = objShell.BrowseForFolder(WINDOW_HANDLE, sTitle, NO_OPTIONS Or BIF_NEWDIALOGSTYLE, sRootPath)


If Not objFolder Is Nothing Then

objFolder2 = CType(objFolder, Shell32.Folder2)

objFolderItem = objFolder2.Self

fctResult = objFolderItem.Path

End If

objFolderItem = Nothing

objFolder2 = Nothing

objFolder = Nothing

objShell = Nothing

Return fctResult

End Function
AnswerRe: FolderBrowse Pin
jzonthemtn30-Jul-08 4:22
jzonthemtn30-Jul-08 4:22 
GeneralRe: FolderBrowse Pin
manisghouri31-Jul-08 0:28
manisghouri31-Jul-08 0:28 
GeneralRe: FolderBrowse Pin
jzonthemtn31-Jul-08 11:31
jzonthemtn31-Jul-08 11:31 
QuestionGET CLIENT MACHINE DATE&TIME from server Pin
Karan_TN30-Jul-08 1:05
Karan_TN30-Jul-08 1:05 
AnswerRe: GET CLIENT MACHINE DATE&TIME from server Pin
Graham Bradshaw30-Jul-08 3:37
Graham Bradshaw30-Jul-08 3:37 
AnswerRe: GET CLIENT MACHINE DATE&TIME from server Pin
Bassam Saoud30-Jul-08 8:50
Bassam Saoud30-Jul-08 8:50 
QuestionReturning the number of items in a print queue Pin
James Bailey29-Jul-08 23:59
James Bailey29-Jul-08 23:59 
AnswerRe: Returning the number of items in a print queue Pin
Duncan Edwards Jones30-Jul-08 0:47
professionalDuncan Edwards Jones30-Jul-08 0:47 
GeneralRe: Returning the number of items in a print queue Pin
James Bailey30-Jul-08 1:08
James Bailey30-Jul-08 1:08 
QuestionMemory used by my Application increases at each click of a mouse Pin
Ashfaq Maniar29-Jul-08 23:53
Ashfaq Maniar29-Jul-08 23:53 
AnswerRe: Memory used by my Application increases at each click of a mouse Pin
Eduard Keilholz30-Jul-08 4:39
Eduard Keilholz30-Jul-08 4:39 
GeneralRe: Memory used by my Application increases at each click of a mouse Pin
Ashfaq Maniar2-Aug-08 0:19
Ashfaq Maniar2-Aug-08 0:19 
QuestionSimple .Application question Pin
Dalek Dave29-Jul-08 21:47
professionalDalek Dave29-Jul-08 21:47 
QuestionEncryption & Decryption Pin
SNarayanan29-Jul-08 21:01
SNarayanan29-Jul-08 21:01 
AnswerRe: Encryption & Decryption Pin
Christian Graus29-Jul-08 21:04
protectorChristian Graus29-Jul-08 21:04 
GeneralRe: Encryption & Decryption Pin
Jon_Boy30-Jul-08 1:51
Jon_Boy30-Jul-08 1:51 
AnswerRe: Encryption & Decryption Pin
Ravi Kumar Tyagi29-Jul-08 21:34
Ravi Kumar Tyagi29-Jul-08 21: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.