|
Reason for my vote of 1: Why cut and paste that lot? Why did you not just give a link to your Q&A question? Now, you have two places with the same info, that potentially could duplicate work if anyone does answer.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
LAPEC wrote: no one seems to answer my question
There could be a number of reasons for that:
1) No body knew the answer.
2) No body could be bothered to work out what the question was, because of the large lump of code they didn't want to bother with.
3) You didn't seem to have shown much effort in working on your problem yourself.
4) Some combination of the above.
You have to remember: not everybody looks at Q&A; nobody here gets paid for this; most of us have jobs which do pay and expect a certain amount of work from us.
You aren't helping yourself by taking a whining, petulant tone in your "bump" message...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
LAPEC wrote: I thought that the Code Project Forum is there for people to help who dont have much knowledge on programming...
It's a forum, people meet. Sometimes they help each other, but being a member is no replacement for an education.
I are Troll
|
|
|
|
|
pls i want to disabled permanently my my cd/dvd eject buton.
thanks.
|
|
|
|
|
Enobong Adahada wrote: pls i want to disabled permanently my my cd/dvd eject buton.
Similar to this[^]?
That way you'd have an unusable drive that consumes power. How about disabling the entire drive?
I are Troll
|
|
|
|
|
I want to use code to open and close it, i don't want users to open it using the eject button.
|
|
|
|
|
And if your application hangs, user will have to restart the computer to open cd/dvd drive?
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
Or push a paper clip into the tiny hole!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
The users do not need to use the cd/dvd drives during a certain period in my office,
I want a code to disabled the Eject button to keep them out, at this this time.
is there a such a code in c#, i found some in vb.
Thank for you response.
|
|
|
|
|
Users either have access, or they don't. You're looking for a "Child Safety Lock" for your employees?
I are Troll
|
|
|
|
|
|
CD/DVD-Rom lockout? Why? What would prevent them from using a USB flash drive (or some other USB device) and using external files anyway? (I assume that is what you are trying to prevent.)
|
|
|
|
|
If you have the VB code, it should be fairly easy to translate...
...by someone who knows both VB and C#...
...me, not being one of those people.
|
|
|
|
|
Not a code example, but you can disable CDROM/Remoable Driver/etc. in Windows' Group Policy (at least in Windows 7)
|
|
|
|
|
Superglue.
Use a screwdriver to remove it.
Disconnect the wires.
As you see, lots of options available
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Thanks for the advice, but NO.
|
|
|
|
|
It's ok, I was only joking anyway!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
This One[^]
does not do exactly what you want, but hope will be much helpful in the way.
|
|
|
|
|
What about ejecting from Explorer?
|
|
|
|
|
This tip[^] I posted sometime ago disables it, but not permanently.
You could make the app run at start up (perhaps a service) so it is effectively permanently disabled.
|
|
|
|
|
I have small number of GUI attribute that i need to save in my application.
The attribute are simple ( windows size, window color, ext... ) and they need to be store in file ( can be XML or binary ).
I don't sure i know what is the fest and best way to write the code ?
Is it simple XML or serialization ?
Is there some example ?
Thanks.
|
|
|
|
|
|
|
Dagnabit, I almost have that article ready...
|
|
|
|
|
My C# program was developed by the Visual Studio 2005, and i have set the prerequisites to .NET framework 2.0, and i have tested to install it on a Clean windows 7 it has included .NET framework 3.5, and it seems my program is working, but how could i force it to use .NET framework 2.0?
And also, there is .NET framework 2.0 SP3, how could i include it and force the client to install it manually?
Thanks
|
|
|
|