|
I am building a windows application in which I add users to the active directory.
In the normal active directory users and computers mmc (with exchange features plug-in installed), there is a posibility to add custom extended attributes (extensionAttribute1-15) under the exchange tab in user properties. Is it possible to enumerate these values through my application?
|
|
|
|
|
AFAIK it should work the same way as setting all the other attributes ie if you are using .NET use DirectoryEntry.Properties to read write them.
|
|
|
|
|
can someone suggest some good book(s) on C# and .NET?
Thanks!
|
|
|
|
|
It depends greatly on your level of experience and what kind of programming you wish to do, but here are a few of the better ones I've found:
Applied Microsoft .NET Framework Programming[^] by Jeffrey Richter
Programming .NET Components[^] by Juval Lowy
Programming C#[^], by Jesse Liberty
Programming Windows with C#[^] by Charles Petzold
There are others, such as Debugging Applications for Microsoft .NET and Microsoft Windows[^] by John Robbins, that have a lot of valuable information, but also include a good deal of non-.NET focused material, so not all of it will apply.
Like I said, though, it depends on what you're after, so if you want to write Donkey Kong.NET, you may want to look elsewhere.
Charlie
if(!curlies){ return; }
|
|
|
|
|
|
These books gave me a great start:
Applied .NET framework programming - Jeffrey Richter
Inside C# - Tom Archer
Professional C# - Wrox
Also frequents CP visits help honing your skills further. Especially posting your code and letting people dissect it ruthlessly...
Salil Khedkar [^]
|
|
|
|
|
|
Hi, guys
How can I know the language information of the operating system in my routine? Because I need read and write some files and you know, in different language operating system(eg. english and german) the directory string is different. So I think if I can learn what lanuage the operating system is using, I can choose relevant correct directory string.
Alternatively, do you have other ways to solve the problem of reading and writting files in several language system?
Thanks.
vigorous
|
|
|
|
|
The Application class contains static properties providing some directory paths e.g. CommonAppDataPath or LocalUserAppDataPath .
Furthermore you could use the CurrentCulture property to get the culture information for the current thread.
www.troschuetz.de
|
|
|
|
|
|
Make what?
A tab control? You can just drag that off the Toolbox in the form designer, then add controls to each of the tab pages, as you would onto a normal form
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
With all due respect and thx for answering but emm.......WHAT TOOLBAR??? WHAT FORM DESIGNER???
I wrote this in here because I'm not even sure what language to write it with
|
|
|
|
|
Taylorz wrote:
WHAT TOOLBAR??? WHAT FORM DESIGNER???
I wrote this in here because I'm not even sure what language to write it with
He is referring to Visual Studio.NET, which is an integrated IDE for developing software. This forum is specific to C#. The IDE uses a toolbar to display controls that are available to you, and uses a form designer interface to set the layout of your application. Do you have Visual Studio.NET?
- Nick Parker My Blog | My Articles
|
|
|
|
|
Thx a lot I am getting it tomorrow
|
|
|
|
|
Hi,
I have to lock a file permanently using C# language. The requirement is that, we have a file containing the encrypted information and we need to lock this file so that user cannot edit the contents. I tried with read-only file creation, but this is not suitable for our requirement. Can any one tell me how can i achieve this. I jst want to lock a file(.txt) file permanently. It would be grateful, if the sample code is provided. Please reply with the help ASAP. Thanks a lot in advance.
|
|
|
|
|
See the documentation for the Lock method on the FileStream class.
Another alternative is passing FileShare.None when opening a FileStream.
[edit] BTW, it just occured me that the correct way of doing this is by using security and change the users who can write to this file. [/edit]
Yes, even I am blogging now!
|
|
|
|
|
Using C#, or any program, you can't lock the file permanently. Once the program that locked the file terminates, the lock is lost.
A better method is, like the other guy said, proper use of the OS Security features.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Okay,
Ive seen that when u book movie tickets through a pc, the app,lication has a visual diagram of the hall and you choose the seats you want by cliking on the diagram and "Voila! You got your tickets!". I managed to find out that the software is wriiten in .NET but what control do they use for thses purposes.
|
|
|
|
|
They probably made a custom control that spits out an image with a map so that when the user clicks it can inform the server what the user has clicked on. There is possibly some javascript as well so that the user interface is richer and more responsive.
Do you want to know more?
|
|
|
|
|
Hi,
I have to lock a file permanently using C# language. The requirement is that, we have a file containing the encrypted information and we need to lock this file so that user cannot edit the contents. I tried with read-only file creation, but this is not suitable for our requirement. Can any one tell me how can i achieve this. I jst want to leave a file(.txt) file permanently. It would be grateful, if the sample code is provided. Please reply with the help ASAP. Thanks a lot in advance.
|
|
|
|
|
Hi,
I was wondering if anyone could help me with a small hurdle that i've encountered? The problem is as follows:
I want to play mp3, wma, Wav through vb or C# but i dont want to use the windows media player control. I did come acroos a file in www.planet-source-code.com that plys anyfile using winmm.dll. Anyways th code was really messy so i couldnt use it.
|
|
|
|
|
You can use Managed DirectX 9, which includes a managed API (i.e. usable from VB.NET and C#) which allows the playing of MP3, WMA, and WAV files. The code looks very simple:
using Microsoft.DirectX.AudioVideoPlayback;
...
Audio.Play("myFile.mp3");
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
could you be mole elaborate....do u knoiw how to use winmm.dll
|
|
|
|
|
Hello, I have a form with a label on. The label is aligned to the right side of the form and the label's anchor is set to Bottom, Right. This means that if the label expands (due to the AutoSize property) it should expand to the left. However, this is not done and the result is that the text in the label is expanded to the right outside the form.
Is there a setting for expanding a Label to the left instead of the right when using the AutoSize property?
Cheers,
Chris
|
|
|
|
|
compchris wrote:
Is there a setting for expanding a Label to the left instead of the right when using the AutoSize property?
AFAIK, no; you'll need to manually reposition it or derive your own Label.
Yes, even I am blogging now!
|
|
|
|