Click here to Skip to main content
15,889,858 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: connection Pin
_Damian S_1-Sep-09 20:22
professional_Damian S_1-Sep-09 20:22 
GeneralRe: connection Pin
ihe2-Sep-09 16:06
ihe2-Sep-09 16:06 
AnswerRe: connection Pin
Christian Graus1-Sep-09 21:28
protectorChristian Graus1-Sep-09 21:28 
GeneralRe: connection Pin
ihe2-Sep-09 16:03
ihe2-Sep-09 16:03 
QuestionError when drawing a bitmap Pin
Sonhospa1-Sep-09 15:28
Sonhospa1-Sep-09 15:28 
AnswerRe: Error when drawing a bitmap Pin
Christian Graus1-Sep-09 16:10
protectorChristian Graus1-Sep-09 16:10 
AnswerRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 1:05
sitebuilderLuc Pattyn2-Sep-09 1:05 
QuestionRe: Error when drawing a bitmap [modified] Pin
Sonhospa2-Sep-09 8:12
Sonhospa2-Sep-09 8:12 
Aahhh - I see! I thought I had taken care of this issue by assigning the new bitmap to the Me.CurrentBitmap property, which is later used as the source of a picture box... I should have assigned a copy and then freed the original, right?

What do you say regarding Christian's hint about the stride parameter? Sniff | :^)

[EDIT:]
I just replaced the relevant lines with
Dim arrBmp As New Bitmap(Width, Height, stride, Imaging.PixelFormat.Format16bppGrayScale, pBuf)
Me.CurrentBitmap = New Bitmap(arrBmp, arrBmp.size)
gch.Free()
and now I'm receiving an ArgumentException in the second line.

modified on Wednesday, September 2, 2009 2:20 PM

AnswerRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 8:33
sitebuilderLuc Pattyn2-Sep-09 8:33 
GeneralRe: Error when drawing a bitmap Pin
Sonhospa2-Sep-09 8:55
Sonhospa2-Sep-09 8:55 
GeneralRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 9:32
sitebuilderLuc Pattyn2-Sep-09 9:32 
QuestionVB6 Serial Comm Crashs Visual Studio Pin
suguimoto1-Sep-09 12:02
suguimoto1-Sep-09 12:02 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Christian Graus1-Sep-09 14:26
protectorChristian Graus1-Sep-09 14:26 
GeneralRe: VB6 Serial Comm Crashs Visual Studio Pin
suguimoto1-Sep-09 16:20
suguimoto1-Sep-09 16:20 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Mycroft Holmes1-Sep-09 16:05
professionalMycroft Holmes1-Sep-09 16:05 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Luc Pattyn2-Sep-09 1:11
sitebuilderLuc Pattyn2-Sep-09 1:11 
QuestionCalculate the origin and radius of a circle Pin
keithp08231-Sep-09 10:21
keithp08231-Sep-09 10:21 
AnswerRe: Calculate the origin and radius of a circle Pin
Luc Pattyn1-Sep-09 13:58
sitebuilderLuc Pattyn1-Sep-09 13:58 
GeneralRe: Calculate the origin and radius of a circle Pin
keithp08232-Sep-09 5:35
keithp08232-Sep-09 5:35 
GeneralRe: Calculate the origin and radius of a circle Pin
Luc Pattyn2-Sep-09 5:54
sitebuilderLuc Pattyn2-Sep-09 5:54 
GeneralRe: Calculate the origin and radius of a circle Pin
keithp08232-Sep-09 6:32
keithp08232-Sep-09 6:32 
QuestionConfused by Events Pin
Sonhospa1-Sep-09 1:49
Sonhospa1-Sep-09 1:49 
AnswerRe: Confused by Events Pin
Jay Royall1-Sep-09 2:02
Jay Royall1-Sep-09 2:02 
GeneralRe: Confused by Events Pin
Mycroft Holmes1-Sep-09 16:09
professionalMycroft Holmes1-Sep-09 16:09 
GeneralRe: Confused by Events Pin
Jay Royall1-Sep-09 22:07
Jay Royall1-Sep-09 22:07 

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.