Code queasy


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Code queasy

  1. #1
    donna brooks Guest

    Code queasy


    I'm trying to build my first project; a form that uses a picture window, and
    two command buttons:

    command1 displays the picture (a bitmap I created)
    command2 clears the picture

    I'm having trouble either coding this program or placing the object.properties
    in the right sequential order.

    Can somebody help...Quick?

  2. #2
    Steve Abel Guest

    Re: Code queasy


    Try adding somthing like this to your forms code:

    Private Sub Command1_Click()
    Picture1.Picture = LoadPicture("c:\Test.bmp")
    End Sub

    Private Sub Command2_Click()
    Picture1.Picture = Nothing
    End Sub

    Good luck,
    Steve

    "donna brooks" <donnabrooks@att.net> wrote:
    >
    >I'm trying to build my first project; a form that uses a picture window,

    and
    >two command buttons:
    >
    > command1 displays the picture (a bitmap I created)
    > command2 clears the picture
    >
    >I'm having trouble either coding this program or placing the object.properties
    >in the right sequential order.
    >
    >Can somebody help...Quick?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center