Tema: logging
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/04/2010, 16:22
arcanisgk11
 
Fecha de Ingreso: marzo-2010
Mensajes: 12
Antigüedad: 14 años, 2 meses
Puntos: 0
Exclamación Respuesta: logging

bueno, buscando y buscando aprendi algunas cosas nuevas pero sigo sin saber de donde me sale el error

Código:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySQLDriverCS;
using System.Security.Cryptography;
//==================================================================================================
//                 INICIO DEL PROGRAMA 
//==================================================================================================
namespace WindowsFormsApplication1{
    public partial class Logging : Form{
//==================================================================================================
//                 DECLARACION DE VARIABLES PARA LOGGING Y CAPTACION DE DATOS coneccion y mas
//==================================================================================================
        public string sName;
        public string sPass;
        public string sCont;
        public Logging(){
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e){}
        private void LTitle_Click(object sender, EventArgs e){}
        private void LName_Click(object sender, EventArgs e){}
        private void LPass_Click(object sender, EventArgs e){}
        private void TexBoxName_TextChanged(object sender, EventArgs e){}
        private void TexBoxPass_TextChanged(object sender, EventArgs e){}
        private void Entrar_Click(object sender, EventArgs e){
        sName = TexBoxName.Text;
        sPass = TexBoxName.Text;
        if(sPass != "" && sName !=""){
            try{
                MySQLConnection con;
                con = new MySQLConnection(new MySQLConnectionString("localhost","database","User","Pass").AsString );
                con.Open();
                string sql = "SELECT * From Table";
                MySQLCommand cmd = new MySQLCommand(sql,con);
                MySQLDataReader reader = cmd.ExecuteReaderEx();
                while (reader.Read()){
                    Console.WriteLine( reader[0].ToString() );
                }
                reader.Close();        
                con.Close();
            }
            catch(Exception ee){
                Console.WriteLine( ee.ToString() );
            }
        }
        private void Registrarse_Click(object sender, EventArgs e){
        }
    }
}
Error 1 Se esperaba } C:\Documents and Settings\Administrador\Escritorio\Proyecto C#\WindowsFormsApplication1\WindowsFormsApplicatio n1\Form1.cs 51 10 WindowsFormsApplication1