Click here to Skip to main content
15,901,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to get active control name - - - - immediate Pin
The ANZAC6-Sep-07 20:32
The ANZAC6-Sep-07 20:32 
QuestionWhy is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
vbDigger'z6-Sep-07 18:45
vbDigger'z6-Sep-07 18:45 
AnswerRe: Why is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
eyes20076-Sep-07 19:58
eyes20076-Sep-07 19:58 
AnswerRe: Why is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
Dave Kreskowiak7-Sep-07 2:10
mveDave Kreskowiak7-Sep-07 2:10 
QuestionMicrosoft.Office.Core troubles Pin
frankiebaby26-Sep-07 16:57
frankiebaby26-Sep-07 16:57 
AnswerRe: Microsoft.Office.Core troubles Pin
Dave Kreskowiak7-Sep-07 2:12
mveDave Kreskowiak7-Sep-07 2:12 
GeneralRe: Microsoft.Office.Core troubles Pin
frankiebaby210-Sep-07 12:19
frankiebaby210-Sep-07 12:19 
QuestionRead binary file header and data array in VB 2005 Pin
Dave_66-Sep-07 13:30
Dave_66-Sep-07 13:30 
The files I read and write must be compatible with legacy programs (VB6, C++).
The file is header information followed by a data array. For example;
'This is the current file header.
Private Structure CvsImageStructure
Friend FileID As Byte
Friend Rows As Short
Friend Columns As Short
Friend Images As Short
Friend StoredDataType As Byte
Friend CompressionSlope As Single
Friend CompressionIntercept As Single
Friend SerialNumber As String
Friend DefectDescriptions As String
End Structure
The next part of the file is a data array. It may be Byte, Int16 or Single. The StoredDataType element in the header tells me what the data type is.
I can read the data one element at a time in a for next loop (i.e. BR.ReadSingle). However, this is painfully slow. In some cases there will be more than 1,000,000 elements in the array. Is there a way to quickly read the entire data array into a Single precision array (or Byte or Int16)?
Some of these files were created in VB6 using the Put command
i.e.
Put #1, header
Put #1, sImageData()
The legacy program uses the VB6 Get command to read the files. It has to be able to read the files I create in VB.Net 2005.
-----
When the DefectDescriptions element of the structure in the file is blank, the binaryreader returns 73 characters (BR.ReadString), reading into the data array. I have a work around for this, but would appreciate some help correcting this problem.
AnswerRe: Read binary file header and data array in VB 2005 Pin
Dave Kreskowiak7-Sep-07 5:16
mveDave Kreskowiak7-Sep-07 5:16 
QuestionSelecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Mr Oizo6-Sep-07 10:16
Mr Oizo6-Sep-07 10:16 
AnswerRe: Selecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Smokeywade6-Sep-07 11:22
Smokeywade6-Sep-07 11:22 
QuestionHide Child Form ControlBox,Form Pic,Min,Max Pin
P.T.R.K6-Sep-07 8:33
P.T.R.K6-Sep-07 8:33 
AnswerRe: Hide Child Form ControlBox,Form Pic,Min,Max Pin
Lucky Sheikh6-Sep-07 20:05
Lucky Sheikh6-Sep-07 20:05 
QuestionWinform Nested Datagrids - Question Pin
Smokeywade6-Sep-07 8:23
Smokeywade6-Sep-07 8:23 
AnswerRe: Winform Nested Datagrids - Question Pin
Lucky Sheikh6-Sep-07 20:08
Lucky Sheikh6-Sep-07 20:08 
GeneralRe: Winform Nested Datagrids - Question [modified] Pin
Smokeywade7-Sep-07 2:18
Smokeywade7-Sep-07 2:18 
QuestionIssue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
nishkarsh_k6-Sep-07 7:49
nishkarsh_k6-Sep-07 7:49 
AnswerRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
Luc Pattyn6-Sep-07 8:06
sitebuilderLuc Pattyn6-Sep-07 8:06 
GeneralRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
nishkarsh_k8-Sep-07 9:38
nishkarsh_k8-Sep-07 9:38 
GeneralRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
Luc Pattyn8-Sep-07 11:01
sitebuilderLuc Pattyn8-Sep-07 11:01 
QuestionHow to create a window handle. Pin
RJGCarey6-Sep-07 7:36
RJGCarey6-Sep-07 7:36 
AnswerRe: How to create a window handle. Pin
Dave Kreskowiak6-Sep-07 7:43
mveDave Kreskowiak6-Sep-07 7:43 
GeneralRe: How to create a window handle. Pin
RJGCarey6-Sep-07 8:04
RJGCarey6-Sep-07 8:04 
GeneralRe: How to create a window handle. Pin
Luc Pattyn6-Sep-07 8:10
sitebuilderLuc Pattyn6-Sep-07 8:10 
GeneralRe: How to create a window handle. Pin
RJGCarey6-Sep-07 9:44
RJGCarey6-Sep-07 9:44 

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.