cjk

Ok, I am making an application that has multiple "things" to it.

I want to make a form that has, say, 3 links to other forms in it. One that links to a form with a webbrowser, one with a form with a notepad, and one that links to a form with a media player. But, i don't want the other 3 forms to be shown at startup...can someone help me with this

Along with that can someone give me a code to use for the media player so they can choose music from their computer to play in it

Please and Thank you




Re: Visual Basic Express Edition question (sort of hard to explain in subject)

Karl Davies-Barrett - MCT

OK I get what you want.

For starters you could use an MDI with a menustrip across the top. Set this forms isMDIContainer to true in the properties window/ In the menu you can have File -> quit, utilites -> Web, Notepad, Media player.

Now create three other forms, right click project in the solution explorer, add Windows form and behind the menuitem_click, put

Code Snippet

dim frmBrowser as new Form2 ' 3 and 4 etc Give them better names than this :)

frmBrowser.mdiparent = me

frmBrowser.show

and the same for the other two.

Now to get a notepad I would dock a richtextbox to 'fill' the whole page.

For the mediaplayer you need to add a new control to your toolbox. Right click, Choose toolbox items: And find windows media play under the COM components tab.

Next you need an openfiledialog with the filter set to "Media file | *.wmv;*.mp3".

A button behind which you put a call

Code Snippet

openfildialog1.showdialog

AxWindowsMediaPlayer1.URL = OpenfileDialog1.Filename

You can get fancy and fill the playlist if you wish Smile

For the browser there is already a control in your toolbox

Hope this gets you started, let me know how you get on






Re: Visual Basic Express Edition question (sort of hard to explain in subject)

cjk

I'm sorry I'm new to this. What is an MDI




Re: Visual Basic Express Edition question (sort of hard to explain in subject)

cjk

nevermind i figured it out. Thank-you so much!