Results 1 to 3 of 3

Thread: Shapes and sounds

  1. #1

    Thread Starter
    Lively Member Professor29's Avatar
    Join Date
    Feb 2002
    Posts
    89

    Question Shapes and sounds

    I'm currently working on a Simon clone, but I have a few questions. First, is there a way to crop labels and forms into custom shapes and if so, how? Second, is it possible to generate sound in VB without using sound files?
    ERROR: No keyboard detected. Hit F1 to continue.

  2. #2
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    u could use a shape control, and good luck with sound, ive seen it done in c++, but its very slow, and would have to be generated, saved then used, if its possible in vb then it would take forever to make(the sound). i think there is a .something property for rendering, or u could use setpixel, ill check.

  3. #3
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Yes, to crop forms(or, in fact, anything with a window handle (a .hWnd property in VB) ), you can use the various Region functions. Take a browse through the MSDN.

    If you mean without EXTERNAL sound files, you can add sound data to your exe, with resources, and then load the data into memory at runtime, and play it that way.

    Z.

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