Solved

I want to make a non-rectangle form.

Posted on 2000-02-15
5
172 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 50 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

Industry Leaders: 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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

739 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