Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
JokeRe: Math class Pin
ZurdoDev22-Sep-14 8:19
professionalZurdoDev22-Sep-14 8:19 
AnswerRe: Math class Pin
V.22-Sep-14 10:37
professionalV.22-Sep-14 10:37 
Question[C#, MS SQL CE] Password dialog authentification Pin
VitekST20-Sep-14 0:31
VitekST20-Sep-14 0:31 
General* Pin
VitekST8-Oct-14 6:00
VitekST8-Oct-14 6:00 
QuestionHow to Change Image for the last level(Child) in Treeview in C#? Pin
aahamdan19-Sep-14 21:03
aahamdan19-Sep-14 21:03 
AnswerRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
BillWoodruff19-Sep-14 21:41
professionalBillWoodruff19-Sep-14 21:41 
GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
aahamdan20-Sep-14 9:36
aahamdan20-Sep-14 9:36 
GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
BillWoodruff20-Sep-14 19:56
professionalBillWoodruff20-Sep-14 19:56 
Sorry, Ahmed, I don't yet understand your question.

The Microsoft supplied TreeView Control has two ImageList Properties: ImageList, and StateImageList. ImageList is used to specify the image shown when the TreeNode is selected, or not selected. StateImageList is used to control the image shown for the Node when shown with a CheckBox, and the CheckBox checked or unchecked.

Each TreeNode in the TreeView can have its current image changed at any time by setting either the Index or Key of the ImageList assigned to the TreeView.

treeView1.Nodes[3].ImageIndex = 2; // set the Image for the Node when it's not selected
treeView1.Nodes[3].SelectedImageIndex = 3;; // set the Image for the Node when it's selected

See the Microsoft documentation for ImageList: [^]
« I had therefore to remove knowledge, in order to make room for belief » Immanuel Kant

GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
aahamdan22-Sep-14 7:56
aahamdan22-Sep-14 7:56 
GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
BillWoodruff22-Sep-14 22:29
professionalBillWoodruff22-Sep-14 22:29 
GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
Eddy Vluggen22-Sep-14 8:27
professionalEddy Vluggen22-Sep-14 8:27 
GeneralRe: How to Change Image for the last level(Child) in Treeview in C#? Pin
BillWoodruff22-Sep-14 8:34
professionalBillWoodruff22-Sep-14 8:34 
Questioncontinue if loop if failed Pin
Jassim Rahma19-Sep-14 11:27
Jassim Rahma19-Sep-14 11:27 
AnswerRe: continue if loop if failed Pin
V.19-Sep-14 11:36
professionalV.19-Sep-14 11:36 
AnswerRe: continue if loop if failed Pin
Eddy Vluggen19-Sep-14 11:56
professionalEddy Vluggen19-Sep-14 11:56 
AnswerMessage Closed Pin
19-Sep-14 23:36
Raushank0319-Sep-14 23:36 
GeneralRe: continue if loop if failed Pin
Eddy Vluggen20-Sep-14 0:18
professionalEddy Vluggen20-Sep-14 0:18 
AnswerRe: continue if loop if failed Pin
Dominic Burford22-Sep-14 0:03
professionalDominic Burford22-Sep-14 0:03 
Questionc# unable to coonect with xls file using LinqToExcel Please help Pin
Member 1105342019-Sep-14 5:11
Member 1105342019-Sep-14 5:11 
AnswerRe: c# unable to coonect with xls file using LinqToExcel Please help Pin
PIEBALDconsult19-Sep-14 5:20
mvePIEBALDconsult19-Sep-14 5:20 
QuestionRe: c# unable to coonect with xls file using LinqToExcel Please help Pin
ZurdoDev19-Sep-14 10:55
professionalZurdoDev19-Sep-14 10:55 
Questionc# LinqToExcel is not connecting to XLS in 64bit system but it is connecting xlsx file, tried DatabaseEngine.ace but didn't worked out. Pin
Member 1105342019-Sep-14 5:08
Member 1105342019-Sep-14 5:08 
AnswerRe: c# LinqToExcel is not connecting to XLS in 64bit system but it is connecting xlsx file, tried DatabaseEngine.ace but didn't worked out. Pin
PIEBALDconsult19-Sep-14 5:22
mvePIEBALDconsult19-Sep-14 5:22 
AnswerRe: c# LinqToExcel is not connecting to XLS in 64bit system but it is connecting xlsx file, tried DatabaseEngine.ace but didn't worked out. Pin
Eddy Vluggen19-Sep-14 7:16
professionalEddy Vluggen19-Sep-14 7:16 
QuestionResize Control Pin
AmbiguousName18-Sep-14 21:09
AmbiguousName18-Sep-14 21:09 

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.