I have a question in vb.net
I want to make a short intro then people open my program but I have a little problem. Only way to put this video, is throung windows media player (incorporated in vb.net). Can I remove Windows media play skin (play, stop, contour and other "tools") from form? I need to appear only video in form.
Thanks.
if you are using the AxWindowsMediaPlayer, there is a property named uiMode which controls the level of UI displayed. Set it to "none" (a string) to remove the UI:
myAxWMP.uiMode = "none"
Related
I'm developing an application in which, if I press a combination of keys shows me a popup inside the form of another external application, I mean something like the "windows game menu", but I have no idea how to show the popup in the external application. I leave you an image to make you understand what I mean as a popup. sorry for my english but I do not speak.
Thanks in advance
You cannot control one application form of another application without having access to its code or knowing if a queue messaging command has been set for doing it.
It is possible to program a window of your application to be shown over any other , likely this will not be working over a Directx - OpenGL full-area, i.e. when you are playing a videogame that is using the same functionality because the last one is winning.
In this case your popup will be visible barely as a flick, but considering standard form application you can make it to stand over by working with userd32.dll method
"SetWindowPos" with the flag HWND_TOPMOST.
You will need first to detect the position of the application window, or if it is a fullscreen one you can simply detect the size of the screen and consider to place it in the center, then you can set the position of your application form "pop-up".
Details about the SetWindowPos , which is among windwows base dll but can be invoked from .net here below:
https://learn.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setwindowpos
Make a window topmost using a window handle
I use this code :
Shared Sub OpenApplication(ByVal ApplicationPath As String)
Dim p As Process
Dim ShowForm As New Form
Dim FormPanel As New Panel
FormPanel.Dock = DockStyle.Fill
ShowForm.Controls.Add(FormPanel)
p = Process.Start(ApplicationPath)
Threading.Thread.Sleep(500)
SetParent(p.MainWindowHandle, FormPanel.Handle)
ShowForm.Show()
End Sub
but it run the application inside the panel with the border.
if i make my own virtual operating system, how do i change the border to none?
like windows 7 have their own form border, windows 8 and mac too.
but I make my own form border. it's graphic, how can I make the application use my border?
this is some example(i cannot post image) :
Windows 8 Notepad with Their UI Design (it's Form Border for me)
Windows 7 Notepad with Their UI Design
And this is my UI Design :
(sorry I cannot insert more that 2 links, delete space in http:"Space"//)
http: //40-89-67-30-21.weebly.com//files/theme/Notepad.png
how can I Make like this when double click notepad.exe or another .exe file in my virtual os? (this is edited version !) :
http: //40-89-67-30-21.weebly.com//files/theme/Notepad_edited.png
it's run the exe but with my own UI Design. How can I do like that?
By default 3rd party applications don't support their re-branding by 4th party developers and even OS-specific coding conventions don't force them to do so, except for support for branding the OS, like respecting system colors, accessibility features etc.
In order to implement this you'd have to do a lots of low-level hacking, intercept UI messages (like WM_NCCALCSIZE or WM_PAINT) etc. or replace complete libraries containing the UI drawing API (like GDI32.DLL) with your own.
All of this requires precise work, good understanding of the various low-level aspects and code well-coordinated with the rest of the system and approximately few thousands of lines of code, including some native (not managed) code.
It's doable, but not simple, see e.g. Stardock's WindowBlinds
See also:
Google search windows skins
I've been playing with a generic usb camera to take snapshots every few seconds. With the help of this SO question, I was able to get the camera working; however, when you click the button to connect to the camera, a dialog box appears.
The difference between the other question and my question is that I have two video sources: a built in webcam and a usb camera. I also intend to have multiple cameras connected, all taking pictures. It appears that when you have multiple devices, you always get the dialog box where you have to choose the device. I'm trying to automatically choose the camera (and eventually cameras, plural) without this dialog box.
There are other pieces of sample code that I have played with - samples that have a device listbox that is populated; I thought this was what I needed (and I'd just remove the listbox control and process the list and what to connect to in code), but every one of these samples populates the listbox with "Microsoft WDM Image Capture (Win32)" instead of the devices listed in the dialog after attempting to connect to this "device."
Surely there's a way to automate the webcam(s) I'm connecting to instead of having to choose it from a dropdown in a Windows dialog, right? How would I go about doing this?
The solution ultimately was to use EMGU to access the camera; this also allows for connecting to multiple cameras at the same time.
Im using a trackbar to change the current time position of the video displayed on a windows media player.
The trackbar maximum value is whatever the length (in seconds) of the video is.
So i need help with how to change the current time on a windows media player.
I am not having difficulty i just need to know how to do it.
Im not sure if there are several ways to embed windows media player into vb, so im just gonna clarify that i didnt install/download anything i just used the one that came with windows media player.
Use The currentPosition property of CtlControls.
player.Ctlcontrols.currentPosition = CDbl(10.4)
I'm very new in Silverlight and the Lync-SDK. So sorry for the question from a beginner.
Long time ago, i wrote al little web application, based on php for reading out contacts from a sql database.
Now the customer expand his envoirement and place Lync. Now he want the little Lync-Status-Square in the webapplication for click to call features.
I playing a little bit with the SDK of lync.
The following problem comes up. The square of Lync is nested in a td of my table. But the Lync-Silverlight-Applet need dynamical space for hover effects or single clicks. But in my table, i have no space, specially dynamic space.
So i switch off all hover and click functionality and place the follwing buttons in the StackPanel separate.
PresenceIndicator
StartInstanceMessagingButton
StartAudiCallButton
SendEmailButton
Two of them are fine.
Clicking on the IM-Button, The Lync Client opens the right Contact in IM-Mode and i can directly type a message. Perfect!
Clicking on the Mail-Icon, an Mail-Client will open, perfect.
The PresenceIndicator just display the color, not the exactly state, thats a problem, when the color is yellow. I can display the state in a TextBlock, but i prefer a label appears while hovering over the icon.
But my mainproblem is the StartAudioCallButton. This Icon is an dropDown-Icon. And i have no space for dropdowns. I would be so nice if this icon has the same behavoior like the IM-Button. The Lync Client will open in Call Modus and i can select, which callernumber i will use. Is that possible?
Thank you for Your time!
Frank
If you're having trouble with the layout of the standard Lync SilverLight controls, then the best thing to do is implement your own SilverLight controls for the function you're having difficulty with.
User Controls are really simple to create, there are plenty of tutorials on how to get started if you're not familiar with the process.
The Lync SDK has some great walkthroughs to get you up and running with signing in to Lync and placing an audio call
I don't know of any way to get Lync to open in a Call Mode as you suggested, but if you're limited with screen space, maybe you could have your custom StartAudioCallButton open a popup with the phone numbers in?