Programming and Webmasters forum
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Change the shape of form in VB6

 
webmaster forum
hardy  Offline
 
New Coder
Posts: 25
Topics: 16
December 18, 2008, 03:32:46 AM

Vb 6 is having rectangular form , is it possible to change the shape of the form? I want to convert it to a shape in which My image is. Is it possible?
« Last Edit: January 02, 2009, 04:47:09 AM by Admin »
 
webmaster forum
polas  Offline
*
 
Code Guru
Gender: Male
Posts: 1296
Topics: 80
WWW
December 18, 2008, 06:46:22 AM

Not sure if it is possible to move from the rectangular shape - if you find out a way then let us know!

Mesham Type Oriented Parallel Programming Language
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1221
Topics: 95
Technical_Talk
WWW
December 18, 2008, 09:00:55 AM

It’s something tricky, but it’s possible. And I remember I did it in my graduation projects. I made a circular Login Screen for my project in VB 6.0.

The tricks is use a background image as watermark for the form then adjust the form properties so that it becomes transparent. The actual form remains the square as original but the user gets the feel of circular form.

Try this and let us know if this works out for you or not.


Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
 
webmaster forum
polas  Offline
*
 
Code Guru
Gender: Male
Posts: 1296
Topics: 80
WWW
December 19, 2008, 04:35:59 AM

Ah right.... very clever!

Mesham Type Oriented Parallel Programming Language
 
webmaster forum
vijay12  Offline
 
Regular Coder
Posts: 67
Topics: 33
January 01, 2009, 11:55:42 PM

it is possible to change the shape of the form as desired, the form remains in a rectangular shape. it is a default shape. once i too have tried to make it, but went in vein. the appearance of the form can be changed by changing the background color of the form and also adding some images.
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1221
Topics: 95
Technical_Talk
WWW
January 02, 2009, 04:46:52 AM

Yeah, that's what I said in my previous posts. Using background image makes the trick go right.

Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
 
webmaster forum
Jennifer Linn
 
New Coder
Location: UK
Gender: Female
Age: 24
Posts: 22
Topics: 5
WWW
March 16, 2009, 10:41:50 PM

I think it is possible, you can check the link below for more details:

http://www.a1vbcode.com/app-3789.asp


Service Management Software
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1221
Topics: 95
Technical_Talk
WWW
April 07, 2009, 01:06:02 AM

thanks for the link

Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
 
webmaster forum
angel  Offline
 
New Coder
Posts: 11
Topics: 7
May 15, 2009, 01:29:13 PM

awesome i never knew u could change the shape...maybe i could use this in my project Smiley

thx for the great tip Wink
 
webmaster forum
 
Regular Coder
Posts: 85
Topics: 9
Computer Head in 'da House!
WWW
December 29, 2009, 03:03:27 PM

Hey, that's pretty nifty, I'll have to keep that in mind. Cheesy

Your PC Forums
 
webmaster forum
singam  Offline
 
Regular Coder
Posts: 50
Topics: 18
June 19, 2010, 11:18:36 PM

Check the source.  You will have to create images for each menu item in the text style you want.  Or you can use images of anything.  Sorry that the answer was from Google Answers.

To change the main menu line, after the line
hwndMainMenu = GetMenu(hwnd)

Just add in another loop
For i = 0 To CUSTOMMENUS - 1
With typMenuInfo
. cbSize = Len(typMenuInfo)
. fType = MFT_BITMAP
. fMask = MIIM_TYPE
. dwTypeData = PicMenus(i). Picture
End With
SetMenuItemInfo hwndMainMenu, i, True, typMenuInfo
Next i

For the sub-menus just change the last value in:
hwndSubMenu = GetSubMenu(hwndMainMenu, 0)
Change the 0 to a 1 or whatever submenu

« Last Edit: June 19, 2010, 11:26:59 PM by Admin »
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1221
Topics: 95
Technical_Talk
WWW
June 19, 2010, 11:31:46 PM

@singam: Thanks for copy pasting the text from Google answers, but we really dislike people who just copy some code from other sites and then paste it here.

On other note, the question which is discussed here is about How to change to shape of the form in VB 6.0? and not something like How to work on menus in VB 6.0?

Therefore your answer sounds irrelevant to me.

Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
 
webmaster forum
 
New Poster
Posts: 2
Topics: 0
July 03, 2010, 01:05:01 AM

having rectangular form , is it possible to change the shape of the form? I want to convert it to a shape in which My image is


Edit:Removed self promotional links and they are allowed only in signatures.
« Last Edit: July 03, 2010, 06:47:40 AM by Admin »
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1221
Topics: 95
Technical_Talk
WWW
July 03, 2010, 06:50:16 AM

@proximityinfotech4:  That is what very one in this tread are talking about. You can change the shape of the forum similar to the image available with you.

Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
 
webmaster forum
hitmark  Offline
 
Regular Coder
Posts: 91
Topics: 13
July 20, 2010, 10:44:19 PM

http://www.greatis.com/vb/formdes/download.html  it is the run time control to design the form.

Orchids Flowers | Wedding Flowers | Wedding Decorations
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC


Google visited last this page August 24, 2010, 09:30:37 PM