|
Does anyone know how to disable the "click" sound played when loading a page inside the .NET 2.0 Web Browser control?
|
|
|
|
|
The WebBrowser control doesn't expose any method or property to turn that sound off. It uses the settings found in Internet Explorer's Tools/Options dialog.
|
|
|
|
|
uggg hoped that wasn't the answer though there might be some deep/obscure property or a way to override/capture the sound event
I didn't wish to disable it via the reg setting cause then it wouldn't work in IE if they were running the program and IE at the same time... plus if it crashed (for who know why) the setting might not get set back
looks like I gotta change
HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current\
-- modified at 15:14 Friday 24th August, 2007
|
|
|
|
|
Quick question - why do you want to disable the click sound? If a user has IE setup to "click", then they'll find it comforting and normal when they click a link in your app and hear the "click".
Just my 2 pennies worth, but I think users will tend to trust your application more if it follows a routine they're familiar with.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
because the GUI for my application is 100% HTML based and it clicks during refresh or navigation, which is annoying to hear the "tick" ... "tick" ... "tick" ... "tick" ... "tick" ... "tick" ... "tick" ... "tick" ... "tick"
I don't want to disable it for all of IE; but I must do what I have to do. The boss doesn't like the ticking sound, so it has to go away...
|
|
|
|
|
Hi,
it possible to create "windows" in console application like:
<br />
┌─────────────────────┐<br />
│ │<br />
│ │<br />
│ │<br />
│ │<br />
│ │<br />
└─────────────────────┘<br />
I rememeber that for turbo was library called TurboVision.
Any idea?
Greetings
|
|
|
|
|
Sure. You just have to either find a third party library that does this, or write your own. There isn't one built into the .NET Framework. I don't know of any libraries still in existance.
|
|
|
|
|
You could create a form that looks/emulates the commandline experience then use the standard Graphics object to creates the GUI for the 'commandline' window.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I never used TurboVision, but I wrote simple character-based interfaces using Borland C++'s CONIO routines.
Basically all I needed was the ability to put a character wherever I wanted on the screen in whatever colors.
As of .net 2.0, that ability is in System.Console ! Thanks for giving me a reason to look.
|
|
|
|
|
i want SQL statment to retrive last 3 records
Palestine
|
|
|
|
|
SELECT TOP 3 *
FROM Table
ORDER BY ID DESC
Should have posted in the SQL forum though...
Snorkie
|
|
|
|
|
|
I have written a web based C# app that communicates with another System (G1) by consuming a web service via a proxy. The other system is Launch version 2 (G2), which will migrate clients over several months, so 2 webservices will need to be consumed. Both services are similar, but not identical.
Based on a Version value in the database associated with the client I need to instantiate objects from the G1 proxy service or G2 proxy service. However, I would then like to process them using common code, but based on the Version Value, perform specific assignments.
The proxy has the 2 services defined as
CIServiceProxy.CIService.Service
CIServiceProxy.G2CIService.Service
The services are extensive with 30 methods and 100s of properties.
Any help on direction greatly appreciated. My 5 day project has just leapt into infinity!
cheers
G Field
|
|
|
|
|
|
well...if this is an assignment, I highly doubt that your instructor is just "throwing you to the wolves" so to speak. Have you searched google? The MSDN? I suggest you start there. You learn nothing if someone else does your work for you....now if after doing some research into what you're supposed to do, you have SPECIFIC questions about how to work through issues that come up, this is the place to come
"I need build Skynet. Plz send code"
|
|
|
|
|
*cough* xor *cough*
File Not Found
|
|
|
|
|
I have an application that needs to read data continuously from some equipment while allowing user input. The application uses two threads, one for reading and writing data to this 'equipment', while the other is the user interface thread. This arrangement generally works fine and the application communicates needed information between the two threads seamlessly.
Unfortunately, as happens so often, new requirements for the application have come into play. In the event of a failure in some process run on the equipment, the user needs to be notified AND prompted with a query.
Previously, any errors encountered during communication with the equipment were reported via audible and/or email messages detailing the nature of the problem, which was 'easy' enough to handle, but now the user will need to do something about the error. I don't want to interrupt the thread reading the equipment, so I think it makes sense to have the failure trigger an event that then pops up a MessageBox or other user interface form to allow the user to choose an appropriate course of action while allowing the data processing thread to continue.
Would anyone be able to make some suggestions regarding how to solve this problem? As it so happens, certain data from the failure event needs to be recorded, so I would think a DataTable event might do the trick, but am open to any helpful suggestions. Thanks.
|
|
|
|
|
I have been search for a way to do this, and I haven't been able to find anything for .NET 2.0 There are a few solutions for 1.0, but not for 2.0 =( Can anyone point me in the right direction here? Thanks =)
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
I thought of another way to do it. I can use process.start to start shutdown.exe, and pass the argument to restart the system That will work just fine.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
(Code for what he is talking about)
this worked for me:
Process p = new Process();<br />
p.StartInfo.FileName = "shuwdown";<br />
p.StartInfo.Arguments = "-r -t 0";<br />
p.Start();
the best way is to add a static boolean and if you need to reboot set it to true then add the following as the last thing in your main() function:
if(bDoReboot)<br />
{<br />
Process p = new Process();<br />
p.StartInfo.FileName = "shuwdown";<br />
p.StartInfo.Arguments = "-r -t 0";<br />
p.Start();<br />
}
this has issues tho because they might be a limited user and not allowed to shutdown
|
|
|
|
|
Theres no reason code written to target the 1.x framework would fail to work in the 2.x framework!
|
|
|
|
|
|
Even that's not acceptable. What if the user isn't at the machine when the 30s countdown starts, or what if they're doing something in a different app that can't be saved immediately? Anything other than a "This application needs to reboot your system. Reboot now? Yes/No" dialog that honors the no choice is totally unacceptable. I've encountered a few that didn't in the past. For some odd reason I don't think any of them lasted more than 10 minutes on my harddrive.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Whoops, yeah. Present the MessageBox, and if Yes, then proceed to InitiateSystemShutdown.
|
|
|
|
|