🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #17115

Re: VB : Drag en Drop

#17115
From: _Avenger
Date: Tue, 08 Feb 2000 00:00
46 lines
2015 bytes
On Mon, 7 Feb 2000 22:36:25 +0100, "Elektron"
<pascal.lieckens@skynet.be> wrote:

werk met de source.name (let op, case sensitive dan)
in je code staat ook niks met een "tag" aanpassing.

probeer volgende eens, typfouten wel wegwerken he ;-)

-----------
Private Sub PictureBox1_Dragdrop(Source As Control, X As Single, Y As
Single)
    
    If Source.Name = "PictureBox2" Then
        PictureBox1.Tag = PictureBox2.Tag
    End If

End Sub
-----------



>Ik heb een picturebox met als afbeelding bv. een icoontje.
>Nu wil ik dit icoontje verslepen naar een tweede picturebox.
>Zover geen probleem.
>Nu heb ik de TAG - property van de eerste picturebox de waarde 1 gegeven ,
>met als doel de TAG - property van de tweede picturebox te laten wijzigen in
>1om er een test op uit te voeren.
>Dit lukt echter niet , de TAG - property wordt niet gewijzigd.Ik gebruik de
>volgende code :
>  Private Sub Pict1_DragDrop(Source as Control, X as Single, Y as Single)
>    If TypeOf Source Is PictureBox then
>              Pict1.Picture = Source.Picture
>    End If
>  End Sub
>Waar zit ik verkeerd ?
>                                                      Bedankt bij voorbaat
>
>

Avenger

remove  the obvious from e-mail
----------------------------------------------
Windows9x Faq : www.crosswinds.net/~windows9x
----------------------------------------------
Till all are one!
Technical Details
Message-ID: <389fb522.28941603@news.pandora.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <87ndqv$qij$1@news0.skynet.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,4104175bc2d2d29c
X-Google-Attributes: gidfcea4,public
From: _Avenger@NO_SPAM_flashmail.com
Subject: Re: VB : Drag en Drop
Date: 2000/02/08
Message-ID: <389fb522.28941603@news.pandora.be>
X-Deja-AN: 583019696
References: <87ndqv$qij$1@news0.skynet.be>
X-Complaints-To: abuse@pandora.be
X-Trace: afrodite.telenet-ops.be 949990833 212.123.2.110 (Tue, 08 Feb 2000 07:20:33 MET)
Organization: Don't Know
Reply-To: _Avenger@NO_SPAM_flashmail.com
NNTP-Posting-Date: Tue, 08 Feb 2000 07:20:33 MET
Newsgroups: be.comp.programming