How to manipulate with ControlName 
Author Message
 How to manipulate with ControlName

I was trying:
For lineseg = 1 To 10
    Set ControlName = Controls.Add("VB.Line", "aLine" & lineseg)
    ControlName.Name = "Line" & lineseg

    If ((ControlName.x1 < ControlName.X2) And (ControlName.y1 <
ControlName.Y2)) Then
        count = Sqr(Pow(ControlName.y1 - ControlName.Y2) +
Pow(ControlName.X2 - ControlName.x1))

    End If

 Next lineseg

But not successful, can anyone help?
Thanks
Jack



Thu, 15 Dec 2005 15:33:39 GMT  
 How to manipulate with ControlName
I was trying to make controlname point to an existing line
on the form!!
Thanks
Jack


Quote:
> I was trying:
> For lineseg = 1 To 10
>     Set ControlName = Controls.Add("VB.Line", "aLine" & lineseg)
>     ControlName.Name = "Line" & lineseg

>     If ((ControlName.x1 < ControlName.X2) And (ControlName.y1 <
> ControlName.Y2)) Then
>         count = Sqr(Pow(ControlName.y1 - ControlName.Y2) +
> Pow(ControlName.X2 - ControlName.x1))

>     End If

>  Next lineseg

> But not successful, can anyone help?
> Thanks
> Jack



Thu, 15 Dec 2005 15:49:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting controlNAME at runtime, HOW TO ?

2. Stating formname and controlname - Help needed

3. setting up recordsets to manipulate table data

4. Manipulate Access Window

5. Manipulate access window

6. manipulate text in the msgbox function

7. extraneous decimals appear when manipulating a Single

8. Manipulating Data

9. Using VBA to manipulate outlook

10. Manipulate string question?

11. Manipulating another databases' forms

12. Manipulate excel charts from Access.

 

 
Powered by phpBB® Forum Software