Click here to Skip to main content
15,917,321 members
Home / Discussions / C#
   

C#

 
Questionwebbrowser and autoviewer Pin
daveice3-Apr-10 0:45
daveice3-Apr-10 0:45 
AnswerRe: webbrowser and autoviewer Pin
Abhinav S3-Apr-10 1:36
Abhinav S3-Apr-10 1:36 
QuestionRandom numbers Pin
Janded3-Apr-10 0:12
Janded3-Apr-10 0:12 
QuestionRe: Random numbers Pin
sanforjackass3-Apr-10 0:14
sanforjackass3-Apr-10 0:14 
AnswerMessage Removed Pin
3-Apr-10 0:22
Janded3-Apr-10 0:22 
GeneralRe: Random numbers Pin
sanforjackass3-Apr-10 0:28
sanforjackass3-Apr-10 0:28 
GeneralRe: Random numbers Pin
Dave Kreskowiak3-Apr-10 3:03
mveDave Kreskowiak3-Apr-10 3:03 
GeneralRe: Random numbers Pin
OriginalGriff3-Apr-10 4:30
mveOriginalGriff3-Apr-10 4:30 
GeneralRe: Random numbers Pin
Dave Kreskowiak3-Apr-10 5:43
mveDave Kreskowiak3-Apr-10 5:43 
GeneralRe: Random numbers Pin
OriginalGriff3-Apr-10 5:47
mveOriginalGriff3-Apr-10 5:47 
AnswerRe: Random numbers Pin
Abhinav S3-Apr-10 0:26
Abhinav S3-Apr-10 0:26 
GeneralRe: Random numbers Pin
Som Shekhar3-Apr-10 1:13
Som Shekhar3-Apr-10 1:13 
GeneralRe: Random numbers Pin
Abhinav S3-Apr-10 1:24
Abhinav S3-Apr-10 1:24 
GeneralRe: Random numbers Pin
harold aptroot3-Apr-10 1:47
harold aptroot3-Apr-10 1:47 
GeneralRe: Random numbers Pin
Abhinav S3-Apr-10 1:52
Abhinav S3-Apr-10 1:52 
GeneralRe: Random numbers Pin
Som Shekhar3-Apr-10 1:58
Som Shekhar3-Apr-10 1:58 
GeneralRe: Random numbers Pin
Abhinav S3-Apr-10 2:01
Abhinav S3-Apr-10 2:01 
QuestionConnexion with my database .sdf with c# smart device project Pin
Tunisien862-Apr-10 23:32
Tunisien862-Apr-10 23:32 
Hi,
My ConnexionForm contains 2 fields Login and Password.The user types his parameters.The system must verify the existance of this user in its database .sdf.So,I am blocked in relating my database with my interface.
First,Iwanna ask if ADO.NET is installed by default with Visual Studio 2008 or should i install it.
Second,this is my ConnexionForm's code that i haven't got any result with it:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlServerCe;
using System.Configuration;
using System.Text.RegularExpressions; 

namespace PFE
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
           MenuPrincipal f = new MenuPrincipal();
            f.Show();
           
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            String connectionString = null;
            try
            {
                connectionString = ConfigurationManager.ConnectionStrings["boutique"].ConnectionString;
            }
            catch (Exception e1)
            {
                Console.WriteLine("Erreur de configuration : {0}", e1.Message);
                return;
            }

            Console.WriteLine("Chaîne de connexion à la base : [{0}]\n", connectionString);
            try
            {
                using (SqlCeConnection connexion = new SqlCeConnection(connectionString))
                {
                    // ouverture connexion
                    connexion.Open();
                    MessageBox.Show("success");

                }
            }

            catch (Exception ex)
            {

                Console.WriteLine("Erreur d'accès à la base de données (" + ex.Message + ")");
            } 
        }
    }
}

Thanks a lot for u contribution
Question(Xml) Reading a Selected Node Attributes [modified] Pin
xEvOx2-Apr-10 22:58
xEvOx2-Apr-10 22:58 
Questionloged in user Pin
netJP12L2-Apr-10 16:46
netJP12L2-Apr-10 16:46 
AnswerRe: loged in user Pin
Eddy Vluggen3-Apr-10 14:32
professionalEddy Vluggen3-Apr-10 14:32 
QuestionDownload Video from YouTube Pin
harsimranb2-Apr-10 14:32
harsimranb2-Apr-10 14:32 
AnswerRe: Download Video from YouTube Pin
AspDotNetDev2-Apr-10 14:57
protectorAspDotNetDev2-Apr-10 14:57 
GeneralRe: Download Video from YouTube Pin
harsimranb2-Apr-10 15:13
harsimranb2-Apr-10 15:13 
GeneralRe: Captuing JSON Pin
harsimranb2-Apr-10 18:00
harsimranb2-Apr-10 18:00 

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.