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

Visual Basic

 
GeneralUrgent Help With VB.Net Forms Pin
monica2k21-May-05 15:48
monica2k21-May-05 15:48 
GeneralRe: Urgent Help With VB.Net Forms Pin
Robert Rohde21-May-05 20:50
Robert Rohde21-May-05 20:50 
Generalcustomizing button controls Pin
Joey Picerno21-May-05 12:40
Joey Picerno21-May-05 12:40 
GeneralRe: customizing button controls Pin
Robert Rohde21-May-05 20:53
Robert Rohde21-May-05 20:53 
QuestionHow to get the Size of a File? Pin
[Marc]21-May-05 6:40
[Marc]21-May-05 6:40 
AnswerRe: How to get the Size of a File? Pin
Robert Rohde21-May-05 7:10
Robert Rohde21-May-05 7:10 
GeneralRe: How to get the Size of a File? Pin
[Marc]21-May-05 7:29
[Marc]21-May-05 7:29 
GeneralNeed Help.!! Pin
hani_aql21-May-05 5:44
hani_aql21-May-05 5:44 
Hi Guys..
i'm using the following code (in vb 6 ) to encode an ARABIC String into the UCS2 ,assighned to the StrData Byte Variable then pass the StrData To The Function to do then encoding..
the problem is when i wanted to apply this code in vb.net there were a problem in assighning a string value into the StrData Byte Variable,which tells that can't convert string variable into 1-dimention array of byte.!!
and when i changed the function to accept an array of characters insted of a byte var. it always return the same encoding for any arabic string..!!
do any 1 know how to solve this problem? or know any good simple way to encode arabic string to UCS2 ..?
here is the function in vb6...

Public Function ArabicHex(b() As Byte) As String<br />
    Dim s As String, h As String<br />
    Dim i As Integer<br />
    i = 0<br />
    s = ""<br />
    While i <= UBound(b)<br />
        h = Right("00" & Hex(b(i)), 2)<br />
        i = i + 1<br />
        h = Right("00" & Hex(b(i)), 2) & h<br />
        If h = "000D" Then h = ""<br />
        s = s & h<br />
        i = i + 1<br />
    Wend<br />
    ArabicHex = s<br />
End Function

any quick response will be helpfull and thankfull..
Frown | :( confused:Confused | :confused:
GeneralPocket PC Emulator Help Pin
BritishEmpire21-May-05 5:39
BritishEmpire21-May-05 5:39 
GeneralRe: Pocket PC Emulator Help Pin
zhengdong jin21-May-05 7:46
zhengdong jin21-May-05 7:46 
Generalon changing the text of label...font changes Pin
Rizwan Bashir21-May-05 2:03
Rizwan Bashir21-May-05 2:03 
GeneralConditional MouseDown Event - ListBox navigator and drag and drop Pin
Anonymous20-May-05 21:36
Anonymous20-May-05 21:36 
GeneralRe: Conditional MouseDown Event - ListBox navigator and drag and drop Pin
rudy.net21-May-05 16:45
rudy.net21-May-05 16:45 
GeneralRe: Conditional MouseDown Event - ListBox navigator and drag and drop Pin
Anonymous21-May-05 18:03
Anonymous21-May-05 18:03 
GeneralConditional MouseDown Event - ListBox navigator and drag and drop Pin
Anonymous20-May-05 21:17
Anonymous20-May-05 21:17 
GeneralPropertyGrid Pin
Meysam.Khayatan20-May-05 20:25
Meysam.Khayatan20-May-05 20:25 
Generalpass the value Pin
Manik Nath20-May-05 18:11
Manik Nath20-May-05 18:11 
GeneralRe: pass the value Pin
oykica22-May-05 21:49
oykica22-May-05 21:49 
GeneralChange the font of a selected row in DataGrid Pin
Phuc Hua20-May-05 16:40
Phuc Hua20-May-05 16:40 
GeneralRe: Change the font of a selected row in DataGrid Pin
Robert Rohde20-May-05 23:26
Robert Rohde20-May-05 23:26 
GeneralCoding help with status bar in browser Pin
JoeySmith20-May-05 15:07
JoeySmith20-May-05 15:07 
GeneralRe: Coding help with status bar in browser Pin
Robert Rohde20-May-05 23:15
Robert Rohde20-May-05 23:15 
GeneralRe: Coding help with status bar in browser Pin
JoeySmith21-May-05 12:22
JoeySmith21-May-05 12:22 
GeneralImplementing CommonDialog::RunDialog() Pin
zorifila20-May-05 12:28
zorifila20-May-05 12:28 
GeneralConverting binary data bytes to usable numbers Pin
Scott Page20-May-05 5:54
professionalScott Page20-May-05 5:54 

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.