Click here to Skip to main content
16,005,491 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWindow is slow to instantiate - only on some machines Pin
dBrong3-Apr-09 6:11
dBrong3-Apr-09 6:11 
AnswerRe: Window is slow to instantiate - only on some machines Pin
Christian Graus3-Apr-09 13:54
protectorChristian Graus3-Apr-09 13:54 
GeneralRe: Window is slow to instantiate - only on some machines Pin
dBrong3-Apr-09 15:12
dBrong3-Apr-09 15:12 
GeneralRe: Window is slow to instantiate - only on some machines Pin
Christian Graus3-Apr-09 23:20
protectorChristian Graus3-Apr-09 23:20 
AnswerRe: Window is slow to instantiate - only on some machines Pin
Luc Pattyn3-Apr-09 14:51
sitebuilderLuc Pattyn3-Apr-09 14:51 
GeneralRe: Window is slow to instantiate - only on some machines Pin
dBrong3-Apr-09 15:15
dBrong3-Apr-09 15:15 
GeneralRe: Window is slow to instantiate - only on some machines Pin
Luc Pattyn3-Apr-09 15:49
sitebuilderLuc Pattyn3-Apr-09 15:49 
QuestionHex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 4:37
Cory Kimble3-Apr-09 4:37 
I need help converting between hex, ascii and back.

I want to type in an alpha numeric like "ABC123" and save as a HEX formatted like this "## ## ## ## ## ## ## ## ## ## ## ##"

Then later read that stored value and return to the text of "ABC123"

I am having trouble reading it and returning to text.

Here is what I try.


value = value.Replace(" ", "")

        While (zero)
            shorthex = value.Substring(0, 2)
            If shorthex = "00" Then
                value = value.Substring(2, value.Length - 2)


            Else
                zero = False
            End If
            i = i + 1
        End While
        Dim b((value.Length / 2) - 1) As Byte
        Dim x As Integer = b.Length - 1
        For i = value.Length - 2 To 0 Step -2
            b(x) = value.Substring(i, 2)
            x = x - 1
        Next

        value = Long.Parse(value, Globalization.NumberStyles.HexNumber)

        Dim test As String = System.Text.Encoding.ASCII.GetString(b)


When this is done test does not show the valid Text.

Any suggestions?

I can't think of anything cool and nerdy to say.

AnswerRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 5:05
sitebuilderLuc Pattyn3-Apr-09 5:05 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 5:55
Cory Kimble3-Apr-09 5:55 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 6:48
sitebuilderLuc Pattyn3-Apr-09 6:48 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 9:33
Cory Kimble3-Apr-09 9:33 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 10:05
sitebuilderLuc Pattyn3-Apr-09 10:05 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 10:55
Cory Kimble3-Apr-09 10:55 
QuestionSaveFileDialog with Serialport Pin
Quin Nee3-Apr-09 1:39
Quin Nee3-Apr-09 1:39 
AnswerRe: SaveFileDialog with Serialport Pin
Luc Pattyn3-Apr-09 3:27
sitebuilderLuc Pattyn3-Apr-09 3:27 
Questionproblem in overwriting the previous setup Pin
Pankaj Garg3-Apr-09 0:47
Pankaj Garg3-Apr-09 0:47 
AnswerRe: problem in overwriting the previous setup Pin
Tom Deketelaere3-Apr-09 1:47
professionalTom Deketelaere3-Apr-09 1:47 
QuestionCan only delete numbers in access database Pin
hendrikbez2-Apr-09 22:05
hendrikbez2-Apr-09 22:05 
AnswerRe: Can only delete numbers in access database Pin
Jay Royall2-Apr-09 22:20
Jay Royall2-Apr-09 22:20 
GeneralRe: Can only delete numbers in access database Pin
hendrikbez2-Apr-09 22:29
hendrikbez2-Apr-09 22:29 
GeneralRe: Can only delete numbers in access database Pin
Jay Royall2-Apr-09 22:47
Jay Royall2-Apr-09 22:47 
GeneralRe: Can only delete numbers in access database Pin
JC.KaNNaN3-Apr-09 20:57
JC.KaNNaN3-Apr-09 20:57 
AnswerRe: Can only delete numbers in access database Pin
Tom Deketelaere2-Apr-09 22:49
professionalTom Deketelaere2-Apr-09 22:49 
QuestionData transfer in SAP through VB Pin
yog21122-Apr-09 19:25
yog21122-Apr-09 19:25 

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.