Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
AnswerRe: Download a File from RapidShare Pin
Scott Dorman17-Jul-07 8:13
professionalScott Dorman17-Jul-07 8:13 
GeneralRe: Download a File from RapidShare Pin
Jette2k717-Jul-07 8:25
Jette2k717-Jul-07 8:25 
QuestionAnyone gone the Microsoft Route..... Pin
Strategon17-Jul-07 5:09
Strategon17-Jul-07 5:09 
AnswerRe: Anyone gone the Microsoft Route..... Pin
Eduard Keilholz17-Jul-07 5:25
Eduard Keilholz17-Jul-07 5:25 
GeneralRe: Anyone gone the Microsoft Route..... Pin
led mike17-Jul-07 5:53
led mike17-Jul-07 5:53 
AnswerRe: Anyone gone the Microsoft Route..... Pin
Bert delaVega17-Jul-07 6:02
Bert delaVega17-Jul-07 6:02 
AnswerRe: Anyone gone the Microsoft Route..... Pin
LongRange.Shooter17-Jul-07 7:26
LongRange.Shooter17-Jul-07 7:26 
QuestionNeed help in tree view... Pin
Dotnetkanna17-Jul-07 4:15
Dotnetkanna17-Jul-07 4:15 
Hi everybody,

Im creating a c# windows application in framework 2.0,i had created textbox dynamically so that i want to produce tree view structure as the no of textbox i created.I Need only one root node.

The structure is

TextBox
|
|_TextBox1
|_TextBox2
|_TextBox3....


But Im getting the tree structure as

TextBox
|
|_TextBox1
TextBox
|
|_TextBox2
TextBox
|
|_TextBox3

The Code i used is below

int n = 25;
int m = 1;
private void BtnAddControl_Click(object sender, EventArgs e)
{

TextBox txtBox = new TextBox();
txtBox.Text = "TextBox" + m;
txtBox.TabIndex=m;
txtBox.Tag=m;
txtBox.Location = new System.Drawing.Point(10, n);
txtBox.Size = new System.Drawing.Size(70, 20);
txtBox.Name = "TextBox" + m;
txtBox.Click +=new EventHandler(txtBox_Click);
this.Controls.Add(txtBox);


TreeNode root = new TreeNode("TextBox");
root.Nodes.Add(txtBox.Name);
TV.Nodes.Add(root); //TV Treeview name
TV.ExpandAll();
n = n + 20;
m++;


}
How should i accomplish this..

Kanna
AnswerRe: Need help in tree view... Pin
Manas Bhardwaj17-Jul-07 4:24
professionalManas Bhardwaj17-Jul-07 4:24 
AnswerRe: Need help in tree view... Pin
Nxorable17-Jul-07 4:30
Nxorable17-Jul-07 4:30 
QuestionNetwork Discovery Pin
originSH17-Jul-07 4:00
originSH17-Jul-07 4:00 
AnswerRe: Network Discovery Pin
Manas Bhardwaj17-Jul-07 4:28
professionalManas Bhardwaj17-Jul-07 4:28 
GeneralRe: Network Discovery Pin
originSH17-Jul-07 4:32
originSH17-Jul-07 4:32 
QuestionSoapException in C# Web Service that references COM object Pin
Nxorable17-Jul-07 2:56
Nxorable17-Jul-07 2:56 
AnswerRe: SoapException in C# Web Service that references COM object Pin
led mike17-Jul-07 4:38
led mike17-Jul-07 4:38 
GeneralRe: SoapException in C# Web Service that references COM object Pin
Nxorable17-Jul-07 4:47
Nxorable17-Jul-07 4:47 
GeneralRe: SoapException in C# Web Service that references COM object Pin
led mike17-Jul-07 5:04
led mike17-Jul-07 5:04 
Questionhow to embed word in windows form Pin
lockepeak17-Jul-07 2:53
lockepeak17-Jul-07 2:53 
AnswerRe: how to embed word in windows form Pin
originSH17-Jul-07 2:55
originSH17-Jul-07 2:55 
GeneralRe: how to embed word in windows form Pin
lockepeak17-Jul-07 3:06
lockepeak17-Jul-07 3:06 
GeneralRe: how to embed word in windows form Pin
Colin Angus Mackay17-Jul-07 3:11
Colin Angus Mackay17-Jul-07 3:11 
AnswerRe: how to embed word in windows form Pin
Bert delaVega17-Jul-07 4:14
Bert delaVega17-Jul-07 4:14 
AnswerRe: how to embed word in windows form Pin
Dan Neely17-Jul-07 4:58
Dan Neely17-Jul-07 4:58 
GeneralRe: how to embed word in windows form Pin
lockepeak17-Jul-07 20:32
lockepeak17-Jul-07 20:32 
QuestionChanging the background Pin
razanabanu17-Jul-07 2:33
razanabanu17-Jul-07 2:33 

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.