Results 1 to 3 of 3

Thread: change RTB.location when checkbox.checked

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Question change RTB.location when checkbox.checked

    Whats wrong with this code?

    When a checkbox is checked, the richtextbox1 will move to a new location in form3.

    Code:
    If CheckBox1.Checked Then
        Form3.RichTextBox1.Location = (28,08)
    End If
    Last edited by Eldrup; Jun 14th, 2009 at 09:35 AM. Reason: Spell..
    Eldrup

  2. #2
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: change RTB.location when checkbox.checked

    The location property is expecting a point, so you need to create one :

    Code:
    If CheckBox1.Checked Then Form3.RichTextBox1.Location = New Point(28, 08)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Re: change RTB.location when checkbox.checked

    Thank you very much! :')
    Eldrup

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width