Click here to Skip to main content
15,914,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding Textboxes at Run Time Pin
Luc Pattyn10-Aug-07 6:47
sitebuilderLuc Pattyn10-Aug-07 6:47 
AnswerRe: Adding Textboxes at Run Time Pin
Dave Kreskowiak10-Aug-07 6:47
mveDave Kreskowiak10-Aug-07 6:47 
QuestionMonth week Number and dates Pin
ejaz_pk10-Aug-07 5:19
ejaz_pk10-Aug-07 5:19 
AnswerRe: Month week Number and dates Pin
Guffa10-Aug-07 5:40
Guffa10-Aug-07 5:40 
AnswerRe: Month week Number and dates Pin
ejaz_pk10-Aug-07 6:32
ejaz_pk10-Aug-07 6:32 
AnswerRe: Month week Number and dates Pin
Guffa10-Aug-07 6:39
Guffa10-Aug-07 6:39 
QuestionBinary conversion for CRC-16 Pin
Cory Kimble10-Aug-07 4:55
Cory Kimble10-Aug-07 4:55 
AnswerRe: Binary conversion for CRC-16 Pin
Luc Pattyn10-Aug-07 5:28
sitebuilderLuc Pattyn10-Aug-07 5:28 
Hi Cory,

indeed the number that reads 14643 in decimal, reads 3933 in hex.

in C# you do that with:
int n=14643;
string s=n.ToString("X4");

which generates a string of at least four hex digits (i.e. it prefixes zeroes when
the "X" format would generate fewer than four digits because of a low value of n)

I now have installed Visual Studio VB.NET Express Edition, so I can answer in your
language; here it is, my very first VB.NET program ever:

Sub Main()
    Dim n As Integer = 14643
    Dim s As String = n.ToString("X4")
    Console.WriteLine(s)
    ' or all in one line:
    Console.WriteLine(14643.ToString("X4"))
    ' Keep console window open:
    Console.ReadLine()
End Sub


Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: Binary conversion for CRC-16 Pin
Guffa10-Aug-07 6:36
Guffa10-Aug-07 6:36 
GeneralRe: Binary conversion for CRC-16 Pin
Cory Kimble10-Aug-07 7:13
Cory Kimble10-Aug-07 7:13 
GeneralRe: Binary conversion for CRC-16 Pin
Luc Pattyn10-Aug-07 7:41
sitebuilderLuc Pattyn10-Aug-07 7:41 
QuestionNested Listview In datagrid Pin
ejaz_pk10-Aug-07 3:11
ejaz_pk10-Aug-07 3:11 
AnswerRe: Nested Listview In datagrid Pin
leckey10-Aug-07 3:56
leckey10-Aug-07 3:56 
QuestionCreating references Pin
Ahmad Zaidi10-Aug-07 1:22
Ahmad Zaidi10-Aug-07 1:22 
AnswerRe: Creating references Pin
Dave Kreskowiak10-Aug-07 1:40
mveDave Kreskowiak10-Aug-07 1:40 
QuestionModify AVI file Pin
Rupesh Kumar Swami9-Aug-07 23:33
Rupesh Kumar Swami9-Aug-07 23:33 
AnswerRe: Modify AVI file Pin
'Drew10-Aug-07 11:53
'Drew10-Aug-07 11:53 
QuestionTransparent Mdi Pin
errorfunktion9-Aug-07 23:02
errorfunktion9-Aug-07 23:02 
AnswerRe: Transparent Mdi Pin
Tom Deketelaere10-Aug-07 0:04
professionalTom Deketelaere10-Aug-07 0:04 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 0:36
errorfunktion10-Aug-07 0:36 
GeneralRe: Transparent Mdi Pin
Tom Deketelaere10-Aug-07 1:35
professionalTom Deketelaere10-Aug-07 1:35 
GeneralRe: Transparent Mdi Pin
Dave Kreskowiak10-Aug-07 1:37
mveDave Kreskowiak10-Aug-07 1:37 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 2:34
errorfunktion10-Aug-07 2:34 
GeneralRe: Transparent Mdi Pin
Dave Kreskowiak10-Aug-07 3:17
mveDave Kreskowiak10-Aug-07 3:17 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 3:35
errorfunktion10-Aug-07 3:35 

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.