Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

[VB2010] - what is wrong with these 'for each'?????

$
0
0
Code:

Dim a As Windows.Forms.Control
        For Each a In RichTextBox1.Controls
            Debug.WriteLine(a)
            Rect1 = New Rectangle(a.Location.X, a.Location.Y, a.Size.Width, a.Size.Height)

by some reason i don't recive the right results in variable 'a'. what i'm doing wrong?

Viewing all articles
Browse latest Browse all 27201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>