Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: Sizing & Not Tiling a background image


Message #1 by tim_willey@c... on Tue, 14 May 2002 17:01:04
Using a text box for this example:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click
        Dim x As Integer
        Dim y As Integer

        x = Me.Size.Width
        y = Me.Size.Height

        TextBox1.Size = New Size(x, y)
End Sub

Hope this helps,
Seth

> Hello

> Does anybody know how to:
a> :  Size my Form background image to any size I want it?
b> :  Not tile my background image.
B> asically I have a form that is , say, 400 x 400 and I want to use any 
i> mage as its background but not tiled.

> Tim

  Return to Index