Solved

I want to make a non-rectangle form.

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 47
Validating VB6 Function 19 50
Access 2013 combo box not working 3 27
Add and format columns in vb6 7 26
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now