Clonning Controls.....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    Clonning Controls.....

    Hi all,
    I want to make an array of controls.
    In my case i have an image and a label control i have setted their index to 0. Now i want to create an array of both controls at runtime.

    Thanx
    >> ALI <<
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by Ali Rizwan
    Hi all,
    I want to make an array of controls.
    In my case i have an image and a label control i have setted their index to 0. Now i want to create an array of both controls at runtime.

    Thanx
    >> ALI <<
    Hello Ali!

    Can you give us a little more background? You can be specific as far as code written on the subject for starters; please also go into what you are trying to achieve. There has to be an idea here for you:-)

    In a bit!

    Dököll

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      Try This Code:

      [code=vb]
      Dim i As Integer
      For i = 1 To 5
      Load Label1(i)
      With Label1(i)
      .Left = 120
      .Top = i * 300
      .Visible = True
      End With
      Next
      [/code]

      Regards
      Veena

      Comment

      • Ali Rizwan
        Banned
        Contributor
        • Aug 2007
        • 931

        #4
        Originally posted by Dököll
        Hello Ali!

        Can you give us a little more background? You can be specific as far as code written on the subject for starters; please also go into what you are trying to achieve. There has to be an idea here for you:-)

        In a bit!

        Dököll
        Ya ofcourse!
        As i say i m building a shell with security support and i was forgot the code that how to clone any control.
        Actually i was doing this because on my desktop there must be some icons, and the icons must populate, dynamically that is why i need to make an array of icon instead of creating an array manually of 20,30 or any large number.
        So that is why i raise this question but before reading this i was done with my code and i succeed to make an array of controls at runtime. But now i want to make an control for icons. But i was having an other problem that i am using png files for my programe cuz they are better than other all. Control does not support me to set the backgorund completely transperent. It transperents itself but png's shadow also vanished and i cant see the caption of label(caption of icons). Seconf problem in my ocx i m using fade effects on icons. Actually icons are 3-D and are ful of effects. And i m was failed to create such type of effects on the control. For this i need to make a large codings and to call a lot of API's and i was done with this in making of PNG image control. I can't waste my more energy in such case. So i think about the array of 2 controls instead of 1 control.
        This programe is maybe the biggest and the best programe of my programming life i m using my whole energy in it. But because of lack of ideas i cant put much attraction than vista's explorer. But its after all better that vista's explore(shell) :). I want to put more effects in it.

        Thanx for helping.
        >> ALI <<

        Comment

        Working...