Computing.Net > Forums > Programming > polygon shaped forms in vb6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

polygon shaped forms in vb6

Reply to Message Icon

Name: phyre
Date: July 21, 2003 at 10:08:10 Pacific
OS: Windows XP Pro
CPU/Ram: 2.4 ghz / 384 mb
Comment:

how can i create a polygon shaped form with givin points in vb6?



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: July 21, 2003 at 18:34:37 Pacific
Reply:

I am guessing you want to "skin" the form. It is pretty simple, give me a day to find my source code, but in the mean time you can steal my dll. http://www.evolutionsoftwarellc.com/downloads/ES_EffectsLibrary.dll

After you download it, you need to register it (it is an activeX dll). I suggest placing it in your Windows/System32 directory under its own folder.

If you don't know how to regsvr, do this:
1) Click on START/RUN and type in "command" (win9x,me) or "cmd" (win nt,2k,xp)
2) Type regsvr32 c:\windows\system32\ESDLL\ES_EffectsLibrary.dll (or where ever you stored it)

You should get a message saying it was registered ok.

If you ever want to unregister it, use REGSVR32 -u C:\windows\system32\ESDLLs\ES_EffectsLibrary.dll

Once that is done, you can open your project in vb and choose PROJECT/REFRENCES from the main menu. then find Evolution Software Effects Library v1.0 and check it and then click OK

I assume you know how to make objects, but here is some code showing you how:
Dim objFX As ES_EffectsLibrary.Graphics
Dim objTrayIcon As ES_EffectsLibrary.ToolTrayIcon
Dim objUI As ES_EffectsLibrary.UserInterface

The objFX can skin a form or return errors
The objTrayIcon can add/modify/remove a tray icon as well as report errors
The objUI can Drag, Minimize windows and report errors.

Use the objFX to skin your form. You will need to specify the form you want to skin, the source picturebox (must be in twips not pixel format) and the transparent color.

Use the objTrayIcon to make your programs run in the tooltray. You add it to show it, remove it to get rid of it, and modify it to change it while the app is running.

Use the objUI to drag your form that you skinned, since you must use a form that has border style = 0 (none). What i do is place this in my form's mousedown event:
objUI.DragWindow "form1".

I will go find the skinning code...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: polygon shaped forms in vb6

Countdown timer in VB6 www.computing.net/answers/programming/countdown-timer-in-vb6/13947.html

Forms in VB6 www.computing.net/answers/programming/forms-in-vb6/11793.html

Random colors in VB6 form www.computing.net/answers/programming/random-colors-in-vb6-form/10627.html