Change the shape of form in VB6 |
| |
|
|
|
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 »
|
|
| |
|
|
|
Hacker Gender:  Posts: 1224 Topics: 78
|
|
|
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!
|
|
| |
|
|
|
Hacker
Location: India
Gender:  Posts: 1101 Topics: 94
|
|
|
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.
|
|
| |
|
|
|
Hacker Gender:  Posts: 1224 Topics: 78
|
|
|
December 19, 2008, 04:35:59 AM
|
|
Ah right.... very clever!
|
|
| |
|
|
|
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.
|
|
| |
|
|
|
Hacker
Location: India
Gender:  Posts: 1101 Topics: 94
|
|
|
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.
|
|
| |
|
Jennifer Linn Contest Points: 100
|
|
New Coder
Location: UK
Gender: 
Age: 24
Posts: 22 Topics: 5
|
|
|
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
|
|
| |
|
|
|
Hacker
Location: India
Gender:  Posts: 1101 Topics: 94
|
|
|
April 07, 2009, 01:06:02 AM
|
|
thanks for the link
|
|
| |
|
|
|
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  thx for the great tip 
|
|
| |
|
|
|
Regular Coder Posts: 85 Topics: 9 Computer Head in 'da House!
|
|
|
December 29, 2009, 03:03:27 PM
|
Hey, that's pretty nifty, I'll have to keep that in mind. 
|
|
| |
|
|
|
New Coder Posts: 39 Topics: 15
|
|
|
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 »
|
|
| |
|
|
|
Hacker
Location: India
Gender:  Posts: 1101 Topics: 94
|
|
|
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.
|
|
| |
|
|
|
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 »
|
|
| |
|
|
|
Hacker
Location: India
Gender:  Posts: 1101 Topics: 94
|
|
|
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.
|
|
| |
|
|
| |