Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB and API Pin
Darryl Gschwind14-Jul-12 14:13
Darryl Gschwind14-Jul-12 14:13 
QuestionEnable usb ports Pin
aliali7414-Jul-12 3:48
aliali7414-Jul-12 3:48 
AnswerRe: Enable usb ports Pin
Wes Aday14-Jul-12 3:57
professionalWes Aday14-Jul-12 3:57 
AnswerRe: Enable usb ports Pin
ZappaDog30-Jul-12 8:28
ZappaDog30-Jul-12 8:28 
Questiondata connectivity Pin
shubham salwan12-Jul-12 18:16
shubham salwan12-Jul-12 18:16 
AnswerRe: data connectivity Pin
Nick Otten12-Jul-12 20:20
Nick Otten12-Jul-12 20:20 
QuestionDocument Searching Pin
MacOwl11-Jul-12 16:41
MacOwl11-Jul-12 16:41 
AnswerRe: Document Searching Pin
Nick Otten11-Jul-12 21:40
Nick Otten11-Jul-12 21:40 
Hello,

I'm not completely sure to what you mean, but if your looking for a way to search for items in a directory (both network drive or local drive) you can use the following code:
VB
Dim filenames = My.Computer.FileSystem.GetFiles("C:", FileIO.SearchOption.SearchAllSubDirectories, "*.txt")
            For Each filename As String In filenames
                messagebox.show(filename)
            Next

'NOTE if your system gives errors add the following line on top of your class: Imports System.IO

this example will look for .txt files on your c drive and display each of there file paths in a messagebox. since this function uses the windows search function it will work faster if you got your drives indexed. also narrowing down your search path will speed things up.

for querying things from a SQL database you can just push a query text to the server while declaring it as a "SqlCommand" (dont forget to add Imports System.Data.SqlClient on top of your code). here[^] is a tutorial. its for ado.net but it works the same in a vb.net desktop application.
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 21:47
MacOwl11-Jul-12 21:47 
GeneralRe: Document Searching Pin
Nick Otten11-Jul-12 22:09
Nick Otten11-Jul-12 22:09 
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 23:04
MacOwl11-Jul-12 23:04 
GeneralRe: Document Searching Pin
Nick Otten12-Jul-12 1:12
Nick Otten12-Jul-12 1:12 
AnswerRe: Document Searching Pin
Nick Otten16-Jul-12 0:02
Nick Otten16-Jul-12 0:02 
QuestionHttp Request without ASP.NET? Pin
Sonhospa11-Jul-12 2:34
Sonhospa11-Jul-12 2:34 
AnswerRe: Http Request without ASP.NET? Pin
Luc Pattyn11-Jul-12 3:36
sitebuilderLuc Pattyn11-Jul-12 3:36 
GeneralRe: Http Request without ASP.NET? Pin
Sonhospa11-Jul-12 4:18
Sonhospa11-Jul-12 4:18 
AnswerRe: Http Request without ASP.NET? Pin
Luc Pattyn11-Jul-12 4:32
sitebuilderLuc Pattyn11-Jul-12 4:32 
GeneralRe: Http Request without ASP.NET? Pin
Sonhospa11-Jul-12 6:03
Sonhospa11-Jul-12 6:03 
AnswerRe: Http Request without ASP.NET? Pin
Luc Pattyn11-Jul-12 6:44
sitebuilderLuc Pattyn11-Jul-12 6:44 
QuestionRe: Http Request without ASP.NET? Pin
Sonhospa11-Jul-12 9:12
Sonhospa11-Jul-12 9:12 
AnswerRe: Http Request without ASP.NET? Pin
Luc Pattyn11-Jul-12 10:23
sitebuilderLuc Pattyn11-Jul-12 10:23 
NewsRe: Http Request without ASP.NET? Pin
Sonhospa11-Jul-12 12:09
Sonhospa11-Jul-12 12:09 
AnswerRe: Http Request without ASP.NET? Pin
Luc Pattyn11-Jul-12 12:24
sitebuilderLuc Pattyn11-Jul-12 12:24 
QuestionHow to Inverse a Matrix in VBA ? Pin
caokeguan10-Jul-12 17:45
caokeguan10-Jul-12 17:45 
AnswerRe: How to Inverse a Matrix in VBA ? Pin
Sonhospa11-Jul-12 4:32
Sonhospa11-Jul-12 4:32 

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.