Click here to Skip to main content
15,909,953 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Exeption handling in VB.net Pin
supercat914-Nov-07 12:05
supercat914-Nov-07 12:05 
AnswerRe: connection to SQL server stays open Pin
Dave Kreskowiak14-Nov-07 6:11
mveDave Kreskowiak14-Nov-07 6:11 
QuestionNibbles Pin
No-e14-Nov-07 6:05
No-e14-Nov-07 6:05 
AnswerRe: Nibbles Pin
Dave Kreskowiak14-Nov-07 6:26
mveDave Kreskowiak14-Nov-07 6:26 
GeneralRe: Nibbles Pin
supercat914-Nov-07 6:30
supercat914-Nov-07 6:30 
GeneralRe: Nibbles Pin
Dave Kreskowiak14-Nov-07 6:49
mveDave Kreskowiak14-Nov-07 6:49 
GeneralRe: Nibbles Pin
supercat914-Nov-07 6:56
supercat914-Nov-07 6:56 
GeneralRe: Nibbles Pin
Dave Kreskowiak14-Nov-07 7:16
mveDave Kreskowiak14-Nov-07 7:16 
supercat9 wrote:
BTW, is there any good built-in function to convert an integer to a two, four, or eight-digit hex string?


No, there isn't. Hex will return a string of the minimum length required to display the converted number. It's easy enough to build a function though. All you have to do is pass in the value and the number of digits you want, then use Hex to convert the value to it's Hex representation, create a string with the proper number of 0's in it minus the length of the Hex string and stich the two together.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Nibbles Pin
supercat914-Nov-07 9:40
supercat914-Nov-07 9:40 
GeneralRe: Nibbles Pin
Dave Kreskowiak14-Nov-07 12:57
mveDave Kreskowiak14-Nov-07 12:57 
GeneralRe: Nibbles Pin
nlarson1114-Nov-07 7:40
nlarson1114-Nov-07 7:40 
GeneralRe: Nibbles Pin
Dave Kreskowiak14-Nov-07 8:22
mveDave Kreskowiak14-Nov-07 8:22 
GeneralRe: Nibbles Pin
nlarson1114-Nov-07 8:26
nlarson1114-Nov-07 8:26 
Questionform closing error Pin
Tom Deketelaere14-Nov-07 4:07
professionalTom Deketelaere14-Nov-07 4:07 
AnswerRe: form closing error Pin
Dave Kreskowiak14-Nov-07 6:24
mveDave Kreskowiak14-Nov-07 6:24 
Questionconnection to SQL server stays open Pin
Tom Deketelaere14-Nov-07 3:32
professionalTom Deketelaere14-Nov-07 3:32 
AnswerRe: connection to SQL server stays open Pin
Colin Angus Mackay14-Nov-07 5:56
Colin Angus Mackay14-Nov-07 5:56 
QuestionBarcode Pin
Naderrafiee14-Nov-07 1:48
Naderrafiee14-Nov-07 1:48 
AnswerRe: Barcode Pin
Boroumandan14-Nov-07 2:08
Boroumandan14-Nov-07 2:08 
AnswerRe: Barcode Pin
Dave Kreskowiak14-Nov-07 5:52
mveDave Kreskowiak14-Nov-07 5:52 
GeneralRe: Barcode Pin
Enriad14-Nov-07 19:48
Enriad14-Nov-07 19:48 
GeneralRe: Barcode Pin
Dave Kreskowiak15-Nov-07 1:21
mveDave Kreskowiak15-Nov-07 1:21 
Questionclose button on Message Box Pin
Abbhie14-Nov-07 1:41
Abbhie14-Nov-07 1:41 
AnswerRe: close button on Message Box Pin
Abbhie14-Nov-07 2:12
Abbhie14-Nov-07 2:12 
QuestionGet Full Network Path Pin
georgegarvasis14-Nov-07 1:28
georgegarvasis14-Nov-07 1:28 

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.