Click here to Skip to main content
16,006,065 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionTAB or Enter key in DataGrid Pin
fiaolle31-Jul-06 22:03
fiaolle31-Jul-06 22:03 
QuestionVBScript [modified] Pin
MozhdehQeraati31-Jul-06 21:35
MozhdehQeraati31-Jul-06 21:35 
AnswerRe: VBScript Pin
MehdiMousaviNezhad12-Aug-06 0:32
MehdiMousaviNezhad12-Aug-06 0:32 
QuestionWeb Control Problem Pin
sihotamarpal31-Jul-06 21:24
sihotamarpal31-Jul-06 21:24 
Questioncheck the Image is Adobe RGB Pin
Andy_Anand31-Jul-06 20:58
Andy_Anand31-Jul-06 20:58 
Questionhow to show a default email client using vb.net in windows application [modified] Pin
kalyankumar14331-Jul-06 20:45
kalyankumar14331-Jul-06 20:45 
Questionole object in access database......... Pin
Nagraj Naik31-Jul-06 20:39
Nagraj Naik31-Jul-06 20:39 
AnswerRe: ole object in access database......... Pin
Nouvand3-Aug-06 23:21
Nouvand3-Aug-06 23:21 
It's been a long time since i stop using my vb6.
Now i'm using vb2005.

You can store many kind of file into your OLE object field.
THe concept is:
First, you need to read all bytes of your file and put it into an array of bytes.
Last, then you can store this array into your OLE Object. Simple isn't it?Laugh | :laugh:

In VB2005 you can do this with a line of code:
--------------------------------------------------------------
Imports System
Import System.IO

Class Streamer
'It will return array of bytes.
Public Function GetByteArrayFromFile(ByVal FileName As String) As Byte()
Return File.ReadAllBytes(FileName)
End Function

'It will make the file form array of bytes.
Public Sub MakeFileFormByteArray(ByVal FileName As String, ByVal ByteStream As Byte())
File.WriteAllBytes(FileName, ByteStream)
End Sub

End Class
--------------------------------

You need to make the routine to retrieve and store the data by your own.
I believe you can do that.

If anyone can convert it to vb6? Plz Helo him
Thanks before
QuestionDispaly Barcode in VB.NET Pin
angelagke31-Jul-06 17:23
angelagke31-Jul-06 17:23 
AnswerRe: Dispaly Barcode in VB.NET Pin
Christian Graus31-Jul-06 19:12
protectorChristian Graus31-Jul-06 19:12 
GeneralRe: Dispaly Barcode in VB.NET Pin
angelagke31-Jul-06 19:20
angelagke31-Jul-06 19:20 
GeneralRe: Dispaly Barcode in VB.NET Pin
Christian Graus31-Jul-06 19:24
protectorChristian Graus31-Jul-06 19:24 
GeneralRe: Dispaly Barcode in VB.NET Pin
angelagke31-Jul-06 19:32
angelagke31-Jul-06 19:32 
AnswerRe: Dispaly Barcode in VB.NET Pin
Steven J Jowett2-Aug-06 22:58
Steven J Jowett2-Aug-06 22:58 
QuestionNeed some sample programs Pin
Simple programmer31-Jul-06 17:11
Simple programmer31-Jul-06 17:11 
QuestionShowing all the hyperlinks in a richtextbox Pin
Aaron12831-Jul-06 11:29
Aaron12831-Jul-06 11:29 
QuestionUsing webcam as barcode reader in VB.net Pin
ashkanmm31-Jul-06 8:35
ashkanmm31-Jul-06 8:35 
AnswerRe: Using webcam as barcode reader in VB.net Pin
Christian Graus31-Jul-06 11:06
protectorChristian Graus31-Jul-06 11:06 
GeneralRe: Using webcam as barcode reader in VB.net Pin
Dave Sexton31-Jul-06 21:06
Dave Sexton31-Jul-06 21:06 
GeneralRe: Using webcam as barcode reader in VB.net Pin
Christian Graus31-Jul-06 21:12
protectorChristian Graus31-Jul-06 21:12 
GeneralRe: Using webcam as barcode reader in VB.net Pin
Dave Sexton31-Jul-06 23:49
Dave Sexton31-Jul-06 23:49 
QuestionRefreshing panels Pin
I am Igor31-Jul-06 8:29
I am Igor31-Jul-06 8:29 
AnswerRe: Refreshing panels Pin
Christian Graus31-Jul-06 11:06
protectorChristian Graus31-Jul-06 11:06 
QuestionEmail Message Pin
eagertolearn31-Jul-06 7:42
eagertolearn31-Jul-06 7:42 
AnswerRe: Email Message Pin
ToddHileHoffer31-Jul-06 8:30
ToddHileHoffer31-Jul-06 8:30 

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.