Solved

I want to make a non-rectangle form.

Posted on 2000-02-15
5
163 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now