By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,187 Members | 1,629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,187 IT Pros & Developers. It's quick & easy.

Embedding a device in an application?

P: n/a
I followed a tutorial to learn about controlling video files (my area of
interest) using VB. The primary command for this is the mciSendString
(http://msdn.microsoft.com/library/de...endstring.asp).

Everything is working great except for one important feature. The
mciSendString opens video in a new window independent of my application. Is
there any way to embed it into the app? Ideally I would like to embed
multiple video windows in some kind of MDI. I went through my books and
they only talk about embedding controls, whereas (as I understand it) the
mciSendString is opening a device.

Please remember I am a newbie at programming, but familiar enough with VB
from VB 6 (and I am now using VB.NET 2003).

Thanx in advance,
--
Anil Gupte
www.keeninc.net
www.icinema.com
Sep 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I've never tried it but how about
http://msdn.microsoft.com/library/de...n32_window.asp

You could have a panel in a winforms application and pass the hwnd of
the panel to the device using this command.

Phil

Anil Gupte wrote:
I followed a tutorial to learn about controlling video files (my area of
interest) using VB. The primary command for this is the mciSendString
(http://msdn.microsoft.com/library/de...endstring.asp).

Everything is working great except for one important feature. The
mciSendString opens video in a new window independent of my application. Is
there any way to embed it into the app? Ideally I would like to embed
multiple video windows in some kind of MDI. I went through my books and
they only talk about embedding controls, whereas (as I understand it) the
mciSendString is opening a device.

Please remember I am a newbie at programming, but familiar enough with VB
from VB 6 (and I am now using VB.NET 2003).

Thanx in advance,
--
Anil Gupte
www.keeninc.net
www.icinema.com
Sep 12 '06 #2

P: n/a
Thanx, I tried that but I could not get it to work. Anyway, I found a
different way of doing it, using the Handle of the window in the open
command of mcisendstring. So, closee to what you suggested. Thanx again.

--
Anil Gupte
www.keeninc.net
www.icinema.com

<wi******@yahoo.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I've never tried it but how about
http://msdn.microsoft.com/library/de...n32_window.asp

You could have a panel in a winforms application and pass the hwnd of
the panel to the device using this command.

Phil

Anil Gupte wrote:
>I followed a tutorial to learn about controlling video files (my area of
interest) using VB. The primary command for this is the mciSendString
(http://msdn.microsoft.com/library/de...endstring.asp).

Everything is working great except for one important feature. The
mciSendString opens video in a new window independent of my application.
Is
there any way to embed it into the app? Ideally I would like to embed
multiple video windows in some kind of MDI. I went through my books and
they only talk about embedding controls, whereas (as I understand it) the
mciSendString is opening a device.

Please remember I am a newbie at programming, but familiar enough with VB
from VB 6 (and I am now using VB.NET 2003).

Thanx in advance,
--
Anil Gupte
www.keeninc.net
www.icinema.com

Sep 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.