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

C#

 
JokeRe: C# Late-binding with Delphi Question Pin
Andrew_Thomas29-May-06 11:45
Andrew_Thomas29-May-06 11:45 
GeneralRe: C# Late-binding with Delphi Question Pin
leppie29-May-06 17:15
leppie29-May-06 17:15 
QuestionCan you use the VS.NET Designer for a TabPage? Pin
StevenS_Dev29-May-06 9:51
StevenS_Dev29-May-06 9:51 
AnswerRe: Can you use the VS.NET Designer for a TabPage? Pin
Rei Miyasaka29-May-06 10:53
Rei Miyasaka29-May-06 10:53 
GeneralRe: Can you use the VS.NET Designer for a TabPage? [modified] Pin
StevenS_Dev30-May-06 17:05
StevenS_Dev30-May-06 17:05 
QuestionSetting where Forms should show Pin
Tehshort29-May-06 9:24
Tehshort29-May-06 9:24 
AnswerRe: Setting where Forms should show [modified] Pin
Rei Miyasaka29-May-06 10:37
Rei Miyasaka29-May-06 10:37 
QuestionAdd node to TreeList Pin
Dima Filipiuk29-May-06 9:24
Dima Filipiuk29-May-06 9:24 
If treelist have open node, and i add new node to treelist - new node not can have focus.Confused | :confused:
treelist.AllNodesCount = all nodes in treelist - 1 ???

But if all node is close, and i add new node - !!! my new node can have focus!!!
treelist.AllNodesCount = all nodes in treelist !

My code:

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";
}
}

}



How to do this problem?
Help me please.


AnswerRe: Add node to TreeList Pin
leppie29-May-06 12:54
leppie29-May-06 12:54 
QuestionCan not use INSERT INTO for Date/Time Variable? Pin
surasaku29-May-06 8:57
surasaku29-May-06 8:57 
AnswerRe: Can not use INSERT INTO for Date/Time Variable? Pin
Christopher Duncan29-May-06 9:55
Christopher Duncan29-May-06 9:55 
AnswerRe: Can not use INSERT INTO for Date/Time Variable? Pin
Guffa29-May-06 10:01
Guffa29-May-06 10:01 
AnswerRe: Can not use INSERT INTO for Date/Time Variable? Pin
Guffa1-Jun-06 11:55
Guffa1-Jun-06 11:55 
QuestionUsing PathGradientBrush Pin
JuanAlbertoMD29-May-06 8:33
JuanAlbertoMD29-May-06 8:33 
QuestionHow to send e-mail Pin
ventomito29-May-06 7:39
ventomito29-May-06 7:39 
AnswerRe: How to send e-mail Pin
Guffa29-May-06 8:13
Guffa29-May-06 8:13 
GeneralRe: How to send e-mail Pin
ventomito29-May-06 8:31
ventomito29-May-06 8:31 
GeneralRe: How to send e-mail Pin
Christopher Duncan29-May-06 10:01
Christopher Duncan29-May-06 10:01 
QuestionClick event on a user control Pin
Ista29-May-06 7:07
Ista29-May-06 7:07 
QuestionCollision Detection Using Regions [modified] Pin
Tristan Rhodes29-May-06 7:02
Tristan Rhodes29-May-06 7:02 
Questionattach a database to sql Pin
shabonaa29-May-06 6:24
shabonaa29-May-06 6:24 
AnswerRe: attach a database to sql Pin
Colin Angus Mackay29-May-06 6:48
Colin Angus Mackay29-May-06 6:48 
QuestionConvert Image to byte[] Pin
hung_ngole29-May-06 5:41
hung_ngole29-May-06 5:41 
AnswerRe: Convert Image to byte[] Pin
A.A.29-May-06 6:42
A.A.29-May-06 6:42 
QuestionName property in PropertyGrid Pin
navin.tirodkar29-May-06 5:27
navin.tirodkar29-May-06 5:27 

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.