Re: Labels



Thanks Randy,
Stan

Randy Day wrote:
>
> Stan Weiss wrote:
> > Can some give me the pro's and con's for when you would code each of
> > these 2 different methods.
> >
> > Label 1 to Label 111
>
> p: quick 'n easy - drag 'n drop
> c: each control must have own subs and functions
> c: no looping through controls; each must be tested
> in code separately
> c: no creating new controls at runtime
>
> > verses
> > Label 1(0) to label 1(110)
>
> p: loops such as the following:
> for x = 0 to 110
> if label 1(x) = "test" then
> 'do something
> end if
> loop
>
> p: add new controls on the fly:
> redim preserve label 1(112)
> 'code here to position and use new label 1(111)
>
> p: control subs/funcs now get 'Index' variable,
> so one sub can be written to handle all labels.
> Lots less code needed
>
> c: requires 30 seconds more thought at design time
> to implement than 110 separate labels
>
> HTH
.



Relevant Pages

  • RE: Dynamic control creation.
    ... of a check box that the value of the label is updated), ... javascript on the checkboxes to update the value of this label, ... When i looked in the source code i found out that the server side label ... controls) recreates the 3 checkboxes. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Laying out controls: suggestions for improving performance?
    ... I would not use separate controls for each label and link label. ... and draw the Labels and LinkLabels in an OnPaint override. ... > Frank McKenney, McKenney Associates ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Dynamically creating labels and textboxes in a panel
    ... I have an array of polygons, and I need to create controls so that people ... string sLabelText, // text to use for the label ... TextBox txt, // the textbox control ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How can I create a dynamically FORM?
    ... About the scroll bar that I wrote before, it happens if I open in the view ... Label on the form for you. ... I can bind the recordset to a form without a problem. ... Change programmatically the name of the controls (acTextControl) ...
    (microsoft.public.access.formscoding)
  • Re: DrawString text quality
    ... It draws its text using GDI+ DrawString. ... In fact Label is one of the few native .NET controls. ...
    (microsoft.public.dotnet.framework.drawing)