Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1089 connectés 

  FORUM HardWare.fr
  Programmation
  Divers

  bug dans mon programme vb.net besoin d'aide ( resolu)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

bug dans mon programme vb.net besoin d'aide ( resolu)

n°362630
bossamiral​2
Ctrl+Alt+Del
Posté le 16-04-2003 à 00:38:41  profilanswer
 

ben voilà je n'arrive pas a compiler, mon application il me colle une erreur à la compilation et je ne comprend pas du tout ou est le problème. en gros je sèche.
 
Erreur pour le paramètre 'e' de 'Private Sub tmrReadCommPort2_Tick(sender As Object, e As System.EventArgs)'.
 
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim a As String
        a = "TT,12" & Chr(13)
        ' Try to get info from the Comm Port.
        Try
            Me.tmrReadCommPort2_Tick.Enable = True
            m_CommPort.Open(1, 19200, 8, Rs232.DataParity.Parity_None, Rs232.DataStopBit.StopBit_1, 4096)
            m_CommPort.Write(Encoding.ASCII.GetBytes(a))
            ' Try to read a single byte. If you get it, then assume
            '   that the port contains a modem. Clear the buffer before  
            '   leaving.
            System.Threading.Thread.Sleep(200)
            Application.DoEvents()
            m_CommPort.Close()
        Catch exc As Exception
            ' Nothing to read from the Comm Port, so set to False
            MessageBox.Show(" impossible de communiquer" )
        Finally
            Me.tmrReadCommPort2_Tick.enable = False
        End Try
    End Sub
 
    Private Sub tmrReadCommPort2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrReadCommPort2.Tick
        Try
            While (m_CommPort.Read(1) <> -1)
                WriteMessage(Chr(m_CommPort.InputStream(0)), False)
            End While
        Catch exc As Exception
        End Try
 
    End Sub


Message édité par bossamiral2 le 16-04-2003 à 20:28:21
mood
Publicité
Posté le 16-04-2003 à 00:38:41  profilanswer
 

n°362635
bossamiral​2
Ctrl+Alt+Del
Posté le 16-04-2003 à 00:44:47  profilanswer
 

si vous voulez, je vous envoie la source c'est plus simple


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Divers

  bug dans mon programme vb.net besoin d'aide ( resolu)

 

Sujets relatifs
Lecture et ecriture sur des ports tcp [Resolu] MerciErreur d'execution 94 avec MS VB ==> besoin aide requete SQL
[XSLT] aide transformation par le brouterUtiliser les etats d'access à partir de VB... (RESOLU)
Aide pour composant Rave[Oracle&SQL].sql contenant la creation de plusieurs triggers (RESOLU)
[Résolu] Espace non désiré sous une image dans un tableauis, isw routines...[résolu]
Erreur lors de l'execution d'un programme en Java 
Plus de sujets relatifs à : bug dans mon programme vb.net besoin d'aide ( resolu)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR