Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2008, 06:47
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 5 meses
Puntos: 87
Respuesta: Conexion a base de datos con vb.net

pues si te falta a mi parecer la asignacion

Public Class Form1
Dim CadenaConexion As String = "server=192.168.1.33;Uid=sa;pwd=pass;dataBase= Mani otas"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dllNoticias.CNoticia.NoticiaUsu(CadenaConexion)
Dim notic As New CNoticia
RTBNot.Text = notic.noticias
End Sub

por

Public Class Form1
Dim CadenaConexion As String = "server=192.168.1.33;Uid=sa;pwd=pass;dataBase= Mani otas"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim notic As New CNoticia
notic=dllNoticias.CNoticia.NoticiaUsu(CadenaConexi on)
RTBNot.Text = notic.noticias
End Sub
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5