Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing value from form to an active form [modified] Pin
Alex B. Clarke28-May-06 10:06
Alex B. Clarke28-May-06 10:06 
GeneralRe: Passing value from form to an active form [modified] Pin
StevenS_Dev28-May-06 14:46
StevenS_Dev28-May-06 14:46 
Questiondelete Pin
kjosh28-May-06 5:55
kjosh28-May-06 5:55 
AnswerRe: delete Pin
WillemM28-May-06 6:54
WillemM28-May-06 6:54 
AnswerRe: delete Pin
JelleM28-May-06 6:54
JelleM28-May-06 6:54 
QuestionWhy new node in TreeList not can have focus? Pin
Dima Filipiuk28-May-06 5:46
Dima Filipiuk28-May-06 5:46 
AnswerRe: Why new node in TreeList not can have focus? Pin
stancrm28-May-06 21:13
stancrm28-May-06 21:13 
GeneralRe: Why new node in TreeList not can have focus? [modified] Pin
Dima Filipiuk29-May-06 0:45
Dima Filipiuk29-May-06 0:45 
TreeList not have SelectedNode, it have FocusedNode.
But this dont help me.
If 1 folder is open in treelist:
node-
-node-
|node-
node-

I add node:

node-
-node-
|node-
node-
node(not focus, by FocusedNode)

I add node:

node-
-node-
|node-
node-
node(focus may be)
node(focus Ok, by FocusedNode)

I add node:

node-
-node-
|node-
node-
node(focus may be)
node(focus may be)
node(not focus, by FocusedNode)
...
I add node:

node(focus Ok, by FocusedNode)

I add node:

node(not focus, by FocusedNode)
...
May be you help me? I don't know how to fix this problem.Confused | :confused:

My code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Reflection;
using DevExpress.XtraTreeList;
using DevExpress.XtraTreeList.Nodes;

namespace video
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void simpleButton1_Click(object sender, EventArgs e)
{
TLNode tln1 = new TLNode(1, treeList1.Nodes, "dfhdfhgdf", "234523");
treeList1.Nodes.Add(tln1);
treeList1.FocusedNode = tln1;
}

private void simpleButton2_Click(object sender, EventArgs e)
{
TLNode tln1 = new TLNode(1, treeList1.Nodes, "4567rtyu4567", "ertye3456ertye");
tln1.HasChildren = true;
TLNode tln_children = new TLNode(2, tln1.Nodes, "trtr3636yryr", "6868cncn2525");
tln1.Nodes.Add(tln_children);
treeList1.Nodes.Add(tln1);
}

}

public class TLNode: TreeListNode
{
string name;
string url;
public TLNode(int id, TreeListNodes owner, string name_, string url_) : base(id, owner)
{
name = name_;
url = url_;
}
public override void SetValue(object columnID, object val)
{
}

public override object GetValue(object columnID)
{
return "text";
}
}

}

-- modified at 6:50 Monday 29th May, 2006
QuestionTrigger event when a process exits Pin
Mridang Agarwalla28-May-06 2:47
Mridang Agarwalla28-May-06 2:47 
AnswerRe: Trigger event when a process exits Pin
Guffa28-May-06 4:04
Guffa28-May-06 4:04 
AnswerRe: Trigger event when a process exits Pin
leppie28-May-06 4:11
leppie28-May-06 4:11 
Questionhow to get password textbox in asp.net Pin
foysal mamun27-May-06 23:30
foysal mamun27-May-06 23:30 
AnswerRe: how to get password textbox in asp.net Pin
Billah28-May-06 0:44
Billah28-May-06 0:44 
GeneralRe: how to get password textbox in asp.net Pin
foysal mamun28-May-06 20:57
foysal mamun28-May-06 20:57 
QuestionSend sms from internet ? [modified] Pin
hasan_hasany27-May-06 23:13
hasan_hasany27-May-06 23:13 
AnswerRe: Send sms from internet ? [modified] Pin
hasan_hasany30-May-06 11:32
hasan_hasany30-May-06 11:32 
QuestionLua & C# Pin
Mridang Agarwalla27-May-06 20:48
Mridang Agarwalla27-May-06 20:48 
AnswerRe: Lua & C# Pin
Guffa28-May-06 2:46
Guffa28-May-06 2:46 
GeneralRe: Lua & C# Pin
Mridang Agarwalla28-May-06 2:52
Mridang Agarwalla28-May-06 2:52 
QuestionRunWorkerCompletedEventArgs.Error Not Being Set Pin
Peter Vertes27-May-06 18:34
Peter Vertes27-May-06 18:34 
AnswerRe: RunWorkerCompletedEventArgs.Error Not Being Set Pin
S. Senthil Kumar28-May-06 20:17
S. Senthil Kumar28-May-06 20:17 
QuestionOpen Notepad from Web Browser in ASP.NET Pin
Billah27-May-06 17:39
Billah27-May-06 17:39 
AnswerRe: Open Notepad from Web Browser in ASP.NET Pin
Colin Angus Mackay28-May-06 1:06
Colin Angus Mackay28-May-06 1:06 
GeneralRe: Open Notepad from Web Browser in ASP.NET Pin
Billah28-May-06 1:34
Billah28-May-06 1:34 
GeneralRe: Open Notepad from Web Browser in ASP.NET Pin
Colin Angus Mackay28-May-06 2:48
Colin Angus Mackay28-May-06 2:48 

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.