OpenLink Software

Usage stats on VB vs Delphi - Creating Components at Runtime

 Permalink

an Entity in Data Space: 134.155.108.49:8890

In VB 6 create a new project with a label (Label1) and a textbox side-by-side (Text1). Set the Index property to 0. This will set up a control array. Add the following code to the form: Option Explicit Private Function mfPixelsToTwips(ByVal vlngPixels As Long) As Long mfPixelsToTwips = vlngPixels * 15 End Function Private Sub Form_Load() Dim llngIndex As Long For llngIndex = 1 To 5 Load Label1(llngIndex) Label1(llngIndex).Top = Label1(llngIndex - 1).Top + Label1(llngIndex - 1).Height + mfPixelsToTwips(3) Label1(llngIndex).Visible = True Load Text1(llngIndex) Text1(llngIndex).Top = Label1(llngIndex - 1).Top + Label1(llngIndex - 1).Height + mfPixelsToTwips(3) Tex

Identifier (URI)Rank
dbkwik:resource/Ec5JTQhpux13fj8vJL7IFg==5.88129e-14
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software