Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
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 
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 
This works as you create a Cheat object, store its reference using a variable of its base class (TreeNode) and cast back later. Hereby the real object on the heap stays the same (Cheat object) all time long.

The Row example doesn't work as you create an object of the base class (ListViewItem) and afterwards try casting to a sub class. This simply can't be done as the object on the heap is now Row.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

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 
GeneralRe: How can I delete all files and subfolders within a directory ? Pin
led mike11-Oct-06 5:03
led mike11-Oct-06 5:03 
GeneralRe: How can I delete all files and subfolders within a directory ? Pin
hagarwal2-Mar-09 16:57
hagarwal2-Mar-09 16:57 

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.