|
I've created a good little Media Player! It play's almost all audio and video format's using DirectX 9 and Net Framework. However i need to know how to change the Audio volume? (like Windows "Volume Control"). I'm Presumming it would have to be done using API. Just don't know how to do API in VB.net 2003 Enterprise Ed.
If anyone could help me out please?
|
|
|
|
|
if ure using directx to play the video then...
Video.Audio.Volume = ??
Where Video is AudioVideoPLayback.Video object, Which you must be using?
|
|
|
|
|
So if i use "Microsoft.DirectX.Video.Audio.volume = Integer(value)" for Video Audio how about the Audio file Volume...?
What it is I've Declared my Video file as "DVF" and Audio file as "DAV" and Currently Playing as file as "DCF". If you understand where i'm going with this?
|
|
|
|
|
Hi there,
Somewhere on one of my PC's I have a class that controlls the master volume.
I think that's what you're looking for.
I also have a nice volume control knob, so if you're interested, give me your e-mail address and I'll mail it to you!
Mine is Jerry___@hotmail.com (thats 3 underscores!).
I'm also interested in media players and stuff like that and I don't know a lot about DirectX. So if you could do me a favour and let me have a look at your code.
I'll look up the code and send it to you asap.
Cheers Jerry.
|
|
|
|
|
|
For a larger project you need to buy a converter, or do it yourself, line by line. It's not that hard.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi ,
i want to read the CPU performance and main memory usage .
I tryed using performance counter component which not give results.so please give me ideas
VERY Argent . Nearly i have to delever my product
Amalarajan
softdeveloper beginer
-- modified at 7:27 Tuesday 18th October, 2005
|
|
|
|
|
hi ,
i am currently doing leasing(bank) project using VB.NET , i like to develope read memory performance such as Memory usage,peformance etc .. ,therefore i used PERFORMANCE COUNTER Component to accomplish my task ,but which have been not worked . So please give idea to fnish my project .
VERY Argent . Nearly i have to delever my product
Amalarajan
softdeveloper beginer
|
|
|
|
|
I have no idea what your question is. You want to check the performance of your application ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
sir ,
i want to write code for read the "performance" of CPU(taskmanager -> performance) and "Main Memory" usage.
I tryed using performance counter component but not work.
Please give idea...
very urgent because nearly i have to delever my project
Amal
|
|
|
|
|
|
thank you vey much for your support .The cooding work properly ..... But I have another problem .. if you can please ,please,please Help me
i need to send crystal report through email as the email body (not as Atachment and Not using ASP.net ).
can i access OUTLOOK EXPRESS to do this
thank you
Amalarajan
|
|
|
|
|
I don't know of any way to access outlook express. Is this a web app ? Do you want the user to click somewhere to send the mail ? If so, just use the a mailto anchor ( google mailto html for more info ). If that's not what you want, more detail please
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
To remove Event Handlers from my all controls in the form, I want to use a generic code as follows.
1) Run through all controls in the Form
2) Run through all Events of a control using Reflection .GetEvents()
3) For each Event, I want to get the Delegate, so that I can remove all using GetInvocationList(). but .NET doesn't provide any property to get delegate for the Event Handler.
Please help. How can I get the Delegate for the Event Handler.
|
|
|
|
|
|
That only gives the Delegate type, but how to actually get the reference to the Delegate?
|
|
|
|
|
How can I show a transparent but 100% visible label( any text) on the screen without showing form so that the user does not get disturbed by th e text. Also same for an image. Thi sneeds to be done in Visual Basic 6.
Accalia
|
|
|
|
|
Hi,
I have created a windows application now i want to create a setup file for that application. The problem is I want to add a key to registry with the current date of the system during installation. Is that possible, if yes please let me know its urgent
Thanks in advance
|
|
|
|
|
The following code shows how to use the registry:
-Make an appform with 2 textboxes: TextBox1 and TextBox2.
-Add two buttons: btnSaveSettings and btnGetSettings.
-code for btnSaveSettings: SaveMyNumber()
-code for btnGetSettings: GetMynumber()
-DONE!
-enter text in TextBox1 > press savesettings
-press get settings and the nuber you entered in TextBox1 should appear in TextBox2!
-if you restart your computer, run the app, press getsettings your saved text will be shown again.
Imports Microsoft.Win32
Dim MyNumber as string
Dim MainKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software", True)
Dim MyKey As RegistryKey = MainKey.CreateSubKey("MyKey")
Private Sub SaveMyNumber()
If not TextBox1.text = "" then
MyNumber = TextBox1.text
MyKey.SetValue("MyValue", MyNumber)
else
exit sub
end if
End Sub
Private Sub GetMyNumber()
TextBox2.text = MyKey.GetValue("MyValue")
End Sub
Next you can check your value in the registry:
-Start > run > type "regedit" and press enter.
-open HKEY_CURRENTUSER > SoftWare > MyKey and there it is!
You just created this key.
You can delete it (MyKey) by right clicking on MyKey and select Delete, but beware!!! dont delete the wrong keys, it messes up your system!
if you use datetime.today in sub formload, save this in the registry the first time you load the program, the only thing you need to do is figure out how to do this only the first time you load the program. This shouldn't be so difficult.
Hope this helped you,
Cheers.
|
|
|
|
|
Add an Installer class to your setup, assuming you are using VS.NET - you did not specify how you plan to create the setup. Then run Jerry's code shown above in the Installer class.
See the MSDN or Google for a basic tutorial in using Installer classes in .NET.
|
|
|
|
|
Hello All!
I have a listbox in wich I have some data. The length of data is so much that it goes out of view. I dont want to add scrolling. I want that when the user move the mouse over the data in the listbox it will appear in full just like when in Windows you move the mouse on a folder having long names it will show its size and other related information............Got it?
Please help me in this regard
Thanx
_mubashir
|
|
|
|
|
I have created a table in MS Word through VB 6.0. In the last column of the table, the row contains the database table names seperated by Commas. I need to provide hyperlink to each of the table names in the columns so that upon clicking each hyperlink, it goes to the description of the appropriate database table. While creating the hyperlink for the cell in the Word table, the hyperlink is created for the entire cell and am unable to create it for each table names separated by commas. Can anyone provide solution for this?
Thanks in Advance
Padmakumar.G
|
|
|
|
|
I need to print Headings in MS Word Document using VB 6.0, so that I can create table of contents (TOC) easily in the Word Document. can anyone help me out in this?
Thanks in Advance.
Padmakumar.G
|
|
|
|
|
This must be a stupid question, but after an hour of trying it's now intelligent for me to ask.
How would I sync a form's textbox, with the main form's textbox?
When the user, click a button on the main form, another form loads up.
Then when they change the textbox, I want a textbox in the main form to be updated with that string. Simple right!
In the old VB6, this was completely trivial.
It seems that .NET is not as easy, perhaps for protection?
I tried delclaring the form, and texbox, but to no avail.
At a loss,
TT(n)
|
|
|
|
|
pass the textbox byref when you open the form. To do this you can add a sub new to the form:
second form:
private textboxOnMainForm as textbox
Sub New(byref tb as textbox)
textBoxOnMainForm = tb
end sub
Main Form...
sub button1_click(blah blah)
dim f as new secondForm(me.textbox66)
f.show
end sub
This way the second is given the textbox when it is instantiated, as it is passed by ref, changes will stick to the original textbox.
|
|
|
|