Results 1 to 13 of 13

Thread: [RESOLVED] Form Drag Problem

Threaded View

  1. #1

    Thread Starter
    Lively Member Brian M.'s Avatar
    Join Date
    Nov 2006
    Location
    Moberly MO
    Posts
    94

    Resolved [RESOLVED] Form Drag Problem

    Hello. I got this source from here or planet source code, and it makes a picture into a clock. I used it to create a custom clock and it drags around just fine on my computer. I am running 98se. But when I send it to my friends, it won't drag around their desktop. Can someone help me sort this out? Thanks.

    You need one form with form color set to &H00FF00FF&: picture on the form, a picturebox: blank, a label, and a timer with interval of 10. I posted the code for the form and the module is an attachment. Make sure you put the blank picturebox on top of the graphics that will show, it is what closes the window, that is if you want to see it in action.


    Form Code
    Vb Code Code:
    1. Private Sub Form_Load()
    2.  
    3. AutoFormShape clock, RGB(255, 0, 255)
    4. clock.Show 1
    5. End Sub
    6.  
    7.  
    8. Private Sub Image1_Click()
    9. End
    10. End Sub
    11.  
    12. Private Sub Timer1_Timer()
    13. Label1.Caption = Time
    14. End Sub
    15.  
    16. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    17. Const WM_NCLBUTTONDOWN = &HA1
    18. Const HTCAPTION = 2
    19.    Call ReleaseCapture
    20.    SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
    21. End Sub
    Attached Files Attached Files
    Last edited by Brian M.; Jul 23rd, 2007 at 03:55 PM. Reason: update code

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