|
Hi,
i want my application to authonticate through the windows Authontication..
meanin that if a user has entered the network domain.. i want my program to check through the active directory or whereever she needs to check , if the user is on a the list (and then he can have access to some speacical features) and if not(but still on the domain users list) to be able to access other features.
how do i accomplish this task through c#?
and if you can tell me how to configuire the active directory as well i will be grateful...
thanks YOSI
|
|
|
|
|
A simple web search is all you need: here[^].
|
|
|
|
|
In simplest terms -- i know it binds data but someone please make this make since to me
currencymanager???
thanks
|
|
|
|
|
Just a shot in the dark, but CurrencyManager is used to keep data-bound controls synchronized (current) with each other. Maybe that explains the name.
|
|
|
|
|
thanks but i need to know the logic of this class....
any articles???
or is someone able to give me a good explanation on the usage of this class
|
|
|
|
|
My application is using one registry value.Intially its value is TRUE. while Closing application the Value will be set to TRUE becoz i had handled the Close Event of application and set the Registry value to TRUE.so that when the application is open again the value should be TRUE, BUT if press i CTRL+ALT+DEL in between the running application.Close Event does not fire. Value remain FALSE in the registery value and my application does not work properly
Now my problem is where should i set the registry value to TRUE if i press CTRL+ALT+DEL in running application.
Amit Grover
CDAC R&D
|
|
|
|
|
Umm, maybe at startup?
I'd like to add, applications should never be designed to totally fail if a simple registry value wasn't set correctly. You have to code for the inevitable.
|
|
|
|
|
I'm assuming that you do more than just press Ctrl-Alt-Del, like selecting End Task in the Task Manager?
There is no way around this. End Task will TRY to close your application nicely, but chances are, the memory that your app is using will just be freed and your app dumped, without running any of its code! So, no, there is no way to catch this and run your Closing code anyway.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When adding refrences to other dll's in my solution, i run into a problem.
after editing, debugging, building(compiling) and saving the dll or reference
when running code in the class that uses the dll or reference i keep getting popup that says this file has been modified do you want to use this file. But it doesnt use the updated reference which makes the code act funny.
I am thinking the build order is wrong.....
How do i resolve this issue... hope this all makes since.
please let me know if you want me to explain something you dont understand
Thanks in advance
|
|
|
|
|
did u try this ....
copy the build dll to ur current project bin folder and refer it in the app
sathy
-- modified at 4:26 Thursday 29th December, 2005
|
|
|
|
|
Better idea. Don't set a reference to the .DLL file itself. Set a reference to the .DLL PROJECT. When you compile the application, it'll use the latest build of the .DLL automatically.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi i want to get the file name with path of that file that is (open, Rename, Delete, Modify) by the user. i use FSW (File system watcher class) it give me info about (Rename, modify, delete). but how i get event that which file is opened by the user by mouse or keyboard. Is there any class which capture events that any file is opened in a system. Plz reply
Mazhar
|
|
|
|
|
m_mazhar wrote: Is there any class which capture events that any file is opened in a system. Plz reply
No, there isn't. This requires hooking into the NTFS filesystem. Check out FileMon[^] at SysInternals. There is a list of references that was used (all books!) to build that utilities abilty to do just what you want.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I'm writing a C# add-in, I need the current project directory in my code (not the runtime IDE's projects).
e.g. I write code in C:\Documents and Settings\f-xidwu\My Documents\Visual Studio Projects\winConsole\winConsole.cpp, thus how can I get C:\Documents and Settings\f-xidwu\My Documents\Visual Studio Projects\winConsole path?
|
|
|
|
|
|
hi,Application.startpath or executablepath will lead to the application directory which contain the .exe file (sometimes debug directory), but not the project directory.
ps: an add-in's .exe directory is C:/Program Files/.../Comman7/IDE/ usually.
|
|
|
|
|
You can't get the project directory at runtime, simply because it's not the individual CS files that run the application, but the exe or dll built from them. The only way I know is to hardcode the strings inside the files themselves.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi,
My Application currently have an embedded MS Access Database, the Connection String as follow:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\\..\\DataBase\\DataBase.mdb"
but every time when i publish my application and execute, it pops an Error message saying the Data Source Path is invalid. It seems like the Current Working Directory is somewhere in the memory, not the file location.
How can i setup it up so that no matter where the application is located, as long as the DataBase.mdb file is in the same directory, it knows where to find it?
Thanks alot
Need Help
Thank you very much
|
|
|
|
|
Hi all,
I'm making a ListView like a break point window, when someone insert a new breakpoint on the margin indicator or through the insert break point dialog, even when press F9, I want my listview to refresh.
I've searched a lot, but seems nothing useful. What should I do? what's the right event or command?
3x.;P
Xiaodao
|
|
|
|
|
hi all,
i have a problem dealing with cascading style sheet.
how do i link my style sheet (placed background pic inside) to Default.aspx (example).
i want the picture to appear when i run Default.aspx
error occurs when i tried.
error message:-
Error 1=> Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'link' cannot be nested within element 'html'.
where shall i put this link then?
link: thanks for the help..
-DarkangeL-
|
|
|
|
|
|
thanks for your help..
i can do it already..
thanks again..
-DarkangeL-
|
|
|
|
|
Hi, I was wondering if anyone has come across a solution to this problem, I need to get all possible unique permutations for a list of numbers (as sourced from a flagged enumeration). For example:
Enum def:
In = 1
Out = 2
Over = 4
Hover = 8
Would equate to:
In, Out, Over, Hover
In, Out, Over
In, Out
In, Over
In, Hover
In, Over, Hover
In
Out, Over, Hover
Out, Over
Out, Hover
Out
Over, Hover
Over
Hover
I need to end up with a list of all the possible permutations this enumeration could possibly be. A rather larget snag is that it could be any flagged enumeration, the method needs to take a type (which will be an enumeration type) and dynamically work out this list at run-time.
I think this is correct, the list looks unique but its late and I need sleep! Any help would be appreciated!
Thanks,
Kieron
|
|
|
|
|
Here's one way to generate the output you're looking for. An alternative approach is to set some enum value to each subset of all possible values, calling the Enum.ToString() method on every iteration.
<br />
[Flags]<br />
enum testenum { In, Out, Over, Hover }<br />
<br />
static void PrintFlags(string[] names, IList curnames, int idx) {<br />
<br />
if (idx == names.Length) {
if (curnames.Count == 0) {<br />
System.Console.WriteLine("[None]");<br />
} else {<br />
for (int i = 0; i < curnames.Count - 1; i++)<br />
System.Console.Write("{0}, ", curnames[i]);<br />
System.Console.WriteLine(curnames[curnames.Count - 1]);<br />
}<br />
return;<br />
}<br />
<br />
curnames.Add(names[idx]);<br />
PrintFlags(names, curnames, idx + 1);<br />
<br />
curnames.RemoveAt(curnames.Count - 1);<br />
PrintFlags(names, curnames, idx + 1);<br />
}<br />
<br />
static void Main(string[] args) {<br />
<br />
string[] names = Enum.GetNames(typeof(testenum));<br />
ArrayList curnames = new ArrayList(names.Length);<br />
PrintFlags(names, curnames, 0);<br />
<br />
}<br />
Hope this helps!
|
|
|
|
|
Hi, thats excellent! Works a treat, thanks very much! (:
|
|
|
|