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 »
|
|
| |
|
|
|
Code Guru Gender:  Posts: 1399 Topics: 85
|
|
|
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!
|
|
| |
|
|
|
Code Guru
Location: India
Gender:  Posts: 1387 Topics: 105
|
|
|
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.
|
|
| |
|
|
|
Code Guru Gender:  Posts: 1399 Topics: 85
|
|
|
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.
|
|
| |
|
|
|
Code Guru
Location: India
Gender:  Posts: 1387 Topics: 105
|
|
|
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.
|
|
| |
|
|
|
New Coder
Location: UK
Gender: 
Age: 26
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
|
|
| |
|
|
|
Code Guru
Location: India
Gender:  Posts: 1387 Topics: 105
|
|
|
April 07, 2009, 01:06:02 AM
|
|
thanks for the link
|
|
| |
|
|
|
New Poster 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 
|
|
| |
|
Computer Head in 'da House! Activity
|
|
Regular Coder Posts: 85 Topics: 9
|
|
|
December 29, 2009, 03:03:27 PM
|
Hey, that's pretty nifty, I'll have to keep that in mind. 
|
|
| |
|
|
|
Regular Coder Posts: 50 Topics: 19
|
|
|
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 »
|
|
| |
|
|
|
Code Guru
Location: India
Gender:  Posts: 1387 Topics: 105
|
|
|
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 »
|
|
| |
|
|
|
Code Guru
Location: India
Gender:  Posts: 1387 Topics: 105
|
|
|
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.
|
|
| |
|
|
| |
|
|
|
New Poster Posts: 11 Topics: 0
|
|
|
January 07, 2011, 03:54:34 AM
|
|
Tricks is to use a background image as a watermark form to adjust the properties of the module so that it becomes transparent. The current form of the square will remain in the original, but the user gets a feel for the shape of a circle.
|
|
| |
|
|
|
New Coder Posts: 20 Topics: 2
|
|
|
April 13, 2011, 02:22:18 PM
|
|
The tricks is apply a background image as watermark for the form then adjust the form properties so that it becomes transparent. The literal form remains the square as original simply the user gets the feel of circular form.
|
|
| |
|
|
|
New Coder Posts: 25 Topics: 2
|
|
|
April 26, 2011, 12:44:00 PM
|
|
The tricks is use a panorama soul as watermark for the forge then set the change properties so that it becomes straight. The factual work relic the number as original but the individual gets the see of advert constitute.
|
|
| |
|
|
|
Professional Coder Gender:  Posts: 242 Topics: 3
|
|
|
August 11, 2011, 08:26:32 AM
|
|
thanks for the information..
|
|
| |