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

C#

 
QuestionHow are create code C# to DLL Pin
yomi_jack7-Oct-08 3:01
yomi_jack7-Oct-08 3:01 
AnswerRe: How are create code C# to DLL Pin
Ashfield7-Oct-08 3:06
Ashfield7-Oct-08 3:06 
GeneralRe: How are create code C# to DLL Pin
yomi_jack7-Oct-08 14:49
yomi_jack7-Oct-08 14:49 
AnswerRe: How are create code C# to DLL Pin
Paul Conrad7-Oct-08 6:18
professionalPaul Conrad7-Oct-08 6:18 
QuestionMVC Implementation in C# Pin
Sadaqat Bukhari7-Oct-08 2:05
Sadaqat Bukhari7-Oct-08 2:05 
AnswerRe: MVC Implementation in C# Pin
leppie7-Oct-08 2:18
leppie7-Oct-08 2:18 
GeneralRe: MVC Implementation in C# Pin
User 66587-Oct-08 3:09
User 66587-Oct-08 3:09 
GeneralRe: MVC Implementation in C# Pin
Ashfield7-Oct-08 3:43
Ashfield7-Oct-08 3:43 
QuestionCrystal report Error? Pin
murali_utr7-Oct-08 1:39
murali_utr7-Oct-08 1:39 
AnswerRe: Crystal report Error? Pin
Wendelius7-Oct-08 8:15
mentorWendelius7-Oct-08 8:15 
GeneralRe: Crystal report Error? Pin
murali_utr7-Oct-08 21:23
murali_utr7-Oct-08 21:23 
QuestionProblem of A generic error occurred in GDI+. Pin
MallikarjunaGupta7-Oct-08 1:27
MallikarjunaGupta7-Oct-08 1:27 
AnswerRe: Problem of A generic error occurred in GDI+. Pin
DaveyM697-Oct-08 1:46
professionalDaveyM697-Oct-08 1:46 
AnswerRe: Problem of A generic error occurred in GDI+. Pin
leppie7-Oct-08 2:21
leppie7-Oct-08 2:21 
AnswerRe: Problem of A generic error occurred in GDI+. Pin
Mark Salsbery7-Oct-08 3:58
Mark Salsbery7-Oct-08 3:58 
QuestionFailure Of Exe- Error: Cannot load Interop.Excel.1.5.0.0.dll file Pin
DJ2457-Oct-08 1:20
DJ2457-Oct-08 1:20 
AnswerRe: Failure Of Exe- Error: Cannot load Interop.Excel.1.5.0.0.dll file Pin
Giorgi Dalakishvili7-Oct-08 1:32
mentorGiorgi Dalakishvili7-Oct-08 1:32 
GeneralRe: Failure Of Exe- Error: Cannot load Interop.Excel.1.5.0.0.dll file Pin
DJ2457-Oct-08 1:36
DJ2457-Oct-08 1:36 
GeneralRe: Failure Of Exe- Error: Cannot load Interop.Excel.1.5.0.0.dll file Pin
Giorgi Dalakishvili7-Oct-08 1:44
mentorGiorgi Dalakishvili7-Oct-08 1:44 
QuestionCopy treeNodeCollection problem Pin
sepel7-Oct-08 0:11
sepel7-Oct-08 0:11 
AnswerRe: Copy treeNodeCollection problem Pin
Eduard Keilholz7-Oct-08 0:27
Eduard Keilholz7-Oct-08 0:27 
AnswerRe: Copy treeNodeCollection problem Pin
DaveyM697-Oct-08 1:09
professionalDaveyM697-Oct-08 1:09 
A node can't exist in two treevies at once. Each node has to be cloned first so some sort of loop is inevitable. Two code snippets below. The first does what you want but with a loop. The second moves the nodes rather than copies but no loop required.
// Copies the nodes
if (treeView1.Nodes.Count > 0)
{
    TreeNodeCollection treeNodes = treeView1.Nodes;
    TreeNode[] nodearray = new TreeNode[treeNodes.Count];
    for (int i = 0; i < nodearray.Length; i++)
    {
        nodearray[i] = (TreeNode)treeNodes[i].Clone();
    }
    treeView2.Nodes.AddRange(nodearray);
}

//Moves the nodes
if (treeView1.Nodes.Count > 0)
{
    TreeNodeCollection treeNodes = treeView1.Nodes;
    TreeNode[] nodearray = new TreeNode[treeNodes.Count];
    treeNodes.CopyTo(nodearray, 0);
    //Clear the original tree as nodes can't exist in both
    treeView1.Nodes.Clear();
    treeView2.Nodes.AddRange(nodearray);
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: Copy treeNodeCollection problem Pin
sepel7-Oct-08 7:30
sepel7-Oct-08 7:30 
Questionhow to monitor WCF/web services traffic? Pin
George_George6-Oct-08 23:42
George_George6-Oct-08 23:42 
AnswerRe: how to monitor WCF/web services traffic? Pin
blackjack21507-Oct-08 2:42
blackjack21507-Oct-08 2:42 

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.