|
Hello,
I need to get audio level from the microphone in C# using MCI.
I found "status level" parameter using mciSendString method. But I can't run it. I need a sample code.
I want to use sound card microphone input like an A/D converter.
Thanks,
Ali
-
|
|
|
|
|
I have a C# windows program that consists of one main screen that is an mdi container for a few other screens.
On occassion when some of the child forms are being created and a external Lotus Notes new mail item messagebox pops up the program is interrupted, the windows handles are not created, and, subsequently the program becomes unusable.
Has anybody experienced this in the past and can provide some help?
Emma Potter
Software Engineer
|
|
|
|
|
Hi,
I have a custom control that i am writing that inherits from UserControl, this control needs to "do something" when a double click occurs on it.
Is there anyway to change the double click event to use something other than a "EventArgs" object so that the main form that the control sits on gets something usefule back when the control is double clicked.
What i'd like to be able to do is something like this...
DoubleClick(object sender, MyCustomEventArgs e)
Is this possible? The ways i have tried gie me "not matching delegate" errors.
Thanks
Si
|
|
|
|
|
Define your MyEventArgs class and inherit from EventArgs:
public class MyEventArgs : EventArgs
{
String _myString = String.Empty;
public MyEventArgs(String aString)
{
_myString = aString;
}
public string MyString
{
get { return _myString; }
set { _myString = value; }
}
}
In the user control, override the OnDoubleClick() method and "replace" the EventArgs with your own MyEventArgs:
protected override void OnDoubleClick(EventArgs e)
{
MyEventArgs args = new MyEventArgs("MyEventArgs");
base.OnDoubleClick(args);
}
In your main form, listen to the DoubleClick event and typecast the EventArgs back to MyEventArgs:
private void MyControlDoubleClicked(object sender, EventArgs e)
{
MyEventArgs args = (MyEventArgs)e;
MessageBox.Show(args.MyString);
}
hth
Claudio
Claudio's Website
|
|
|
|
|
Thanks, that does solve the problem in what seems the best way considering the limitations of the delegate.
I was just hoping i could avoid having to get the form to do a cast in its double click listener.
Si
|
|
|
|
|
The short answer: No
The long answer:
No, you can't send other parameters to that delegate, but you can create your own..
You can create your own doubleclick event by using the click event and track position and time between the clicks.. If you go for this solution, you should find a way to find out the double click rate on the computer...
|
|
|
|
|
_eulogy_ wrote:
The short answer: No
If you say no, what's wrong with my answer I already wrote before you? I tried it and it worked. Any drawbacks in my solution I didn't saw?
Claudio
Claudio's Website
|
|
|
|
|
You're absolutily right
I totally missed that solution
|
|
|
|
|
Hey!
Is there a way in Framework 2.0 to work against a devce connected to the USB port? like regular com ports or will we have to make a driver in C++ to make it work?
In this case we want to connect a Cell Phone to a program throw a USB connection.
Best Regards
Jimmy
|
|
|
|
|
Not through pure .NET, I'm afraid. You can use managed C++ and C# together to do this, search the web for more info.
Also, there are some C# serial port articles on codeproject; if you had a USB-to-Serial hardware, you'd be able to do this through managed code.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango
|
|
|
|
|
I did some hardware programming with USB 2.0 using QuickUSB from Bitwise Systems.
/\ |_ E X E GG
|
|
|
|
|
We have a third party application that handles some SQL management (SQL Server 2000). We do not have the source code or any documentation on how this application works.
In this third-party application, a user has to log on with some credentials and the application checks with a database if the username and password is correct.
I don't know if this is possible, but what I would like to do, is to create an application that executes a certain list of commands on the database whenever someone tries to log on within the third-party application. Since I don't have the sourcecode to the third-party application I have to write another one that executes parallell to this one.
My question is if it's possible for my application to know that the third-party application is executing a certain Stored-Procedure or a command. Are there any events/messages that I could catch?
Any ideas would be appreciated ...
Thanks
// T
|
|
|
|
|
Hi i'm working on this control which exists of a
ParentControl -> containercontrol
ChildControls -> containercontrol
when i add the childcontrols to the parentcontrol the parentcontrol calculates the size of
the childcontrol all that works fine aswel in designer as in runtime
but when i add controls(eg button,...) with the designer in the child control they show good but when i click
the "build application" button the size of the controls in that childcontrol change they become much larger
(note i do set the anchor value but still the behaviour is abnormal)
i've been trying to find this problem for days now with no succes please if you have encountered the same problem or now a sollution pls let me know.
i attaches a sample of this behaviour you should.
build to see the behaviour
Sample
thx in advance.
|
|
|
|
|
|
did you look at the sample.
anchoring is not the problem here the problem is that the size changes when anchoring is set during build the size is back normal when you run the application.
if it where the anchoring i whould be glad but i also whould of found it by now then.
pls look at the sample if you want to help.
|
|
|
|
|
hi all
i am migrating to C# now , and kindly i have so many questions about using FCL instead of MFC
for example
how to Get and set desktop image in C#?
thx for ur interest in advance
|
|
|
|
|
This functionality is not exposed through the current .NET framework class library. Use P/Invoke to call the Win32 SystemParametersInfo API.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango
|
|
|
|
|
Hi
I am Converting a Vb.net code to c#. But i can't find an alternative for
FileGet( 1, TecFile) in C#.
Please help me.
Thanks & Regards,
Rathish
|
|
|
|
|
VB.NET
FileGet( 1, TecFile)
C#
int TecFile;<br />
<br />
using (BinaryReader file=new BinaryReader(new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read)))<br />
<br />
TecFile=file.ReadInt32();
Don't forget to implement System.IO
|
|
|
|
|
hi,
how do i add a table for the crystal report without using crystalreport expert
i have a blank report
pls help
sukanya
|
|
|
|
|
|
can anyone provide me some coding about printing out the datagrid after i had loaded the datagrid with the records in DataTable?ur help is greatly appreciated...
|
|
|
|
|
MJay, please use the "Search comments" link above to search for keywords like print DataGrid[^]. We have covered this topic several times in this forum.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi,
I 've a function which takes 2 parameters, a dataset , path to XSD file. Based on contents of the xsd file i need to modify data in daatset to generate appropriate xml.How do I do this?
Thanks in advance
Priya
|
|
|
|
|
i know a webservices which has an methods that get back a some data
i wanna to know how to call this methods
note the webservice is on a website link while i am just online
|
|
|
|