Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Eddy Vluggen11-Apr-19 6:56
professionalEddy Vluggen11-Apr-19 6:56 
AnswerRe: how i can import a text file also from database to one datagridview Pin
Gerry Schmitz8-Apr-19 5:56
mveGerry Schmitz8-Apr-19 5:56 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Member 1420779211-Apr-19 4:13
Member 1420779211-Apr-19 4:13 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Gerry Schmitz11-Apr-19 6:20
mveGerry Schmitz11-Apr-19 6:20 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Member 1420779211-Apr-19 6:28
Member 1420779211-Apr-19 6:28 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Gerry Schmitz11-Apr-19 6:42
mveGerry Schmitz11-Apr-19 6:42 
GeneralRe: how i can import a text file also from database to one datagridview Pin
Member 1420779211-Apr-19 21:45
Member 1420779211-Apr-19 21:45 
QuestionCannot get directory list. Thanks for the info. Message Closed. Pin
mo14926-Apr-19 5:12
mo14926-Apr-19 5:12 
Problem:Cannot get directory list for "C:\Users\Public\Public Documents" which
on my system contains "C:\Users\public\public Documents\Hewlett-Packard"

I hope I am not making some silly error again.

Have tried to use SHGetKnownFolderPath("{ED4824AF-DCE4-45A8-81E2-FC7965083634}") ' PublicDocuments
which returns this path: "C:\Users\Public\Documents".

When I use Directory.GetDirectories("C:\Users\Public\Documents") it returns these
folders:
"C:\Users\Public\My Music"
"C:\Users\Public\My Pictures"
"C:\Users\Public\My Videos"
and
"C:\Users\Public\Hewlitt-Packard"
This last one is the one I'm trying to get from "Public Documents"
It is actually in "C:\users\Public\Public Documents\Hewlitt-Packard" as shown in explorer.

The problem is I have no way of knowing which one of the above folders is
in "C:\Users\Public\Public Documents"



Trying to manually get this way:
Below is code with errors.

Dim s As String
Dim files() as String

s = "c:\Users\public\public documents" ' Error - Could not find part of the path.

' or this from google search add double quotes.
's = String.Format("{0}c:\Users\public\public documents{1}", Chr(34), Chr(34)) ' Error - Illegal chars in path

files = Directory.GetDirectories(s)


What am i doing wrong?
Thanks

-- modified 6-Apr-19 16:39pm.
AnswerRe: Cannot get directory list. Updated Pin
Richard MacCutchan6-Apr-19 9:07
mveRichard MacCutchan6-Apr-19 9:07 
AnswerRe: Cannot get directory list. Updated Pin
Eddy Vluggen6-Apr-19 10:17
professionalEddy Vluggen6-Apr-19 10:17 
QuestionEntity framework : a query is not working as expected Pin
desanti5-Apr-19 8:25
desanti5-Apr-19 8:25 
AnswerRe: Entity framework : a query is not working as expected Pin
Richard Deeming5-Apr-19 9:06
mveRichard Deeming5-Apr-19 9:06 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 10:11
desanti5-Apr-19 10:11 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 10:21
mveDave Kreskowiak5-Apr-19 10:21 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 10:36
desanti5-Apr-19 10:36 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 10:50
mveDave Kreskowiak5-Apr-19 10:50 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 11:52
desanti5-Apr-19 11:52 
GeneralRe: Entity framework : a query is not working as expected Pin
Dave Kreskowiak5-Apr-19 12:59
mveDave Kreskowiak5-Apr-19 12:59 
GeneralRe: Entity framework : a query is not working as expected Pin
desanti5-Apr-19 13:45
desanti5-Apr-19 13:45 
GeneralRe: Entity framework : a query is not working as expected Pin
Eddy Vluggen5-Apr-19 21:23
professionalEddy Vluggen5-Apr-19 21:23 
GeneralRe: Entity framework : a query is not working as expected Pin
Richard Deeming15-Apr-19 8:20
mveRichard Deeming15-Apr-19 8:20 
QuestionTrying to create generic object: SOLVED Pin
mo14923-Apr-19 6:53
mo14923-Apr-19 6:53 
AnswerRe: Trying to create generic object Pin
Richard Deeming3-Apr-19 7:39
mveRichard Deeming3-Apr-19 7:39 
QuestionVisual Studio 2010 project open in Visual Studio 2019 when run there is a error failed to sign Pin
Didier Cauberghe3-Apr-19 4:54
Didier Cauberghe3-Apr-19 4:54 
AnswerRe: Visual Studio 2010 project open in Visual Studio 2019 when run there is a error failed to sign Pin
Mycroft Holmes3-Apr-19 12:18
professionalMycroft Holmes3-Apr-19 12:18 

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.