Load The Decrypted One On A Mediaplayer?
Jun 5, 2009
I have a wpf application that stores videos/images and generic files
1) what is the best way to encrypt these type of file in term of performances
2) and when you encrypt a video how do you load the decrypted one on a mediaplayer?
View 10 Replies
ADVERTISEMENT
May 4, 2011
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Text
[code]....
I can't get the original decrypted password.
View 1 Replies
May 31, 2012
I am trying to decrypt a file and the decrypted contents will be loaded to a listbox.
Public Sub Decrypt(ByVal inName As String, ByVal outName As String)
Try
Dim array As Byte() = New Byte(&H1001 - 1) {}
Dim num2 As Long = 8
Dim stream2 As New FileStream(inName, FileMode.Open, FileAccess.Read)
[Code]...
View 12 Replies
Nov 5, 2009
I need to know how to create a program like MediaPlayer from scratch .Does Directshow do this ??? And if yes , what the steps I should follow to have full control at this side of programming ( Is there any SDK I should download )?I'm using VisualBasic 2008 Pro.
View 10 Replies
Dec 27, 2009
I am making a program that works with my hometrainer so i can now have my speed and distanse on my screen but now when i start byking i would like to play a video on my screen also when i am biking slow the video has to play slow when i am biking fast the video has to play fast is there any one how can tell my how todo this whith a sample
View 3 Replies
Jan 9, 2012
I wrote a program for Playing Video's , I used 'AxInterop.WMPLib.dll' This i think will only work with 64 bit machines because it is Media player 12. I need to play my video's on a Windows XP 32 bit machine. But i need a older version of the player. Where can i download the dll for Mediaplayer 11.
View 1 Replies
Dec 4, 2011
so i am busy with a mediaplayer ( just for fun ) and everything pretty much works, but one thing doesn't.the thing is ive got 2 labels, the first label needs to show how much ive already played, and the second label needs to show the duration of the media file.example: a media file from 1 hour 32 minutes and 18 second and i have already player 43 minutes and 9 seconds from it, then the first label needs to show 00:43:09 and the second label 01:32:18.
View 5 Replies
Dec 21, 2009
In my VB.Net application, I am using Mediaplayer for playing songs. It is working fine with some songs. But some songs are not playing. I gave msdxm.ocx for COM componetes. I used breakpoint to see what is happening, I got the the error as "Error HRESULT E_FAIL has been returned from a call to a COM component.". I am using the following code,
AxMediaPlayer1.FileName = "D:Songsabc.mp3"
AxMediaPlayer1.Play()
View 2 Replies
Sep 14, 2010
Is there any ready method/function etc to create a fade in/fade out effect for sound with Windows Mediaplayer in Visual Studio Express 2008?
View 3 Replies
Sep 15, 2009
is it possible to add effects to sounds that are playing using the mediaplayer control?. i have tried using directsound which works good and i can add effects to the sounds playing but it wont play mp3 files and i have looked all over for information on directshow which does play mp3s but all the examples i managed to find all have about 50 lines of code just to play one track and dont show how to add effects.
i need to play several sounds at the same time and add different effects to each track and also be able to play - stop - pause each individual track at will mediaplayer i can do this but dont know how to add effects directsound i can do all of this but cant play mp3s.is there any way to add effects using mediaplayer control? or does anyone please know where i can see a code example in directshow that adds effects to the sounds playing?
View 2 Replies
Sep 19, 2011
Im building an application in vb 2010 which uses window media player component. When I run the application in debug mode and Press Play button, the application hangs up and stops responding. When I press PAUSE button in vb 2010 the line it shows is
mediaPlayer.URL = curl
View 3 Replies
Mar 4, 2010
If I have a video of 70 Seconds and I want to play it directly from 31 seconds to onwards how can I do that in vb.net.
View 1 Replies
Oct 30, 2010
I want to receive the time and if the mediaplayer is paused using api.My problem is that the child is called Static but there�s 3 items there and it seems that I just get the first of them.
Heres my code so far:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As
[code].....
View 4 Replies
Jun 15, 2012
ive been trying to use System.Security.Cryptography to encrypt and decrypt a file but its not working for me
this code
Private Sub EncryptFile(ByVal sInputFilename As String, ByVal sOutputFilename As String, ByVal sKey As String)
Dim fsInput As New FileStream(sInputFilename, FileMode.Open, FileAccess.Read)
Dim fsEncrypted As New FileStream(sOutputFilename, FileMode.Create, FileAccess.Write)
Dim DES As New DESCryptoServiceProvider()
[code]....
called with
DecryptFile(OpenFileDialog1.FileName, SaveFileDialog1.FileName, "12345678")[/CODE]
outputs a file that is almost 2x as large as the source file that was encrypted.
View 1 Replies
Jul 10, 2011
What I am doing is making a Media Player, but I am making it to be some sort like BS Player.
The Video part of the player is on its own with no border and then there is going to be a separate Form for the controls. (I might need help with that later) But the first thing that I have to do is make the window movable and re-sizable by dragging the Media Player (WMP). WMP is taking up the whole screen of the Form so there is no where to click on the original Form. If possible, I would like it to show contents while dragging, ignoring the Windows Appearance and Performance. If that can't be done or is to much work, I will settle for just the border of the Form being showed while moved.
For re-sizing, the media player has to stay the same size as the form, but it also has to stay the same Ratio of the video. So as long as I can specify the current height and width of the window and also get then get the width while the window is being re-sized, I can get the height that the window needs to be by using this formula.
Window.y / Window.x * Sized Window.x = New Window.y .
I know that may sound complicated or maybe I am making it harder then it actually is, this is just how I know how to do it. I will explain what each variable in the Formula means.
Window.y is the current height of the window
Window.x is the current width of the window
Sized Window.x is the width of the window while it is being re-sized
New Window.y is the final height for the new size of the window
View 11 Replies
Apr 11, 2007
Which of the MediaPlayer events is related to "FileEnd" (when the playing file reaches to its end)?
I tried "EndOfStream" event, but it didn't work.
View 5 Replies
Mar 20, 2011
I want a rich text box to display public variables like (pizza toppings links etc that have been selected in other forms) these variables have declare in a module. But I want the rich text box to display these variables as soon as the screen loads ( a on form load event) if you know what I mean.
View 1 Replies
Aug 24, 2009
I would like to load a default created image at start. But seems to not be working on form load any ideas.[code]
View 5 Replies
Feb 19, 2012
Whenever i start my form (window application) and link from one form to another, my data doesn't load but when i close the respective form and open it again , it appear. Can i know where is my problem ? Thx in advance. Here's the code snippet :
Private Sub AccessControl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sqlstring As String = "select * from depttable"
Dim connection As New SqlConnection(db.cs)
Dim dataadapter As New SqlDataAdapter(sqlstring, connection)
[code]....
View 2 Replies
Jun 18, 2010
I Want A Web-Browser (WebBrowser1.Navigate [url]) to navigate to a direct site witha .txt file so the text appears in the browser. ok that works.
When Form1 Loads I want To Use This But It Wont Work WebBrowser1.Navigate[url] but it will only work if form1 contains WebBrowser1.Navigate[url] and button1 = TextBox1.Text = WebBrowser1.Document.Body.InnerText.
Final Question How Can I Get Form1.Load To Do Both Operations
View 4 Replies
Apr 7, 2012
I have a couple of tables in a sql server database and i want to load the data from them in form load.
Here is the code i use to load the first table
connection string here
Con.Open()
Dim objCmd As New SqlCommand("SELECT * FROM Customers", Con)
Dim cust As SqlDataReader = objCmd.ExecuteReader()
[Code]...
View 2 Replies
Nov 30, 2009
When I load the report from my c: drive it works fine:
[code]...
Now when I load the report from solution explorer it tells me "Load report failed. The system cannot find the file specified"
[code]...
I have added the report to solution explorere and part of my project
View 3 Replies
Oct 23, 2010
i am using the below code in VB.Net to load the available serial ports :
COMsComboBox.Items.Clear()
Dim i As Integer
For i = 1 To My.Computer.Ports.SerialPortNames.Count
COMsComboBox.Items.Add(My.Computer.Ports.SerialPor tNames(i - 1))
Next
i also want to load their names as seen in the "device manager",
View 1 Replies
Jul 27, 2009
Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Dim con As OleDbConnection
Dim cmd As OleDbCommand
[CODE]...............
The insertion part of the form works great. But my problem is in the form load part......If i leave a field blank(Null),then perform Save operation,close the form after successful insertion and then reopen the form,then it retains the previous values during the form load......This is only in case where i leave a field blank in the previous data entry in the database.......But if i enter values in all fields then form load is working great.
View 2 Replies
Dec 14, 2009
How can I load a form and allow it to run it's code in the form load but keep it not visible. I want it to do what it needs to but but not display.
View 3 Replies
Sep 25, 2011
I just discovered the joys of UserControl's and I was wondering if it is possible to populate the usercontrol with data from a database in the UserControl's Form.Load event instead of the form the userControl is placed on. I feel it would make using the control a lot easier if it just populated itself without anymore code.I tried it with a ListView but it gave me a bunch of errors, so I didn't know if it had to be done a certain way or if it was just one of those things that doesn't work no matter what.
View 8 Replies
Apr 4, 2010
I have a rich text box which I use in order the user is able to add pictures, coloured writing, different font etc... however I need to load specific text in the rich text box when the user load the Form.how I can add (I guess) the HTML to load this every time the user load the form.
P.S the text will change depending on who loads the form so I can not do a simple
RichTextBox1.LoadFile("C:Documents and SettingsDesktopSigniture.rtf")
View 2 Replies
Feb 16, 2010
I recently switched to Windows7, and now everytime I try to use a function in a load reference, it gives me this error:
Could not load file or assembly 'TibiaAPI, Version=2.9.1.0,
Culture=neutral, PublicKeyToken=957fb63a2cc1914a' or one of its dependencies.
An attempt was made to load a program with an incorrect format. The only command I used was
Dim c As Client = ClientChooser.ShowBox
This has always worked until I started using W7.
View 8 Replies
Dec 10, 2011
In loading in XML documents using System.Xml.Xmldocument can I load a URL like this[code]...
View 1 Replies
Mar 1, 2010
I am trying to write some code that will allow me to dynamically load DLLs into my application, depending on an application setting. The idea is that the database to be accessed is set in the application settings and then this loads the appropriate DLL and assigns it to an instance of an interface for my application to access.
This is my code at the moment:
Dim SQLDataSource As ICRDataLayer
Dim ass As Assembly = Assembly. _
LoadFrom("M:MyProgsWebServiceDynamicAssemblyLoadingSQLServerinDebugSQLServer.dll")
[code]....
View 3 Replies