Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: DLL Function Noobie Pin
Dave Kreskowiak18-Nov-05 6:37
mveDave Kreskowiak18-Nov-05 6:37 
Questionhow can we dial server database from client application Pin
sheerprogrammer18-Nov-05 5:29
sheerprogrammer18-Nov-05 5:29 
QuestionIm new to use vb.net.... Pin
y_mmohd18-Nov-05 3:28
y_mmohd18-Nov-05 3:28 
AnswerRe: Im new to use vb.net.... Pin
Steve Pullan18-Nov-05 14:54
Steve Pullan18-Nov-05 14:54 
Questionremoving connection completely to SQL Server 2000. Pin
haggisns18-Nov-05 3:27
haggisns18-Nov-05 3:27 
AnswerRe: removing connection completely to SQL Server 2000. Pin
BambooMoon18-Nov-05 3:46
BambooMoon18-Nov-05 3:46 
GeneralRe: removing connection completely to SQL Server 2000. Pin
haggisns18-Nov-05 4:18
haggisns18-Nov-05 4:18 
QuestionHow to read binary from SQL Sever 2000? Pin
dyh222218-Nov-05 2:28
dyh222218-Nov-05 2:28 
I write strings in binary into database,but I cann`t read them out to Textbox correctly.Why?
I try to do it by two methods,but both of them failed.
Dim [Unicode] As New UnicodeEncoding
1.
sqlDA = New SqlDataAdapter(sqlStr, sqlCon)
sqlDs = New DataSet
sqlDA.Fill(sqlDs, "Result")
If sqlDs.Tables(0).Rows.Count > 0 Then
Dim bytContents As Byte()
bytContents = CType(sqlDs.Tables(0).Rows(0).Item("Contents"), Byte())
txtContents.Text = [Unicode].GetString(bytContents)
end if
2.
Dim sqlDr As SqlDataReader
sqlDr = sqlCmd.ExecuteReader(CommandBehavior.SequentialAccess)
sqlDr.Read()
Dim bytContents As Byte(), intLength As Integer
intLength = sqlDr.GetBytes(3, 0, bytContents, 0, 0)
ReDim bytContents(intLength - 1)
intLength = sqlDr.GetBytes(3, 0, bytContents, 0, bytContents.Length)
txtContents.Text = [Unicode].GetString(bytContents, 0, intLength)
sqlDr.Close()

The result is that I can read only one byte,the others is null.So I cann`t get the correct string.
How can I get the correct string from binary?

QuestionForce domain user to logoff. Pin
y_mmohd18-Nov-05 1:13
y_mmohd18-Nov-05 1:13 
AnswerRe: Force domain user to logoff. Pin
Dave Kreskowiak18-Nov-05 6:27
mveDave Kreskowiak18-Nov-05 6:27 
QuestionCAN ANYBODY TELL ME THAT HOW TO USE FLEXI OR TDB GRID WITH DATASET Pin
ajay bharti17-Nov-05 20:43
ajay bharti17-Nov-05 20:43 
AnswerRe: CAN ANYBODY TELL ME THAT HOW TO USE FLEXI OR TDB GRID WITH DATASET Pin
Suelinda_W23-Nov-05 9:55
Suelinda_W23-Nov-05 9:55 
QuestionDesktop Docking Pin
jasonbullard17-Nov-05 15:32
jasonbullard17-Nov-05 15:32 
AnswerRe: Desktop Docking Pin
jasonbullard18-Nov-05 17:47
jasonbullard18-Nov-05 17:47 
AnswerRe: Desktop Docking Pin
Michael Cochrane18-Nov-05 23:13
Michael Cochrane18-Nov-05 23:13 
QuestionAdding a new row in a DataGrid Pin
dptalt17-Nov-05 13:34
dptalt17-Nov-05 13:34 
AnswerRe: Adding a new row in a DataGrid Pin
jasonbullard17-Nov-05 15:35
jasonbullard17-Nov-05 15:35 
GeneralRe: Adding a new row in a DataGrid Pin
dptalt18-Nov-05 2:24
dptalt18-Nov-05 2:24 
GeneralRe: Adding a new row in a DataGrid Pin
Asim N.29-Nov-05 23:35
Asim N.29-Nov-05 23:35 
QuestionPopulating a combobox from an XML file Pin
stevenho17-Nov-05 13:31
stevenho17-Nov-05 13:31 
AnswerRe: Populating a combobox from an XML file Pin
KaptinKrunch17-Nov-05 14:01
KaptinKrunch17-Nov-05 14:01 
QuestionTrying to search a string in a text file and then read the chars after that string Pin
kongo1017-Nov-05 13:26
kongo1017-Nov-05 13:26 
AnswerRe: Trying to search a string in a text file and then read the chars after that string Pin
Steve Pullan17-Nov-05 13:53
Steve Pullan17-Nov-05 13:53 
GeneralRe: Trying to search a string in a text file and then read the chars after that string Pin
kongo1017-Nov-05 16:16
kongo1017-Nov-05 16:16 
GeneralRe: Trying to search a string in a text file and then read the chars after that string Pin
Steve Pullan17-Nov-05 16:56
Steve Pullan17-Nov-05 16:56 

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.