VS 2010 Global Volume Mute?
Mar 4, 2011I need help declaring and executing the necessary commands to mute the volume on my computer (globally, ie. will effect all programs using sound, not just the application itself).
View 3 RepliesI need help declaring and executing the necessary commands to mute the volume on my computer (globally, ie. will effect all programs using sound, not just the application itself).
View 3 RepliesI am trying to make an application that is able to turn master volume on and off (Mute unmute). And what I have done so far is increasing and decreasing volume, but if sound is turned on mute then it wont start anyway. And that was really a lot of code to do that, so is there an easy way to mute sound or is it equally alot to do.
I have tried
SendKeys.Send(Keys.VolumeMute)
But with no effect, and I have tried using
chr(173)
instead of keys.volumemute. (I have a variable that looks if the sound was mute or not from start so it can be default afterwards).
I'm developing video intercom system. i have push button to talk. when user press the push button, i need to increase the system microphone volume and mute the system speaker. While releasing the push button, i need increase the system speaker volume and mute the system microphone volume.
View 3 RepliesHow can I make it so a command button or whatever you'd like to use can mute the computers volume, then unmute it?
View 2 RepliesI will make the command line tool to mute system volume,[code]...
But i can not use the Me.Handles without a form
How can I unmute master volume in vb.net. I know how to increase and decrease but if it is turned off it wont start any sounds.
View 6 RepliesI have been at it for a while and cannot get it to work.[code]by double clicking on a picture box. The Start/Stop/Pause buttons work just fine, however I can not get the volume and mute to work.I can physicaly click on the mute button and move the volume bar,but I have no control over the music volume and mute function.
View 8 RepliesI have searched the web for code relating to changing the system volume, muting the system volume, and outputing the current level of the volume as an integer, using VB.NET.
All the code that I have found either doesn't work, or is very long.
I need to be able to mute the speakers in a computer, but not the line out because I need the headphones to still work.
View 4 RepliesHow can I control the Computers volume inside visual basic? (like you have the speaker icon and when you click on it Volume scroll thing) at the bottom left of Windows, but I want it in my program. I am running Windows 7 (if that makes any difference
View 1 RepliesI want to be able to change (Increase or Decrease) the computers bass, Main volume, view connected audio devices (Output Devices) and finally display the computers volume with a progressbar.
View 1 Repliesi found just this code but it works only for form1.
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
[code].....
I am trying to build an autorun application for windows 7 and I need to retrieve a drive's VOLUME serial number (the one that changes when you format it)
View 4 Replieshow can I change the volume on a WMP Control through the code?
View 1 RepliesI Need a code to Identify Volume Serial Number and put in textbox1.text
The code should work for Visual Basic 2010
evrytime i add new controls to a form in vb.net the designer regenerates code and asks me to make corrections, so i have to keep on changing the object declarations to global using the 'global' keyword evertime it regenarates code,especialy dataset objects.how can i prevent this?
View 1 Repliesi could use Global x as string in vb6 in a module to declare it with global privelages, how can i do this in vb2008? how to declare a global variable in vb2008? so that i could use it anywhere i want. i know global variables are not recommended in programming but i need one.
View 4 RepliesHow do I declare a global variable in VB - these variable need to be accessible from all the vb forms. I know how to declare public variable for a specific form. but how do I do this for all the forms in my project.
View 4 RepliesI want a custom menu when I right click. Like, you know when you right click on your desktop, and you see a bunch of menus, like properties and whatnot. How do I do that with VB.Net? Also, how to add custom?
View 3 RepliesI have a program that u record your clicks then you press a button (Ctrl + E) then it plays them back. What I want is for Ctrl+E to stop them, It would work but it seems like its being overpowered by the mousemoving and clicking. The keyhook did already work before I started on the playback part.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = WM_HOTKEY Then
If m.WParam = 2 Then
If started2 = True Then
started2 = False
ElseIf started2 = False Then
[Code] .....
How can I pass the global variable to .dll from windows application (.exe)
Test.dll 1. FunTest1 (Parameter Required)
------- 2. FunTest2 (Parameter Required)
Within 'FunTest2' it call 'FunTest1'.
And in .Exe I call 'FunTest2' and want to pass the parameter for 'FunTest1' also.
To be honest I am fairly new at VB as a language, and I just came across a problem that I can't figure out. I have a feeling it's something simple...but here it goes.I created a set of string variable on my first form as follows:
Dim strpro1 As String = txtpro1.Text
Dim strpro2 As String = txtpro2.Text
Dim strpro3 As String = txtpro3.Text
Dim strpro4 As String = txtpro4.Text
Dim strpro5 As String = txtpro5.Text
I set strpro1 as a global variable in my module:Module Module1 Public strpro1
I have an application which is strictly numeric input only, for everything in the main form, call it X in this post.
I want every single control that can handle input in X to only accept numeric entries, I have a way of doing this but it requires me to put a tonne of arguments for the handle, I tried to change this to handle any .KeyPress event on MyBase or Me (X) but it won't work.
Code that works but requires 1 000 arguments:
Private Sub numeric_keys_only(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles msTEXT.KeyPress, ssText.KeyPress etc...
[Code]...
I have tinkered with the latter, specifying things like all the controls in a certain group box and it doesn't work.
I know the sub header has to be changed - I have changed it in my tests, that is just the example code. When I change everything it runs, just doesn't do anything.
This is also posted in the database development forum. As I think the same problem could apply to things other than connections, I am posting it here also. I have created a custom class. All methods in this class, I want to interact with a single connection object.
Imports MySql.Data.MySqlClient
Public Class clsRegTester
Private cn As New MySqlConnection
[code].....
VS 2010 [RESOLVED] Proper location for Global Constant?
View 1 Repliesi have a global mouse hook for when mouse is clicked but how do i suppress the mouse click so it doesn't attualy click? It has to be global suppression.
View 2 Replies[Code]...
This was the code and this is the thread HERE Ok its working and everything but when i want to perform something when click is noticed it says i cant cross-threads
I have an array of comboboxes on a form. They are declared at the beginning. I wish to make these global variables so I can access them in another form. This does not appear to work.
Code something like this:
Public Class SecondScreen
Public OutputSelectControl() As Combobox = {O1, O2, O3, O4}
Where O1 O2 etc are the names of my comboboxes on this form. I wish to be able to address them from another form like so
localformvariablehere = OutputSelectControl(integervariablehere).Index
I was a VB6 programmer. And back in the day global variables, functions and subroutines were put in a module. The program started in the module using a sub named Main(). Now in vb2010 it looks like using sub Main() is possible only for console apps, which is not what I want, I'm still trying to write a windows app but it looks like everything has to go at the top of the starting form?? How is this good coding practice? Shouldn't public vars and functions be in their own module?What is considered best practice?Are there any links that would walk me through the differences between vb6 and vb2010?
View 2 Repliesthere is any event or way to detect activity in an form or project?in the form and all the child controls.
mainly mouse clicks (not mousemove) and key press.
for example, if the form have not activity in the lasts 10 minutes, do something.