Click here to Skip to main content
15,905,914 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Show and Hide windows Task Bar from Windows Application Pin
JR21220-Nov-08 2:21
JR21220-Nov-08 2:21 
GeneralRe: Show and Hide windows Task Bar from Windows Application Pin
Dave Kreskowiak20-Nov-08 3:20
mveDave Kreskowiak20-Nov-08 3:20 
GeneralRe: Show and Hide windows Task Bar from Windows Application Pin
Jon_Boy20-Nov-08 4:21
Jon_Boy20-Nov-08 4:21 
GeneralRe: Show and Hide windows Task Bar from Windows Application Pin
EliottA20-Nov-08 5:38
EliottA20-Nov-08 5:38 
GeneralRe: Show and Hide windows Task Bar from Windows Application Pin
Jon_Boy20-Nov-08 5:46
Jon_Boy20-Nov-08 5:46 
QuestionRetrieve image with .Net originally saved by VB6 Pin
Anita Fourie18-Nov-08 19:53
Anita Fourie18-Nov-08 19:53 
AnswerRe: Retrieve image with .Net originally saved by VB6 Pin
Christian Graus18-Nov-08 20:27
protectorChristian Graus18-Nov-08 20:27 
GeneralRe: Retrieve image with .Net originally saved by VB6 Pin
Anita Fourie18-Nov-08 20:36
Anita Fourie18-Nov-08 20:36 
Hi. Thanks for the reply.

It's a SQL Server database. And yes, I am able to connect to it without any problems.

Here's the code I'm using to retrieve the file(s). This code works successfully with files that were saved by my .Net application.

<pre>Private Sub File_Read(ByVal FileName as String, ByVal strConn As String)
Try

Dim ConnRead As New SqlClient.SqlConnection
ConnRead.ConnectionString = strConn
ConnRead.Open()

Dim AdptRead As New SqlClient.SqlDataAdapter(" SELECT FData " & _
" FROM Misc " & _
" WHERE FName = 'filename.exe' ", ConnRead)


Dim CmdBldRead As SqlClient.SqlCommandBuilder = New SqlClient.SqlCommandBuilder(AdptRead)
Dim dsRead As New DataSet

AdptRead.Fill(dsRead)

Dim myRow As DataRow
myRow = dsRead.Tables(0).Rows(0)

Dim byteRead() As Byte = myRow("FData")

Dim sFilePath As String = Application.StartupPath & "\" & FileName

Dim fStream As IO.FileStream
fStream = New IO.FileStream(sFilePath, IO.FileMode.Create)
fStream.Write(byteRead, 0, byteRead.Length)
fStream.Flush()
fStream.Close()
fStream.Dispose()

Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub</pre>

The file I'm retrieving is 48kb big, but when I retrieve it, it's size is 96kb.

Thank you for your help. Please let me know if you require any more info.
GeneralRe: Retrieve image with .Net originally saved by VB6 Pin
Wendelius20-Nov-08 7:07
mentorWendelius20-Nov-08 7:07 
QuestionHow to connect and get Report view with out wizard Pin
Francis K Antony18-Nov-08 19:02
Francis K Antony18-Nov-08 19:02 
AnswerRe: How to connect and get Report view with out wizard Pin
Nanda_MR19-Nov-08 19:40
Nanda_MR19-Nov-08 19:40 
QuestionHow to make a hierarchical gridview??? Pin
meki_211818-Nov-08 18:42
meki_211818-Nov-08 18:42 
AnswerRe: How to make a hierarchical gridview??? Pin
Dave Kreskowiak19-Nov-08 2:11
mveDave Kreskowiak19-Nov-08 2:11 
GeneralRe: How to make a hierarchical gridview??? Pin
Tom Deketelaere19-Nov-08 23:02
professionalTom Deketelaere19-Nov-08 23:02 
GeneralRe: How to make a hierarchical gridview??? Pin
Dave Kreskowiak20-Nov-08 1:49
mveDave Kreskowiak20-Nov-08 1:49 
GeneralRe: How to make a hierarchical gridview??? Pin
Tom Deketelaere20-Nov-08 2:03
professionalTom Deketelaere20-Nov-08 2:03 
AnswerRe: How to make a hierarchical gridview??? Pin
Nanda_MR19-Nov-08 19:36
Nanda_MR19-Nov-08 19:36 
QuestionHow to load a word document into RichTextbox Pin
scothykonma18-Nov-08 18:02
scothykonma18-Nov-08 18:02 
AnswerRe: How to load a word document into RichTextbox Pin
Christian Graus18-Nov-08 20:28
protectorChristian Graus18-Nov-08 20:28 
GeneralRe: How to load a word document into RichTextbox Pin
indian14319-Nov-08 1:01
indian14319-Nov-08 1:01 
AnswerRe: How to load a word document into RichTextbox Pin
scothykonma19-Nov-08 17:33
scothykonma19-Nov-08 17:33 
GeneralRe: How to load a word document into RichTextbox Pin
Dave Kreskowiak19-Nov-08 18:31
mveDave Kreskowiak19-Nov-08 18:31 
QuestionDidnt know if VBA qualifies for this forum but... Pin
EliottA18-Nov-08 9:22
EliottA18-Nov-08 9:22 
AnswerRe: Didnt know if VBA qualifies for this forum but... Pin
Wendelius18-Nov-08 10:14
mentorWendelius18-Nov-08 10:14 
Questionfiles creating Pin
Celldet18-Nov-08 3:34
Celldet18-Nov-08 3: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.