Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Closing a exe file [modified] Pin
Nuri Ismail18-Feb-09 21:49
Nuri Ismail18-Feb-09 21:49 
GeneralRe: Closing a exe file Pin
mrithula818-Feb-09 23:11
mrithula818-Feb-09 23:11 
GeneralRe: Closing a exe file Pin
Nuri Ismail18-Feb-09 23:14
Nuri Ismail18-Feb-09 23:14 
Questiondraw a line similar to the one present in ms word Pin
sabeel alwosol18-Feb-09 2:59
sabeel alwosol18-Feb-09 2:59 
AnswerRe: draw a line similar to the one present in ms word Pin
Thomas Stockwell18-Feb-09 4:22
professionalThomas Stockwell18-Feb-09 4:22 
QuestionCompare file length and lines of data in 2 files inside a zip file Pin
Member 322226418-Feb-09 2:56
Member 322226418-Feb-09 2:56 
AnswerRe: Compare file length and lines of data in 2 files inside a zip file Pin
Deresen18-Feb-09 4:03
Deresen18-Feb-09 4:03 
QuestionCross domain AD search Pin
NanaAM18-Feb-09 2:03
NanaAM18-Feb-09 2:03 
Question:- I have one Parent domain called PDomain, and two child domains Child1, Child2. Child1 has a user called John. Child2 has a role called Developers. Now John is added as a member of group Developers.

When I try to get all roles for John, it never returns Developers.
Following is the code I am using to search:-

DirectoryEntry entry=new DirectoryEntry(Path);
DirectorySearcher mySearcher= new DirectorySearcher(entry);
mySearcher.Filter = "(&(objectClass=user) (cn=John))";
mySearcher.PropertiesToLoad.Add("memberOf");
SearchResult myresult = mySearcher.FindAll();

The issue is, Path I send as Child1, it does not have the role assigned, and if I send the path as Child2, it is not able to find the user.
I have tried using mySearcher.SearchScope = SearchScope.OneLevel; or subtree also. Nothing works.

Any idea anyone?

Nana

QuestionUnwanted Dash in HTTP request string Pin
cfoxtrot18-Feb-09 1:44
cfoxtrot18-Feb-09 1:44 
QuestionUsing PowerPoint Application in .net Pin
nameen18-Feb-09 1:06
nameen18-Feb-09 1:06 
Questiondrawing lines at runtime Pin
maisa.z18-Feb-09 0:30
maisa.z18-Feb-09 0:30 
AnswerRe: drawing lines at runtime Pin
J4amieC18-Feb-09 0:41
J4amieC18-Feb-09 0:41 
AnswerRe: drawing lines at runtime Pin
dan!sh 18-Feb-09 2:15
professional dan!sh 18-Feb-09 2:15 
QuestionFinding controls in datagridview dynamically Pin
Nitin K17-Feb-09 23:52
Nitin K17-Feb-09 23:52 
AnswerRe: Finding controls in datagridview dynamically Pin
Calin Tatar18-Feb-09 0:50
Calin Tatar18-Feb-09 0:50 
GeneralRe: Finding controls in datagridview dynamically Pin
Nitin K18-Feb-09 2:20
Nitin K18-Feb-09 2:20 
GeneralRe: Finding controls in datagridview dynamically Pin
Calin Tatar18-Feb-09 2:26
Calin Tatar18-Feb-09 2:26 
GeneralRe: Finding controls in datagridview dynamically Pin
Calin Tatar18-Feb-09 2:35
Calin Tatar18-Feb-09 2:35 
QuestionVisual Studio Setup Project, how to make sure files are overwritten. Pin
^mrc^17-Feb-09 23:41
^mrc^17-Feb-09 23:41 
AnswerRe: Visual Studio Setup Project, how to make sure files are overwritten. Pin
Mirko198018-Feb-09 0:02
Mirko198018-Feb-09 0:02 
QuestionHow to set user-defined-type as Oracle SP input parameter in .NET Pin
AnilJayanti17-Feb-09 23:19
AnilJayanti17-Feb-09 23:19 
AnswerRe: How to set user-defined-type as Oracle SP input parameter in .NET Pin
ABitSmart18-Feb-09 0:46
ABitSmart18-Feb-09 0:46 
AnswerHow to use user-defined-type input and output parameters in Oracle Function using ODP.NET Pin
AnilJayanti18-Feb-09 22:09
AnilJayanti18-Feb-09 22:09 
QuestionHow to override Button Click EventArgs or use another ways to achieve it? Pin
mctramp16817-Feb-09 21:10
mctramp16817-Feb-09 21:10 
AnswerRe: How to override Button Click EventArgs or use another ways to achieve it? Pin
dan!sh 17-Feb-09 21:33
professional dan!sh 17-Feb-09 21:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.