Click here to Skip to main content
15,905,322 members
Home / Discussions / C#
   

C#

 
AnswerRe: Where can i get a machine specific code of some sort? Pin
Amar Chaudhary12-Oct-06 23:58
Amar Chaudhary12-Oct-06 23:58 
GeneralRe: Where can i get a machine specific code of some sort? Pin
Anthony Mushrow13-Oct-06 0:11
professionalAnthony Mushrow13-Oct-06 0:11 
GeneralRe: Where can i get a machine specific code of some sort? Pin
Amar Chaudhary13-Oct-06 1:36
Amar Chaudhary13-Oct-06 1:36 
GeneralRe: Where can i get a machine specific code of some sort? Pin
Anthony Mushrow13-Oct-06 4:49
professionalAnthony Mushrow13-Oct-06 4:49 
GeneralRe: Where can i get a machine specific code of some sort? Pin
Dave Kreskowiak13-Oct-06 6:57
mveDave Kreskowiak13-Oct-06 6:57 
AnswerRe: Where can i get a machine specific code of some sort? Pin
Daniel Grunwald13-Oct-06 7:15
Daniel Grunwald13-Oct-06 7:15 
GeneralRe: Where can i get a machine specific code of some sort? Pin
Anthony Mushrow13-Oct-06 12:58
professionalAnthony Mushrow13-Oct-06 12:58 
GeneralRe: Where can i get a machine specific code of some sort? Pin
mav.northwind13-Oct-06 22:21
mav.northwind13-Oct-06 22:21 
Questionhow to debug Com Components in .net applications? Pin
vinay_inavolu12-Oct-06 23:41
vinay_inavolu12-Oct-06 23:41 
AnswerRe: how to debug Com Components in .net applications? Pin
Sreenath Madyastha13-Oct-06 4:17
Sreenath Madyastha13-Oct-06 4:17 
QuestionHelp!! develop Directx9.0 with C# Pin
BestYangFeng12-Oct-06 23:34
BestYangFeng12-Oct-06 23:34 
AnswerRe: Help!! develop Directx9.0 with C# Pin
Amar Chaudhary12-Oct-06 23:53
Amar Chaudhary12-Oct-06 23:53 
QuestionC# Windows Application Setup Pin
quiteSmart12-Oct-06 22:30
quiteSmart12-Oct-06 22:30 
AnswerRe: C# Windows Application Setup Pin
Colin Angus Mackay12-Oct-06 23:00
Colin Angus Mackay12-Oct-06 23:00 
GeneralRe: C# Windows Application Setup Pin
quiteSmart12-Oct-06 23:04
quiteSmart12-Oct-06 23:04 
GeneralRe: C# Windows Application Setup Pin
WillemM12-Oct-06 23:30
WillemM12-Oct-06 23:30 
AnswerRe: C# Windows Application Setup Pin
Tauseef A13-Oct-06 0:07
Tauseef A13-Oct-06 0:07 
QuestionC# opengl text Pin
Anti-Distinctlyminty12-Oct-06 22:27
Anti-Distinctlyminty12-Oct-06 22:27 
AnswerRe: C# opengl text Pin
Anti-Distinctlyminty12-Oct-06 23:31
Anti-Distinctlyminty12-Oct-06 23:31 
QuestionHow to make a form unclickable Pin
greyzz12-Oct-06 22:16
greyzz12-Oct-06 22:16 
AnswerRe: How to make a form unclickable Pin
AB777112-Oct-06 22:43
AB777112-Oct-06 22:43 
GeneralRe: How to make a form unclickable Pin
greyzz12-Oct-06 22:52
greyzz12-Oct-06 22:52 
QuestionSPGroupCollection.Add exception Pin
WillemM12-Oct-06 21:46
WillemM12-Oct-06 21:46 
I'm trying hard to create a way to automate user administration on sharepoint and I got around to produce the following.

SPSite site = new SPSite("http://sharepoint/klantgegevens/" + groupname);
SPWeb web = site.OpenWeb();
SPMember member = null;
SPUser user = null;
bool found = false;

found = SharepointGroupExists(groupname);

for (int index = 0; index < web.Users.Count; index++)
{
if (web.Users[index].IsSiteAdmin)
{
member = web.Users[index];
user = web.Users[index];

break;
}
}

if (!found)
{
web.SiteGroups.Add(groupname,member, user, "");
}

But there's an exception coming from the web.SiteGroups.Add(..); call. It says Value does not fall in the expected range. Can anybody tell me where I could find more information on this call, especially some information on the exceptions it can throw.

WM.

What about weapons of mass-construction?

AnswerRe: SPGroupCollection.Add exception Pin
WillemM12-Oct-06 22:20
WillemM12-Oct-06 22:20 
Questionhow add context help by pressing F1 key Pin
sikandarhayat12-Oct-06 20:51
sikandarhayat12-Oct-06 20:51 

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.