Click here to Skip to main content
15,907,000 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Speeding up creating controls Pin
JR21219-Dec-10 3:04
JR21219-Dec-10 3:04 
AnswerRe: Speeding up creating controls Pin
Luc Pattyn19-Dec-10 2:36
sitebuilderLuc Pattyn19-Dec-10 2:36 
GeneralRe: Speeding up creating controls Pin
JR21219-Dec-10 3:03
JR21219-Dec-10 3:03 
AnswerRe: Speeding up creating controls Pin
Luc Pattyn19-Dec-10 3:09
sitebuilderLuc Pattyn19-Dec-10 3:09 
GeneralRe: Speeding up creating controls Pin
JR21220-Dec-10 23:47
JR21220-Dec-10 23:47 
QuestionProblem with Binding a database to a datagridview Pin
crain198118-Dec-10 12:13
crain198118-Dec-10 12:13 
AnswerRe: Problem with Binding a database to a datagridview Pin
crain198118-Dec-10 13:04
crain198118-Dec-10 13:04 
AnswerRe: Problem with Binding a database to a datagridview Pin
crain198119-Dec-10 11:25
crain198119-Dec-10 11:25 
This actually works... I've taken out the structure of the database but this does work to put the file in the database in the form of bytes.

Private Function insertDatabase(ByVal filename As String, ByVal int As Integer)
        Dim command As SQLite.SQLiteCommand
        Dim upload As New System.IO.FileStream(******, FileMode.Open, FileAccess.Read)
        Dim filedata(upload.Length) As Byte
        upload.Read(filedata, 0, filedata.Length)
        upload.Close()
        database.ConnectionString = "Data Source= test.db3;"
        database.Open()
        command = database.CreateCommand
        'Insert Record into Database
        command.CommandText = "INSERT INTO Vault(******,*******,*****) Values (@tfile, @data, @size);"
        command.Parameters.AddWithValue("@tfile", filename)
        command.Parameters.AddWithValue("@data", filedata)
        command.Parameters.AddWithValue("@size", int)
        command.ExecuteNonQuery()
        command.Dispose()
        database.Close()
        Return 1
    End Function


And I now I'm having trouble taking the file out of the database. I'm trying to reverse what I did but its not working all that well. So far I can extract the attributes I need but still need some work. Any suggestions would help.
QuestionMSChart on Win 7 64 bits ? Pin
gbessis18-Dec-10 6:43
professionalgbessis18-Dec-10 6:43 
AnswerRe: MSChart on Win 7 64 bits ? Pin
Dave Kreskowiak18-Dec-10 15:34
mveDave Kreskowiak18-Dec-10 15:34 
QuestionWhat is the equivalent code in vb? [modified] Pin
Milad.Biroonvand17-Dec-10 21:57
Milad.Biroonvand17-Dec-10 21:57 
AnswerRe: What is the equivalent code in vb? Pin
Eddy Vluggen18-Dec-10 0:15
professionalEddy Vluggen18-Dec-10 0:15 
GeneralRe: What is the equivalent code in vb? Pin
Milad.Biroonvand18-Dec-10 1:43
Milad.Biroonvand18-Dec-10 1:43 
GeneralRe: What is the equivalent code in vb? Pin
Eddy Vluggen18-Dec-10 11:44
professionalEddy Vluggen18-Dec-10 11:44 
GeneralRe: What is the equivalent code in vb? Pin
Milad.Biroonvand18-Dec-10 2:14
Milad.Biroonvand18-Dec-10 2:14 
QuestionNeed help loading a background image from the registry Pin
Garrett Crawford17-Dec-10 18:18
Garrett Crawford17-Dec-10 18:18 
AnswerRe: Need help loading a background image from the registry Pin
Richard MacCutchan17-Dec-10 23:46
mveRichard MacCutchan17-Dec-10 23:46 
AnswerRe: Need help loading a background image from the registry Pin
Dave Kreskowiak18-Dec-10 3:02
mveDave Kreskowiak18-Dec-10 3:02 
GeneralRe: Need help loading a background image from the registry Pin
Garrett Crawford18-Dec-10 9:39
Garrett Crawford18-Dec-10 9:39 
GeneralRe: Need help loading a background image from the registry Pin
Dave Kreskowiak18-Dec-10 15:32
mveDave Kreskowiak18-Dec-10 15:32 
GeneralRe: Need help loading a background image from the registry Pin
Garrett Crawford18-Dec-10 19:16
Garrett Crawford18-Dec-10 19:16 
GeneralRe: Need help loading a background image from the registry Pin
Dave Kreskowiak19-Dec-10 4:21
mveDave Kreskowiak19-Dec-10 4:21 
GeneralRe: Need help loading a background image from the registry Pin
Garrett Crawford19-Dec-10 5:52
Garrett Crawford19-Dec-10 5:52 
QuestionSourceSafe and VB.Net Pin
#realJSOP15-Dec-10 8:48
professional#realJSOP15-Dec-10 8:48 
AnswerRe: SourceSafe and VB.Net Pin
fjdiewornncalwe15-Dec-10 8:53
professionalfjdiewornncalwe15-Dec-10 8:53 

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.