Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    VB --- Controls Add ????

    Ciao ragazzi ho un problema ,

    in run time mi creo un oggetto label

    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    TextCount = TextCount + 1
    Set NewObj = Controls.Add("VB.Label", "Label" & TextCount)
    With NewObj
    .Visible = True
    .Caption = InputBox("Inserisci il testo", "Testo")
    .Top = 10
    .Left = 10
    .Width = 2175
    End With
    Me.Refresh
    End Sub

    Il problema che devo creare n label , e ogni label devo fare il drag drop , come faccio a identificarli e fare il drag drop?
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

  2. #2
    Utente di HTML.it
    Registrato dal
    Apr 2002
    Messaggi
    144
    Hai pensato a creare una matrice di controlli?

  3. #3

    Si..però..

    Si però che ci faccio ? Come la referenzio quando devo fare il drag drop? Hai qualke esempio?
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

  4. #4
    se ti crei una matrice di controlli hai provato a referenziarli con la proprietà index?
    *** Rachele TI AMO DA MORIRE!!! ***

  5. #5
    sembra che con il withevents riesca a leggerli..quando ho finito posto il codice
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.