clint 2

Hi guys

can you help me out here

if I do a

Process.Start("c:\program files\super mp3\smrpro.exe")

smrpro opens in the middle of my form........

how do I reposition it, or dock it....and how do I kill it

Process.GetCurrentProcess.Kill()......just kills my project

any help please

cheyenne




Re: Visual Basic Express Edition process kill

ReneeC

 

Guys

 

This was why I recommended a control instead of the DLL.






Re: Visual Basic Express Edition process kill

cheyenne

hiya fan

you know....you are far too advanced for me renee

your coding baffles me.....

This was why I recommended a control instead of the DLL

what do you mean.....

help me out please......

I got process start.........so how do I process stop.....

simplicity is the key.....lol

your fan

cheyenne






Re: Visual Basic Express Edition process kill

ReneeC

 

For Learning.....

Start a new project......

Tools | properties | choose Toolbox items | Com Components | windows Media Player

This will add the control to your tools box... but it's hard to find. Look under General

The Windows Media Player Control can be moved to your form just like any other control.

The player I sent you, is Windows Media Player. You can completely control it's size shape and visibility if you like.

On my player you can't even see it. I control it via the mcisendstring interface. But I never have the problems you're having which is why I recommended this way. When you see it and when you play with it, you'll really like it.

 "your coding baffles me....."

My coding baffles me too ....






Re: Visual Basic Express Edition process kill

cheyenne

renee

I am using the same windows player and I can hide it, resize it, etc.....

this process start is a different program.......altogeather.....its a mp3 recorder....

ps...I told you I love your renclock

pss I am not stupid.....its just text misunderstandings....

you are confused with this axwindowsmedia player.....lol

if you do as you just said........vb names windows media player ......axwindows media player

I didnt bother re naming it.....

your no1 fan






Re: Visual Basic Express Edition process kill

ReneeC

I may be. Explorer has an API interface that is axExplorer.

Ok.... Try this. Create a formclosing event on your form.

I named my player object wmp

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

Wmp.close()

End Sub






Re: Visual Basic Express Edition process kill

ReneeC

Cheyenne,

I don't think I have your big picture. What are you trying to do It sounds like you have two processes and you have a desired functional interrelationship. I have no idea what that is.....






Re: Visual Basic Express Edition process kill

cheyenne

no no renee

that wont do it

sorry...

what time is it there.... on your renclock.....






Re: Visual Basic Express Edition process kill

ReneeC

4:22 Am

 

I am still not at all clear on what you are trying to do.






Re: Visual Basic Express Edition process kill

cheyenne

I am opening a new process on my form

an mp3 recorder.........process. start

just need to know how to close it in code....

ps. what you doin ...up all night






Re: Visual Basic Express Edition process kill

ReneeC

I'm a pervert.

Dim processList() As Process

processList = Process.GetProcessesByName("Excel")

For Each proc As Process In processList

proc.Kill()

Next






Re: Visual Basic Express Edition process kill

cheyenne

thats done it....thank you

now how do I dock it...






Re: Visual Basic Express Edition process kill

ReneeC

Dock the Media Player Dock it to what






Re: Visual Basic Express Edition process kill

cheyenne

its not a media player

start process opens this mp3 recorder in center of my form....ok

I can drag it ....but I would like it to open at the side of form....if thats possible






Re: Visual Basic Express Edition process kill

ReneeC

I don't think you're going to like the answer. Yes, it can be done but it's not easy.

You'll have to use the CreateProcess API http://msdn2.microsoft.com/en-us/library/ms682425.aspx

And you'll have to use a startinfo block

http://msdn2.microsoft.com/en-us/library/ms686331.aspx