Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
AnswerRe: Code sample of Printing a panel Pin
netJP12L29-Jan-07 5:25
netJP12L29-Jan-07 5:25 
QuestionHow do you create a colored border for label control Pin
ssmerk29-Jan-07 4:04
ssmerk29-Jan-07 4:04 
AnswerRe: How do you create a colored border for label control Pin
bobsugar22229-Jan-07 4:13
bobsugar22229-Jan-07 4:13 
GeneralRe: How do you create a colored border for label control Pin
ssmerk29-Jan-07 6:14
ssmerk29-Jan-07 6:14 
GeneralRe: How do you create a colored border for label control Pin
ssmerk30-Jan-07 2:00
ssmerk30-Jan-07 2:00 
Questiontreeview as a treenode Pin
Alaric_29-Jan-07 3:53
professionalAlaric_29-Jan-07 3:53 
AnswerRe: treeview as a treenode Pin
bobsugar22229-Jan-07 4:06
bobsugar22229-Jan-07 4:06 
GeneralRe: treeview as a treenode Pin
Alaric_29-Jan-07 4:52
professionalAlaric_29-Jan-07 4:52 
ok..here's my problem. I'll provide code:

The indexer for which dataset to display in the treeview is controlled by the selected Index of a listview
if(lvwDisplay.SelectedIndices.Count > 0)
{
	index = lvwDisplay.SelectedIndices[0];
	UIAddress location = (UIAddress)myAddressList[index];


Now I create the structure in the treeview to allow the PointsOfInterest to be
deserialized from my collection
for(int asdf = 0; asdf < location.PointsOfInterest.Length; asdf++)
{
   TreeView inner = new TreeView();
   inner.Name = location.PointsOfInterest[asdf].Name;
   inner.Nodes.Add(location.PointsOfInterest[asdf].Fee.ToString());
   TreeView gps= new TreeView();
   gps.Name="Geocode";
   gps.Nodes.Add(location.PointsOfInterest[asdf].Center.X.ToString());
   gps.Nodes.Add(location.PointsOfInterest[asdf].Center.Y.ToString());
.
.
.


PROBLEM: ...you'll see it
tvPOI.Nodes = new TreeNodeCollection[location.PointsOfInterest.Length];
tvPOI.SelectedNode = tvPOI.Nodes[asdf];
for(int i = 0; i<geocode.Nodes.Count;i++)
{ 
  tvPOI.SelectedNode.Nodes.Add(geocode.Nodes[i]);
}


...tvPOI.SelectedNode is readonly. Anybody know how to implement the functionality I'm trying to add?



(Nyquist Rate || ! Nyquist Rate)
{
Console.WriteLine("That is the question");
}

GeneralRe: treeview as a treenode Pin
bobsugar22229-Jan-07 5:17
bobsugar22229-Jan-07 5:17 
GeneralRe: treeview as a treenode Pin
Alaric_29-Jan-07 5:24
professionalAlaric_29-Jan-07 5:24 
GeneralRe: treeview as a treenode Pin
Alaric_29-Jan-07 5:28
professionalAlaric_29-Jan-07 5:28 
QuestionRemote database connection Pin
wheelerbarry29-Jan-07 3:44
wheelerbarry29-Jan-07 3:44 
AnswerRe: Remote database connection Pin
ednrgc29-Jan-07 3:45
ednrgc29-Jan-07 3:45 
GeneralRe: Remote database connection Pin
wheelerbarry29-Jan-07 3:52
wheelerbarry29-Jan-07 3:52 
GeneralRe: Remote database connection Pin
Colin Angus Mackay29-Jan-07 3:58
Colin Angus Mackay29-Jan-07 3:58 
GeneralRe: Remote database connection Pin
ednrgc29-Jan-07 4:49
ednrgc29-Jan-07 4:49 
GeneralRe: Remote database connection Pin
Colin Angus Mackay29-Jan-07 4:52
Colin Angus Mackay29-Jan-07 4:52 
AnswerRe: Remote database connection Pin
Colin Angus Mackay29-Jan-07 4:15
Colin Angus Mackay29-Jan-07 4:15 
GeneralRe: Remote database connection Pin
wheelerbarry29-Jan-07 4:18
wheelerbarry29-Jan-07 4:18 
GeneralRe: Remote database connection Pin
Michael P Butler29-Jan-07 4:48
Michael P Butler29-Jan-07 4:48 
AnswerRe: Remote database connection Pin
Aaron VanWieren29-Jan-07 5:02
Aaron VanWieren29-Jan-07 5:02 
AnswerRe: Remote database connection Pin
Eric Georgiades29-Jan-07 21:34
Eric Georgiades29-Jan-07 21:34 
QuestionDirection of selection in a TextBox/RichTextBox Pin
mav.northwind29-Jan-07 3:34
mav.northwind29-Jan-07 3:34 
AnswerRe: Direction of selection in a TextBox/RichTextBox Pin
bobsugar22229-Jan-07 3:47
bobsugar22229-Jan-07 3:47 
GeneralRe: Direction of selection in a TextBox/RichTextBox Pin
mav.northwind29-Jan-07 4:20
mav.northwind29-Jan-07 4:20 

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.