Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Zoury
Salut Alexandre! :O)
I need to add several mscomm object into my projet. I didn't to drag
16
time the icon for the mscomm object. How can I declare and use it ?
Contrairement à une classe, un contrôle *doit* être instancier sur un formulaire. Alors si tu emplois le contrôle MSComm, tu pourrais utiliser un tableau de contrôles pour parvenir à tes fins. Voici une façon de faire.
1. Drop le premier MSComm sur ton formulaire. Il portera le nom MSComm1. 2. Assigne l'index 0. Note que maintenant ton contrôle se nomme MSComm1(0).
Maintenant tu as un tableau (ou groupe) de contrôles MSComm contenant un contrôle. Il ne te reste plus qu'à charger les autres dynamiquement à l'aide de quelque ligne de code.
Regarde l'adresse suivante :
Comment ajouter dynamiquement des contrôles sur un form ? http://faq.vb.free.fr/index.php?question
PS: If you didn't understand a single word of what I just wrote, it's possibly because you're on the wrong group. If that's true than consider posting your questions in an english newsgroup.
Here's a few groups that can be of help :
microsoft.public.vb.general.discussion ' my favorite one!! microsoft.public.vb.winapi microsoft.public.vb.winapi.graphics microsoft.public.vb.control microsoft.public.vb.syntax microsoft.public.vb.*
Concerning your question if you didn't understand, post an answer here and we'll be pleased to translate it for you.
-- Cordialement Yanick Lefebvre - MVP pour Visual Basic http://faq.vb.free.fr/?rubrique=0 - http://www.mvps.org/vbnet/ http://www.mentalis.org/agnet/apiguide.shtml - http://www.mztools.com/ "Alexandre Magny" wrote in message news:
Hi,
Here is what I have
Public comport1 as mscomm public comport2 as mscomm
I want to do something like set Comport1 = new mscomm set Comport2 = new mscomm ...
for creating the object mscomm, but i cann't use a new.... How I can do this ?.. probably simple to do...I just need the good way for doing this
Thanks
Salut Alexandre! :O)
I need to add several mscomm object into my projet. I didn't to drag
16
time the icon for the mscomm object. How can I declare and use it ?
Contrairement à une classe, un contrôle *doit* être instancier sur un
formulaire. Alors si tu emplois le contrôle MSComm, tu pourrais utiliser un
tableau de contrôles pour parvenir à tes fins. Voici une façon de faire.
1. Drop le premier MSComm sur ton formulaire. Il portera le nom MSComm1.
2. Assigne l'index 0. Note que maintenant ton contrôle se nomme MSComm1(0).
Maintenant tu as un tableau (ou groupe) de contrôles MSComm contenant un
contrôle.
Il ne te reste plus qu'à charger les autres dynamiquement à l'aide de
quelque ligne de code.
Regarde l'adresse suivante :
Comment ajouter dynamiquement des contrôles sur un form ?
http://faq.vb.free.fr/index.php?question
PS: If you didn't understand a single word of what I just wrote, it's
possibly because you're on the wrong group. If that's true than consider
posting your questions in an english newsgroup.
Here's a few groups that can be of help :
microsoft.public.vb.general.discussion ' my favorite one!!
microsoft.public.vb.winapi
microsoft.public.vb.winapi.graphics
microsoft.public.vb.control
microsoft.public.vb.syntax
microsoft.public.vb.*
Concerning your question if you didn't understand, post an answer here and
we'll be pleased to translate it for you.
--
Cordialement
Yanick Lefebvre - MVP pour Visual Basic
http://faq.vb.free.fr/?rubrique=0 - http://www.mvps.org/vbnet/
http://www.mentalis.org/agnet/apiguide.shtml - http://www.mztools.com/
"Alexandre Magny" <AMagny@Infynia.com> wrote in message
news:ekW2rSDbDHA.3768@tk2msftngp13.phx.gbl...
Hi,
Here is what I have
Public comport1 as mscomm
public comport2 as mscomm
I want to do something like
set Comport1 = new mscomm
set Comport2 = new mscomm
...
for creating the object mscomm, but i cann't use a new.... How I can do
this ?.. probably simple to do...I just need the good way for doing this
I need to add several mscomm object into my projet. I didn't to drag
16
time the icon for the mscomm object. How can I declare and use it ?
Contrairement à une classe, un contrôle *doit* être instancier sur un formulaire. Alors si tu emplois le contrôle MSComm, tu pourrais utiliser un tableau de contrôles pour parvenir à tes fins. Voici une façon de faire.
1. Drop le premier MSComm sur ton formulaire. Il portera le nom MSComm1. 2. Assigne l'index 0. Note que maintenant ton contrôle se nomme MSComm1(0).
Maintenant tu as un tableau (ou groupe) de contrôles MSComm contenant un contrôle. Il ne te reste plus qu'à charger les autres dynamiquement à l'aide de quelque ligne de code.
Regarde l'adresse suivante :
Comment ajouter dynamiquement des contrôles sur un form ? http://faq.vb.free.fr/index.php?question
PS: If you didn't understand a single word of what I just wrote, it's possibly because you're on the wrong group. If that's true than consider posting your questions in an english newsgroup.
Here's a few groups that can be of help :
microsoft.public.vb.general.discussion ' my favorite one!! microsoft.public.vb.winapi microsoft.public.vb.winapi.graphics microsoft.public.vb.control microsoft.public.vb.syntax microsoft.public.vb.*
Concerning your question if you didn't understand, post an answer here and we'll be pleased to translate it for you.
-- Cordialement Yanick Lefebvre - MVP pour Visual Basic http://faq.vb.free.fr/?rubrique=0 - http://www.mvps.org/vbnet/ http://www.mentalis.org/agnet/apiguide.shtml - http://www.mztools.com/ "Alexandre Magny" wrote in message news:
Hi,
Here is what I have
Public comport1 as mscomm public comport2 as mscomm
I want to do something like set Comport1 = new mscomm set Comport2 = new mscomm ...
for creating the object mscomm, but i cann't use a new.... How I can do this ?.. probably simple to do...I just need the good way for doing this