Click here to Skip to main content
15,916,702 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: What is the best method to translate english text to french in ReportViewer? Pin
progload25-Feb-06 16:25
progload25-Feb-06 16:25 
GeneralRe: What is the best method to translate english text to french in ReportViewer? Pin
Rashar25-Feb-06 16:58
Rashar25-Feb-06 16:58 
QuestionConfirming Install Location Pin
penguin500025-Feb-06 11:53
penguin500025-Feb-06 11:53 
AnswerRe: Confirming Install Location Pin
progload25-Feb-06 12:56
progload25-Feb-06 12:56 
QuestionBinding to controls in vb.net windows app Pin
Gary Ellison25-Feb-06 6:52
Gary Ellison25-Feb-06 6:52 
QuestionView a crystal report via VB.Net Pin
directred25-Feb-06 6:00
directred25-Feb-06 6:00 
AnswerRe: View a crystal report via VB.Net Pin
directred27-Feb-06 4:31
directred27-Feb-06 4:31 
QuestionAnyone can solve this??? Pin
ss65432125-Feb-06 5:19
ss65432125-Feb-06 5:19 
i am trying to insert the data from database to mircosoft chart control but when i use the code below, the data reader read till the end of record, and how i going to store in one by one to the chart control??? Anyone can help?
Thank you.

Dim strSales(,) As String
Dim i As Integer = 0
Dim count As Integer
Dim data As String
Dim num As Integer
Dim mySelectQuery As String = "SELECT ID,sales FROM sales"
'Dim countquery As String = " SELECT COUNT(sales) FROM sales"
Dim myConnection As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"DATA SOURCE=C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\db2.mdb;User Id='admin';Password='';")
Dim myCommand As New OleDbCommand(mySelectQuery, myConnection)
' Dim myCommand1 As New OleDbCommand(countquery, myConnection)
myConnection.Open()
Dim myReader As OleDbDataReader
myReader = myCommand.ExecuteReader()
' Always call Read before accessing data.


' For i = 1 To 11
'
While (myReader.Read())

'(myReader.GetValue(0)) '+ ", " _
' + myReader.GetString(1))


'{{"Location", "Thousands of tons of steel"}, _
'strSales(1) = myReader.GetValue(0)
' While (i = i)
strSales = New String(,) _
{{myReader.GetString(0), myReader.GetValue(1)}}
' MessageBox.Show(myReader.GetString(0))
' MessageBox.Show(myReader.GetValue(1))
' End While
' i += 1
End While
chSales1.ChartData = strSales
' MessageBox.Show(strSales(1))


' Next i

' always call Close when done reading.
myReader.Close()
' Close the connection when done with it.
myConnection.Close()


sdasasd
AnswerRe: Anyone can solve this??? Pin
Joshua Quick25-Feb-06 10:25
Joshua Quick25-Feb-06 10:25 
GeneralRe: Anyone can solve this??? Pin
Paul Conrad25-Feb-06 11:29
professionalPaul Conrad25-Feb-06 11:29 
Questiontreeview problem Pin
pankajgarg1225-Feb-06 4:36
pankajgarg1225-Feb-06 4:36 
AnswerRe: treeview problem Pin
Joshua Quick25-Feb-06 10:18
Joshua Quick25-Feb-06 10:18 
Question[Message Deleted] Pin
Scott341525-Feb-06 3:16
Scott341525-Feb-06 3:16 
AnswerRe: Show/Hide a toolbar Pin
Scott341525-Feb-06 3:28
Scott341525-Feb-06 3:28 
QuestionHow to use Video in Vb6 Pin
Murtuza Husain Miyan Patel25-Feb-06 3:03
professionalMurtuza Husain Miyan Patel25-Feb-06 3:03 
AnswerRe: How to use Video in Vb6 Pin
Dave Kreskowiak25-Feb-06 16:43
mveDave Kreskowiak25-Feb-06 16:43 
QuestionArabic Setup Deployment Pin
redspiders10025-Feb-06 1:58
redspiders10025-Feb-06 1:58 
Questiondoest work!!! Pin
pandapatin25-Feb-06 1:12
pandapatin25-Feb-06 1:12 
AnswerRe: doest work!!! Pin
Colin Angus Mackay25-Feb-06 1:24
Colin Angus Mackay25-Feb-06 1:24 
QuestionCan u help me to merge pdf files using VB .net ? Pin
contact ajo24-Feb-06 23:32
contact ajo24-Feb-06 23:32 
AnswerRe: Can u help me to merge pdf files using VB .net ? Pin
Colin Angus Mackay25-Feb-06 1:29
Colin Angus Mackay25-Feb-06 1:29 
QuestionReminder Pin
NOKO124-Feb-06 21:24
NOKO124-Feb-06 21:24 
AnswerRe: Reminder Pin
Dave Kreskowiak25-Feb-06 16:38
mveDave Kreskowiak25-Feb-06 16:38 
QuestionEventCalendarControl.dll Pin
NOKO124-Feb-06 21:20
NOKO124-Feb-06 21:20 
AnswerRe: EventCalendarControl.dll Pin
Dave Kreskowiak25-Feb-06 16:33
mveDave Kreskowiak25-Feb-06 16:33 

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.