Click here to Skip to main content
15,881,709 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problem with restarting thread Pin
Johan Hakkesteegt9-Jun-09 3:12
Johan Hakkesteegt9-Jun-09 3:12 
AnswerRe: Problem with restarting thread Pin
LCARS x329-Jun-09 22:43
LCARS x329-Jun-09 22:43 
QuestionReading application .config file Pin
WorkingAcc9-Jun-09 2:36
WorkingAcc9-Jun-09 2:36 
AnswerRe: Reading application .config file Pin
Dave Kreskowiak9-Jun-09 6:28
mveDave Kreskowiak9-Jun-09 6:28 
GeneralRe: Reading application .config file Pin
WorkingAcc10-Jun-09 20:18
WorkingAcc10-Jun-09 20:18 
GeneralRe: Reading application .config file Pin
Dave Kreskowiak11-Jun-09 1:44
mveDave Kreskowiak11-Jun-09 1:44 
GeneralRe: Reading application .config file Pin
WorkingAcc11-Jun-09 1:52
WorkingAcc11-Jun-09 1:52 
QuestionHow can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 2:16
Sonhospa9-Jun-09 2:16 
Hello everybody,

I'm trying to bring a dpx-format (bitmap spec http://www.fileformat.info/format/dpx/egff.htm) file into a picture box. Knowing its structure, I figured that I could use a MemoryStream starting at the offset where the genuine picture data start.

Here's what I try:
Private abyt() As Byte
Private fo As New OpenFileDialog

'Reading a picture and put it in a bytearray
If fo.ShowDialog = DialogResult.OK Then
    Dim fs As New IO.FileStream(fo.FileName, IO.FileMode.Open)
    Dim br As New IO.BinaryReader(fs, System.Text.UnicodeEncoding.BigEndianUnicode)
    Dim offset As Integer = 8192
    abyt = br.ReadBytes(CInt(fs.Length))
    br.Close()
    
    'Creating the memory stream for the picture box
    Dim ms As New IO.MemoryStream(abyt, offset, abyt.Length - offset)
    Me.PictureBox1.Image = Image.FromStream(ms)
End If

The last command throws an argument excecption "invalid parameter".

Could anyone more experienced please help?

Thank you,
Michael
AnswerRe: How can I bring a rare picture format to a picture box? Pin
Nagy Vilmos9-Jun-09 2:29
professionalNagy Vilmos9-Jun-09 2:29 
QuestionRe: How can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 3:03
Sonhospa9-Jun-09 3:03 
AnswerRe: How can I bring a rare picture format to a picture box? Pin
Nagy Vilmos9-Jun-09 3:34
professionalNagy Vilmos9-Jun-09 3:34 
NewsRe: How can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 5:08
Sonhospa9-Jun-09 5:08 
QuestionFind URL's of Mozila Firefox,Opera or etc Pin
Anubhava Dimri9-Jun-09 2:11
Anubhava Dimri9-Jun-09 2:11 
AnswerRe: Find URL's of Mozila Firefox,Opera or etc Pin
Dave Kreskowiak9-Jun-09 6:24
mveDave Kreskowiak9-Jun-09 6:24 
QuestionCombobox SelectedIndexChanged Infinite Loop Pin
Hypermommy9-Jun-09 2:09
Hypermommy9-Jun-09 2:09 
AnswerRe: Combobox SelectedIndexChanged Infinite Loop Pin
Tom Deketelaere9-Jun-09 2:22
professionalTom Deketelaere9-Jun-09 2:22 
AnswerRe: Combobox SelectedIndexChanged Infinite Loop Pin
binjafar9-Jun-09 2:25
binjafar9-Jun-09 2:25 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
Hypermommy9-Jun-09 5:14
Hypermommy9-Jun-09 5:14 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
binjafar9-Jun-09 8:14
binjafar9-Jun-09 8:14 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
Henry Minute9-Jun-09 8:25
Henry Minute9-Jun-09 8:25 
QuestionHow to check Application is run by Administrator Pin
Anubhava Dimri9-Jun-09 2:05
Anubhava Dimri9-Jun-09 2:05 
AnswerRe: How to check Application is run by Administrator Pin
Eddy Vluggen9-Jun-09 7:05
professionalEddy Vluggen9-Jun-09 7:05 
QuestionImpossible to access to the properties of Usercontrol, since a HTML page with javascript [modified] Pin
tdc_david9-Jun-09 1:25
tdc_david9-Jun-09 1:25 
AnswerRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
Christian Graus9-Jun-09 1:53
protectorChristian Graus9-Jun-09 1:53 
GeneralRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
tdc_david9-Jun-09 2:14
tdc_david9-Jun-09 2:14 

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.