Foros del Web » Programación para mayores de 30 ;) » .NET »

hola con una duda en vb.net

Estas en el tema de hola con una duda en vb.net en el foro de .NET en Foros del Web. Private Sub CreateGraph_DataSource(z1 As ZedGraphControl) Dim myPane As GraphPane = z1.GraphPane ' Set the titles myPane.Title.Text = "DataSourcePointList Test" myPane.XAxis.Title.Text = "Date" myPane.YAxis.Title.Text = "Freight ...
  #1 (permalink)  
Antiguo 30/06/2010, 18:41
Avatar de sanctusbellicosus91  
Fecha de Ingreso: marzo-2010
Mensajes: 23
Antigüedad: 14 años, 1 mes
Puntos: 0
hola con una duda en vb.net

Private Sub CreateGraph_DataSource(z1 As ZedGraphControl)
Dim myPane As GraphPane = z1.GraphPane

' Set the titles
myPane.Title.Text = "DataSourcePointList Test"
myPane.XAxis.Title.Text = "Date"
myPane.YAxis.Title.Text = "Freight Charges ($US)"

(-----> ' Create a new DataSourcePointList to handle the database connection
Dim dspl As New DataSourcePointList()
' Create a TableAdapter instance to access the database
Dim adapter As New NorthwindDataSetTableAdapters.OrdersTableAdapter()
' Create a DataTable and fill it with data from the database
Dim table As NorthwindDataSet.OrdersDataTable = adapter.GetData()<---------)

' Specify the table as the data source
dspl.DataSource = table
' The X data will come from the "OrderDate" column
dspl.XDataMember = "OrderDate"
' The Y data will come from the "Freight" column
dspl.YDataMember = "Freight"
' The Z data are not used
dspl.ZDataMember = Nothing
' The Tag data will come from the "ShipName" column
' (note that this will just set PointPair.Tag = ShipName)
dspl.TagDataMember = "ShipName"




lo que esta encerrado es para enlazar un base de datos en access

como la puedo cambiar para un base de datos normal (mysql , phpmyadmin )


por favor
:vientos:
:cute:

Etiquetas: hola
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:06.