Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: how add context help by pressing F1 key Pin
Stefan Troschuetz12-Oct-06 21:09
Stefan Troschuetz12-Oct-06 21:09 
Questiongetting a avi resource Pin
Parshant Verma12-Oct-06 20:40
Parshant Verma12-Oct-06 20:40 
AnswerRe: getting a avi resource Pin
AB777112-Oct-06 21:56
AB777112-Oct-06 21:56 
QuestionUse .Net library in C++ Pin
Ward12-Oct-06 20:13
Ward12-Oct-06 20:13 
AnswerRe: Use .Net library in C++ Pin
quiteSmart12-Oct-06 20:54
quiteSmart12-Oct-06 20:54 
AnswerRe: Use .Net library in C++ Pin
Nader Elshehabi13-Oct-06 13:02
Nader Elshehabi13-Oct-06 13:02 
GeneralRe: Use .Net library in C++ Pin
Ward15-Oct-06 20:40
Ward15-Oct-06 20:40 
GeneralRe: Use .Net library in C++ Pin
Nader Elshehabi16-Oct-06 4:09
Nader Elshehabi16-Oct-06 4:09 
QuestionSetting a form onto a panel. Pin
JacquesDP12-Oct-06 20:12
JacquesDP12-Oct-06 20:12 
AnswerRe: Setting a form onto a panel. Pin
AB777112-Oct-06 20:38
AB777112-Oct-06 20:38 
GeneralRe: Setting a form onto a panel. Pin
JacquesDP12-Oct-06 21:11
JacquesDP12-Oct-06 21:11 
GeneralRe: Setting a form onto a panel. Pin
AB777112-Oct-06 21:52
AB777112-Oct-06 21:52 
AnswerRe: Setting a form onto a panel. Pin
Andrei Ungureanu12-Oct-06 21:17
Andrei Ungureanu12-Oct-06 21:17 
GeneralRe: Setting a form onto a panel. Pin
JacquesDP12-Oct-06 21:38
JacquesDP12-Oct-06 21:38 
GeneralRe: Setting a form onto a panel. Pin
AB777112-Oct-06 21:52
AB777112-Oct-06 21:52 

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.