Click here to Skip to main content
15,902,757 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why flags (bool type variables) not recommended in programming? Pin
Member 232448330-Oct-08 12:34
Member 232448330-Oct-08 12:34 
GeneralRe: Why flags (bool type variables) not recommended in programming? Pin
Nagy Vilmos30-Oct-08 23:11
professionalNagy Vilmos30-Oct-08 23:11 
QuestionManually add data to datagrid combobox in C# Pin
Brad Wick30-Oct-08 9:28
Brad Wick30-Oct-08 9:28 
AnswerRe: Manually add data to datagrid combobox in C# Pin
Sami Sammour31-Oct-08 1:32
Sami Sammour31-Oct-08 1:32 
GeneralRe: Manually add data to datagrid combobox in C# Pin
Brad Wick31-Oct-08 4:19
Brad Wick31-Oct-08 4:19 
GeneralRe: Manually add data to datagrid combobox in C# Pin
Sami Sammour31-Oct-08 6:43
Sami Sammour31-Oct-08 6:43 
GeneralRe: Manually add data to datagrid combobox in C# Pin
Brad Wick31-Oct-08 7:35
Brad Wick31-Oct-08 7:35 
Questionchristmas exchange list generator Pin
aei_totten30-Oct-08 9:12
aei_totten30-Oct-08 9:12 
Here is what I am trying to do.
I have treeview that is full of a family tree.
Example

parent1
-spouce1
-kid1
-secondkid1

parent2
-kid2

parent3
-spouce3
-kid3

parent4


(but I don't really know how many parents and kids there are.

So, now what I want to do is randomly match up each person with someone else, but not someone in thier own node. For example, I don't want parent1 to get matched up with his spouce or kids, but he would be fine matched up with parent2 or his kid.

My brain is about mush right now and I am not thinking of how to do this, though there must be a simple way.

My original idea was to put everything into arrays. Then choose the longest array and randomly chhose another array then randomly choose a member of that array to match up with the first person, then remove both people from the arrays and calculate the longest array again and repeat until there is no one left. But implementing the idea seemed more complicated and I thought there must be an easier way, no?
AnswerRe: christmas exchange list generator Pin
Ben Fair30-Oct-08 9:52
Ben Fair30-Oct-08 9:52 
GeneralRe: christmas exchange list generator Pin
aei_totten30-Oct-08 10:01
aei_totten30-Oct-08 10:01 
Questionhow to Open compressed TIF (JTIF) within WinForm and C# Pin
ImNAM30-Oct-08 7:29
ImNAM30-Oct-08 7:29 
AnswerRe: how to Open compressed TIF (JTIF) within WinForm and C# Pin
Dave Kreskowiak30-Oct-08 8:09
mveDave Kreskowiak30-Oct-08 8:09 
GeneralRe: how to Open compressed TIF (JTIF) within WinForm and C# Pin
Dan Neely30-Oct-08 8:56
Dan Neely30-Oct-08 8:56 
GeneralRe: how to Open compressed TIF (JTIF) within WinForm and C# Pin
Dave Kreskowiak30-Oct-08 15:56
mveDave Kreskowiak30-Oct-08 15:56 
GeneralRe: how to Open compressed TIF (JTIF) within WinForm and C# Pin
Dan Neely31-Oct-08 2:03
Dan Neely31-Oct-08 2:03 
Questionclosed dialog (from other thread) minimizes application - need some help please !!! Pin
Skeletor2330-Oct-08 7:00
Skeletor2330-Oct-08 7:00 
AnswerRe: closed dialog (from other thread) minimizes application - need some help please !!! Pin
jas0n232-Nov-08 1:53
jas0n232-Nov-08 1:53 
QuestionSecurity in a C# based Desktop Application Pin
mdwhite7630-Oct-08 6:07
mdwhite7630-Oct-08 6:07 
AnswerRe: Security in a C# based Desktop Application Pin
Simon P Stevens30-Oct-08 6:32
Simon P Stevens30-Oct-08 6:32 
AnswerRe: Security in a C# based Desktop Application Pin
Giorgi Dalakishvili30-Oct-08 8:30
mentorGiorgi Dalakishvili30-Oct-08 8:30 
QuestionProblem of Unloading Managed C++ DLL... Pin
chandrap30-Oct-08 5:57
chandrap30-Oct-08 5:57 
QuestionRe: Problem of Unloading Managed C++ DLL... Pin
Mark Salsbery30-Oct-08 7:29
Mark Salsbery30-Oct-08 7:29 
AnswerRe: Problem of Unloading Managed C++ DLL... Pin
chandrap30-Oct-08 7:32
chandrap30-Oct-08 7:32 
GeneralRe: Problem of Unloading Managed C++ DLL... Pin
chandrap30-Oct-08 7:44
chandrap30-Oct-08 7:44 
GeneralRe: Problem of Unloading Managed C++ DLL... Pin
Mark Salsbery30-Oct-08 7:53
Mark Salsbery30-Oct-08 7:53 

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.