?
Solved

I want to make a non-rectangle form.

Posted on 2000-02-15
5
Medium Priority
?
175 Views
Last Modified: 2010-08-05
I want to make a non-rectangle form in VB, I think place a Bitmap on the form and make color which I want to let it dispear on the form is a better way to do. But I'm not able to do this myself, who can help me,please? Thanks very much.
0
Comment
Question by:prefix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 100 total points
ID: 2525484
Put these declarations in a module .BAS:

     Public Declare Function CreateEllipticRgn Lib "gdi32" _
         (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
         ByVal Y2 As Long) As Long


     Public Declare Function SetWindowRgn Lib "user32" _
         (ByVal hWnd As Long, ByVal hRgn As Long, _
         ByVal bRedraw As Boolean) As Long


Put this code in a form:

Private Sub Form_Load()

         Show 'The form!
         SetWindowRgn hWnd, CreateEllipticRgn(0, 0, 300, 200), True

End Sub


Run the project!
Regards.
0
 
LVL 7

Expert Comment

by:kamall
ID: 2525488
No BITMAP required!
0
 
LVL 1

Author Comment

by:prefix
ID: 2525559
Oh,sorry!I didn't post my question clearly.I don't want to make a Rectangle or Elli form, I want to make a form like ICQ's star up pic or the K-jofol mp3 Player's.Not irregular form.
And thank you all the same.If you can solve this,please tell me the way.Thank you.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2525715
0
 
LVL 1

Author Comment

by:prefix
ID: 2529697
Thank You.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question