Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to kill an Excel process? Pin
Juan Pedro Prez24-Feb-06 2:34
Juan Pedro Prez24-Feb-06 2:34 
AnswerRe: How to kill an Excel process? Pin
Dean_SF24-Feb-06 8:40
Dean_SF24-Feb-06 8:40 
GeneralRe: How to kill an Excel process? Pin
Juan Pedro Prez24-Feb-06 9:07
Juan Pedro Prez24-Feb-06 9:07 
QuestionHow to shift to Admin account(in vb)? Pin
SIJUTHOMASP24-Feb-06 1:20
professionalSIJUTHOMASP24-Feb-06 1:20 
QuestionSending mail using SMTP Pin
Sgn_Flex23-Feb-06 23:43
Sgn_Flex23-Feb-06 23:43 
AnswerRe: Sending mail using SMTP Pin
Guffa24-Feb-06 0:20
Guffa24-Feb-06 0:20 
AnswerRe: Sending mail using SMTP Pin
Divya Rathi24-Feb-06 9:08
Divya Rathi24-Feb-06 9:08 
QuestionHow do I convert Image to FileStream Pin
alien viper23-Feb-06 23:22
alien viper23-Feb-06 23:22 
! Hello everyone,
I need help.
I want to get the filestream or memorystream from Image Object.

Dim img As Image
Dim path As String = "temp"
Dim fs As IO.FileStream
Dim br As IO.BinaryReader
Dim bytes() As Byte
Dim sqlImg As SqlTypes.SqlBinary

Try
img = picPhoto.Image
img.Save(path)
fs = New IO.FileStream(path, IO.FileMode.Open, IO.FileAccess.Read)
br = New IO.BinaryReader(fs)
bytes = br.ReadBytes(fs.Length)
sqlImg = New SqlTypes.SqlBinary(bytes)
SQL_Parameter(i).Value = sqlImg
'Save Image to Sql Database
Catch ex As Exception
Throw ex
Finally
If Not br Is Nothing Then
br.Close()
br=Nothing
End If
If Not fs Is Nothing Then
fs.Close()
fs = Nothing
End If
bytes = Nothing
img.Dispose()
sqlImg = Nothing
End Try
'It is working but sometime throw the error
' A generic error occurred in GDI+
'Thanks.


!alien!
AnswerRe: How do I convert Image to FileStream Pin
Nibu babu thomas24-Feb-06 1:15
Nibu babu thomas24-Feb-06 1:15 
AnswerRe: How do I convert Image to FileStream Pin
[DK]KiloDunse24-Feb-06 2:23
[DK]KiloDunse24-Feb-06 2:23 
GeneralRe: How do I convert Image to FileStream Pin
alien viper24-Feb-06 15:33
alien viper24-Feb-06 15:33 
GeneralRe: How do I convert Image to FileStream Pin
[DK]KiloDunse24-Feb-06 16:27
[DK]KiloDunse24-Feb-06 16:27 
Questionplease help me error occured in project Pin
vivek_pon23-Feb-06 23:12
vivek_pon23-Feb-06 23:12 
AnswerRe: please help me error occured in project Pin
CWIZO24-Feb-06 6:27
CWIZO24-Feb-06 6:27 
QuestionHow to Open a notepad from VBA....Urgent Pin
winpoorni23-Feb-06 20:22
winpoorni23-Feb-06 20:22 
AnswerRe: How to Open a new notepad from VBA....Urgent Pin
Divya Rathi23-Feb-06 20:33
Divya Rathi23-Feb-06 20:33 
QuestionHow to Open a new notepad from VBA....Urgent Pin
winpoorni23-Feb-06 22:10
winpoorni23-Feb-06 22:10 
AnswerRe: How to Open a new notepad from VBA....Urgent Pin
sathish s24-Feb-06 1:10
sathish s24-Feb-06 1:10 
AnswerRe: How to Open a new notepad from VBA....Urgent Pin
Divya Rathi24-Feb-06 9:17
Divya Rathi24-Feb-06 9:17 
QuestionHow to set the form with a fixd style? Pin
cylix200023-Feb-06 19:06
cylix200023-Feb-06 19:06 
Question2 Important but basic questions. Pin
ThePmanLives23-Feb-06 18:13
ThePmanLives23-Feb-06 18:13 
AnswerRe: 2 Important but basic questions. Pin
Joshua Quick24-Feb-06 8:05
Joshua Quick24-Feb-06 8:05 
GeneralRe: 2 Important but basic questions. Pin
ThePmanLives24-Feb-06 17:19
ThePmanLives24-Feb-06 17:19 
AnswerRe: 2 Important but basic questions. Pin
Joshua Quick24-Feb-06 20:24
Joshua Quick24-Feb-06 20:24 
GeneralRe: 2 Important but basic questions. Pin
ThePmanLives25-Feb-06 3:09
ThePmanLives25-Feb-06 3:09 

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.