IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Forms Discussion :

Problème dans l'utilisation du WebBrowser


Sujet :

Windows Forms

  1. #1
    Futur Membre du Club
    Inscrit en
    Janvier 2007
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 5
    Points : 5
    Points
    5
    Par défaut Problème dans l'utilisation du WebBrowser
    Bonjour à tous, j'ai explorer pendant un certain temps le langage C++ (console), mais depuis quelques temps je me suis remis mais cette fois en application windows (.Net Framework 2.0 avec visual studio 2005) et de là mon problème.

    Comme expérience de débutant j'ai trouver les joie de la fonction "Navigateur Web" et j'ai eu l'inisiative d'en créer un plus complet.

    Le problème est très simple je n'arrive pas a faire faire le lien entre la "Bar de navigation" et la basse du programme.

    plus simple encore ! quand je tape dans la bar de navigation et que j'appuis sur entré, ben, il ne ce passe RIEN !!! car le lien ne ce fais pas !

    Merci a vous tous de peut-être réusir a m'expliquer comment éxécuter ce lien.

    Ah, aussi lorsque ma sourie est sur la bar de navigation le cursor est dessus il s'afficher avec le sablier (WaitCursor).

    Merci Encore une fois

    MCShiff

  2. #2
    Rédacteur
    Avatar de nico-pyright(c)
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    6 414
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2003
    Messages : 6 414
    Points : 16 075
    Points
    16 075
    Par défaut
    quel composant utilises-tu ? WebBrowser ?
    peut-on voir un peu de code ?

  3. #3
    Futur Membre du Club
    Inscrit en
    Janvier 2007
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 5
    Points : 5
    Points
    5
    Par défaut
    ...En fais je vien de passer environs 12 heures sur ce prog.. alord tout a changer mais si tu veux voir le code pour me donner un coup de main ben ok !
    Juste comme ça, sa peut sembler idiot comme question mais tout ce que je veux faire maintenant c'est faire en sorte que lorsque j'appuis sur "about" dans le fichier "Source.cs" celà m'affiche le fichier "about.cs".

    ::click sur "about" = ouverture de "about" ::


    bon il a plusieurs fichier mais je vais tenter de montrer ceux utile dans ce cas !

    fichier about.cs:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Reflection;
     
    namespace SonnyExplorer
    {
        partial class about : System.Windows.Forms.About
        {
            public about()
            {
                InitializeComponent();
     
                //  Initialize the AboutBox to display the product information from the assembly information.
                //  Change assembly information settings for your application through either:
                //  - Project->Properties->Application->Assembly Information
                //  - AssemblyInfo.cs
                this.Text = String.Format("About {0}", AssemblyTitle);
                this.labelProductName.Text = AssemblyProduct;
                this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
                this.labelCopyright.Text = AssemblyCopyright;
                this.labelCompanyName.Text = AssemblyCompany;
                this.textBoxDescription.Text = AssemblyDescription;
            }
     
            #region Assembly Attribute Accessors
     
            public string AssemblyTitle
            {
                get
                {
                    // Get all Title attributes on this assembly
                    object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
                    // If there is at least one Title attribute
                    if (attributes.Length > 0)
                    {
                        // Select the first one
                        AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
                        // If it is not an empty string, return it
                        if (titleAttribute.Title != "")
                            return titleAttribute.Title;
                    }
                    // If there was no Title attribute, or if the Title attribute was the empty string, return the .exe name
                    return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
                }
            }
     
            public string AssemblyVersion
            {
                get
                {
                    return Assembly.GetExecutingAssembly().GetName().Version.ToString();
                }
            }
     
            public string AssemblyDescription
            {
                get
                {
                    // Get all Description attributes on this assembly
                    object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
                    // If there aren't any Description attributes, return an empty string
                    if (attributes.Length == 0)
                        return "";
                    // If there is a Description attribute, return its value
                    return ((AssemblyDescriptionAttribute)attributes[0]).Description;
                }
            }
     
            public string AssemblyProduct
            {
                get
                {
                    // Get all Product attributes on this assembly
                    object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
                    // If there aren't any Product attributes, return an empty string
                    if (attributes.Length == 0)
                        return "";
                    // If there is a Product attribute, return its value
                    return ((AssemblyProductAttribute)attributes[0]).Product;
                }
            }
     
            public string AssemblyCopyright
            {
                get
                {
                    // Get all Copyright attributes on this assembly
                    object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
                    // If there aren't any Copyright attributes, return an empty string
                    if (attributes.Length == 0)
                        return "";
                    // If there is a Copyright attribute, return its value
                    return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
                }
            }
     
            public string AssemblyCompany
            {
                get
                {
                    // Get all Company attributes on this assembly
                    object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
                    // If there aren't any Company attributes, return an empty string
                    if (attributes.Length == 0)
                        return "";
                    // If there is a Company attribute, return its value
                    return ((AssemblyCompanyAttribute)attributes[0]).Company;
                }
            }
            #endregion
     
            private void okButton_Click(object sender, EventArgs e)
            {
                Close();
            }
        }
    }
    Fichier Source.cs:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
     
    namespace SonnyExplorer
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
     
            private void Form1_Load(object sender, EventArgs e)
            {
     
            }
     
            private void fermerToolStripMenuItem_Click(object sender, EventArgs e)
            {
                Close();
            }
     
            private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
            {
                  ///C'est ici que je devrais entré les commande qui me manque !!!
            }
        }
    }
    ...ET Merci !

Discussions similaires

  1. Réponses: 4
    Dernier message: 13/04/2008, 00h01
  2. Problème dans l'utilisation d'un tableau
    Par NoiBe dans le forum Collection et Stream
    Réponses: 5
    Dernier message: 16/05/2007, 16h19
  3. problème dans l'utilisation de g_access()
    Par bit_o dans le forum GTK+ avec C & C++
    Réponses: 18
    Dernier message: 02/03/2007, 14h57
  4. probléme dans l'utilisation d'un tableau
    Par hamoudasafira dans le forum C++
    Réponses: 10
    Dernier message: 13/12/2006, 08h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo