Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# and xml Pin
moadbrkt11-Oct-06 12:51
moadbrkt11-Oct-06 12:51 
QuestionHow to use Repeater with c# code? Pin
Ah_Mohsen_aly10-Oct-06 15:55
Ah_Mohsen_aly10-Oct-06 15:55 
AnswerRe: How to use Repeater with c# code? Pin
Chris Buckett10-Oct-06 23:32
Chris Buckett10-Oct-06 23:32 
GeneralRe: How to use Repeater with c# code? Pin
Chris Buckett10-Oct-06 23:34
Chris Buckett10-Oct-06 23:34 
QuestionError: Unable to cast object of type *** to type *** [modified] Pin
Anthony Mushrow10-Oct-06 14:11
professionalAnthony Mushrow10-Oct-06 14:11 
QuestionRe: Error: Unable to cast object of type *** to type *** Pin
Anthony Mushrow10-Oct-06 16:11
professionalAnthony Mushrow10-Oct-06 16:11 
AnswerRe: Error: Unable to cast object of type *** to type *** Pin
S. Senthil Kumar10-Oct-06 17:19
S. Senthil Kumar10-Oct-06 17:19 
NewsRe: Error: Unable to cast object of type *** to type *** [modified] Pin
Anthony Mushrow10-Oct-06 17:32
professionalAnthony Mushrow10-Oct-06 17:32 
Actually i didn't use the tag.

Whith the tree node i had:


public class Cheat : Windows.Forms.TreeNode
{

public string code;
public string gameid;

lots of other public strings

}


My class inherited from the TreeNode.

So i had

Cheat oNode = new Cheat();
oNode.code = stuff
oNode.gameid = stuff

this.treeview1.nodes.Add(oNode);

and i could go:

foreach(Cheat oNode in treeview1.selectednodes)

and
TreeNode main = new TreeNode();
Cheat gNode = (Cheat) main;
or
Cheat gNode = new Cheat();
TreeNode main = (TreeNode)gNode;




Oh, and yes, when getting the nodes back from the list they still had all the values that where stored in my custom things by just going

Cheat check = (Cheat)this.treeView1.SelectedNode;
MessageBox.Show("The code in the node is... " + check.code);




-- modified at 23:37 Tuesday 10th October, 2006
GeneralRe: Error: Unable to cast object of type *** to type *** Pin
monrobot1310-Oct-06 18:27
monrobot1310-Oct-06 18:27 
GeneralRe: Error: Unable to cast object of type *** to type *** Pin
Stefan Troschuetz10-Oct-06 22:04
Stefan Troschuetz10-Oct-06 22:04 
QuestionComboBox Drop down Forcolor change in disabled mode (Black color) Pin
Abhlu10-Oct-06 13:55
Abhlu10-Oct-06 13:55 
QuestionRe: ComboBox Drop down Forcolor change in disabled mode (Black color) Pin
Anthony Mushrow10-Oct-06 14:32
professionalAnthony Mushrow10-Oct-06 14:32 
AnswerRe: ComboBox Drop down Forcolor change in disabled mode (Black color) Pin
Abhlu10-Oct-06 15:41
Abhlu10-Oct-06 15:41 
GeneralRe: ComboBox Drop down Forcolor change in disabled mode (Black color) Pin
Anthony Mushrow10-Oct-06 15:53
professionalAnthony Mushrow10-Oct-06 15:53 
GeneralRe: ComboBox Drop down Forcolor change in disabled mode (Black color) Pin
Abhlu10-Oct-06 16:19
Abhlu10-Oct-06 16:19 
QuestionHow to solve this strong name issue? Pin
kolu narayan10-Oct-06 13:10
kolu narayan10-Oct-06 13:10 
AnswerRe: How to solve this strong name issue? Pin
led mike10-Oct-06 13:48
led mike10-Oct-06 13:48 
GeneralRe: How to solve this strong name issue? Pin
kolu narayan11-Oct-06 3:45
kolu narayan11-Oct-06 3:45 
GeneralRe: How to solve this strong name issue? Pin
kolu narayan11-Oct-06 5:21
kolu narayan11-Oct-06 5:21 
QuestionApp.Config and ConfigurationSection Pin
Jamie Nordmeyer10-Oct-06 13:07
Jamie Nordmeyer10-Oct-06 13:07 
AnswerRe: App.Config and ConfigurationSection Pin
led mike10-Oct-06 13:40
led mike10-Oct-06 13:40 
QuestionHow can I delete all files and subfolders within a directory ? Pin
Nadia Monalisa10-Oct-06 13:06
Nadia Monalisa10-Oct-06 13:06 
AnswerRe: How can I delete all files and subfolders within a directory ? Pin
led mike10-Oct-06 13:53
led mike10-Oct-06 13:53 
GeneralRe: How can I delete all files and subfolders within a directory ? Pin
Nadia Monalisa10-Oct-06 19:17
Nadia Monalisa10-Oct-06 19:17 
GeneralRe: How can I delete all files and subfolders within a directory ? Pin
Stefan Troschuetz10-Oct-06 21:52
Stefan Troschuetz10-Oct-06 21:52 

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.