A form w/ a menu but w/out the title bar...

i've made a form that has a menu in it but i don't want the title bar showing.  but because the menu is there, i can't get rid of the title bar.  even though the borderstyle of the form is set to "none", the title bar is still there!!!  how can i get rid of it??  i'm using vb4-32
llcoolmelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

llcoolmelAuthor Commented:
Edited text of question
0
ndnetCommented:
Make the menu a popup. (Right CLick, with sub menus.) Just create a regular menu with the menus you would want as submenus in it. Then use the following code and change the second word in the 3rd line for the name of your menu.

Private Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
      If Button = 2 Then
            PopupMenu mnuFile
      End If
End Sub




0
llcoolmelAuthor Commented:
i have already tried that and i tried it again...still can't get rid of the title bar.  i have also tried making the menu not visible and popup in the form but the title bar is still there.  
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

alamoCommented:
You have to get rid of the menu on your form... even though your border is set to none, the presence of a menu will cause the menu to be shown (as you've found).

But that doesn't matter: the pop-up menu doesn't need to be in the same form. Here's the procedure:

Your main form is Form1. Create it with no menu and no border.
Create Form2 with a single menu item (named mnuFile, for example) and place the menu items you want in your pop-up menu as submenu items.

In Form1 add the popup menu as follows (a slight mdification of what's shown in the Help Example)

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 2 Then
        PopupMenu Form2.mnuFile
    End If
End Sub

Notice that instead of "PopupMenu mnuFile" it's "PopupMenu Form2.mnuFile". Now Form1 will have no title bar but will have a popup menu.

If you want your menu items to activate Subs inside Form1 (if they need access to Private data, for example), then make those Subs Public and make your menu items in Form2 do nothing except call those Subs.

One more thing - you must put "Unload Form2" in your Form1_Unload sub, so that the app shuts down properly.

Hope this does what you need, good luck!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
llcoolmelAuthor Commented:
"...i love you..."
0
alamoCommented:
LOL, glad I could help!
0
ndnetCommented:
Not to be critical here, but I came up with the idea of a poup menu in the first place.
0
MirkwoodCommented:
Bought This Question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.