|
System.Console.Beep is a thin wrapper around the OS Beep[^] function.
It might be better to play a sound or stream via wave output APIs since Beep will only go through the legacy PC speaker.
I believe the thread can't be aborted because this is native code - Thread.Abort can only be processed when managed code is running. There is no documented way of aborting a Beep.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
That's just ripe for a nasty piece of practical joke code somewhere. I a little one-liner to spawn a thread, hardly noticeable , just one hellish beeeeeeeeeeeep.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
Have I mentioned my Westminster Chime Windows Service that I sometimes run on the email server?
|
|
|
|
|
The speaker is fine, I like the speaker.
|
|
|
|
|
I am writing an application for a Microchip PIC microcontroller, and have built a set of wrapper functions so that I can run the same application in VB.net. This allows me to test and debug my code, including the user interface (the device has a keypad and LCD) without having to burn a chip with every revision. Unfortunately, I've not managed to satisfactorily emulate the behavior of the device's beeper.
The beeper is controlled by a separate microcontroller which accepts two types of commands:
-1- Play the specified list of notes or warbles immediately (aborting any current sound).
-2- Play the specified list of notes or warbles as soon as the current one is done (abort any previously-queued list, but don't affect the current list)
What would be the best way to emulate that behavior on the PC? I tried using a separate thread and console.beep, but the timing is all over the place.
|
|
|
|
|
I have been making server controls for a while now. Extending System.Web.UI…
And I can add a propertys and methods to my server controls. But I have always thought it would be nice to just be able to add it to the web control.
Something like
<asp:button id=”xxx” runat=”server” text=”text” ButtonBlink=”true”…
So all asp:button controls have the method ButtonBlink and if I have ButtonBlink set to true. The button would blink off and on.
I was told this could not be done in 2.0 but that you would be able to in 3.5.
Any ideas?
Thanks
Danny
|
|
|
|
|
You might be thinking of AJAX Extender controls.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
You could do that with Control Extenders, in fact any attribute on an element will be rendered on to the base element. You can retrieve that value through the Attributes property.
|
|
|
|
|
Hi,
Is there a class i could use to be able to make a VPN connection using PPTP ?
I want to write a smal client application so that our home users could easely open a VPN connection to our network ...
Thx!
Vinny.
Vinny
|
|
|
|
|
I have the following code execute:
if (Directory.Exists(exportFolder))
{
Directory.Delete(exportFolder, true);
}
Directory.CreateDirectory(exportFolder);
and then a database update, and then:
wiz57.PerformExport();
Occassionally, about 1 in 20 tests I run in the IDE, PerformExport fails because exportFolder does not exist. How can it not exist if I create it and no exception is thrown? I can only suspect that the Directory code is not truly synchronous, and has not completed before PerformExport executes.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
hi,
can anybody tell me how to acces smart tag using C#.NET in MS word 2003.
smart tag present under Tools--> Auto Correct Options-->Smart Tags in MS word 2003.
Regards:
Biswajit
biswajit nayak
|
|
|
|
|
biswajit nayak wrote: can anybody tell me how to acces smart tag using C#.NET in MS word 2003.
No. No one knows how to do that. And if anyone did it certainly would not be Microsoft and if they did they certainly would not document it.[^]
Good luck, you're going to need it.
led mike
|
|
|
|
|
hi mike,
I think you misunderstood my question.
I need to access the smarttag in MS word 2003 which is not there in the older version of MS word.
The link you send i worked on that but still it's not help full for me , From the last 5 days i am trying on this topic and searching in the net but till now i have not yet received the corerct solution.
So please help me.
biswajit nayak
|
|
|
|
|
Hi,
i am totally new to C#.NET, so please can any body tell me how to access the header and footer of a MS word document using C#.NET it's very urgent please help me.
Regards:
Biswajit
biswajit nayak
|
|
|
|
|
|
hi mike,
thank's to you.
ya i am new to .NET that means i don't know how to use the properties , i know every thing is present there ctrl+Spacebar but untill i am familiar with the usage of this thing it's tougher for me.
Again thank's to you ,
Now i got the solution how to access the header and footer but still it's not clear how to access the elements inside the header.
please help me.
Ex:
if inisde the header you insert created by , date , time etc..
Then my doubt is how to access the particular thing's that means how to access only date from the header.
biswajit nayak
|
|
|
|
|
How do I format a number so it only displays all available decimal places? I had a problem where the default formatting always wrote out four decimal places, even on whole numbers, e.g. 4 -> 4.0000, which I solved with the format string "0.####", but that rounds. Now I need to display the number 589.400000000001, which now renders as 589.4
In other words, I don't want rounding, but I don't want padding.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
I can't say I've noticed the problem:
Console.WriteLine("{0}", 4.0);
Console.WriteLine("{0}", 589.400000000001); produces the expected:
4
589.400000000001 for me. Tested on both .NET 1.1 and 2.0 on Windows Vista.
The default is supposed to be the 'G' format.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
<br />
Console.WriteLine("{0}", 4.0000M);<br />
Console.WriteLine("{0}", 589.400000000001M);<br />
produces the following:
<br />
4.0000<br />
589.400000000001<br />
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
The Decimal data type preserves all decimal places. They are assumed to be significant so they are always displayed. You must call Round to round the number to a specific number of decimal places.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hi,
I'm using VB6 components referenced in VS 2005. Will VS 2008 support com components in the same way as VS 2005?
|
|
|
|
|
Yes, in exactly the same way.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I have a pkcs12 file that contains two certificates. I'm using X509Certificate2 class like this:
X509Certificate2 cert = new X509Certificate2();
cert.Import(fileBytes, pwd, X509KeyStorageFlags.DefaultKeySet);
pkcs12 file is in byte array fileBytes.
The problem is that I can't define which one of the two certs to import.
Is there any way to import a specific certificate from the file?
Thanks in advance.
|
|
|
|
|
I've installed both .Net Framework v1.1 and v2.0 on my machine. Just wonder when I run a .Net Framework v1.1 application how does Windows XP know to launch .Net Framework v1.1 runtime for it, but not v2.0 runtime.
I'd like to know the mechanism behind this. Since Windows XP itself has no knowledge about .Net, I guess that when .Net gets installed, it must hook something to the OS. BTW, since Vista come with .Net Framework v3.0, does Vista works in a different way from XP or actually the same?
Thanks a lot.
|
|
|
|
|