Click here to Skip to main content
16,006,760 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
Martin Haesemeyer16-Nov-02 22:03
Martin Haesemeyer16-Nov-02 22:03 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
James T. Johnson17-Nov-02 12:06
James T. Johnson17-Nov-02 12:06 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
Martin Haesemeyer18-Nov-02 3:38
Martin Haesemeyer18-Nov-02 3:38 
GeneralListView AfterItemCheck Pin
Ingram Leedy13-Nov-02 20:17
Ingram Leedy13-Nov-02 20:17 
GeneralRe: ListView AfterItemCheck Pin
Martin Haesemeyer14-Nov-02 4:10
Martin Haesemeyer14-Nov-02 4:10 
GeneralRe: ListView AfterItemCheck Pin
Ingram Leedy14-Nov-02 5:39
Ingram Leedy14-Nov-02 5:39 
GeneralRe: ListView AfterItemCheck Pin
Martin Haesemeyer14-Nov-02 5:53
Martin Haesemeyer14-Nov-02 5:53 
GeneralListView Custom State Checkbox Images Pin
Ingram Leedy14-Nov-02 6:33
Ingram Leedy14-Nov-02 6:33 
You might be right, perhaps these events get fired based on something else?

It seem like what I am trying to accomplish would be a common thing. I want to put custom checkbox images in the listview. I've done this with TreeView using Genghis CustomTreeView. (In that, I use treeView1_AfterCheck which works fine if I change image states programmatically) http://www.genghisgroup.com[^]

ListView however is giving me greef. Here is a snippet of code as a sample that increments the image of the checkbox, that once I change the image for the checkbox it fires a new event.

I also wrote a custom state listview that sets the images using an Interop
by sending the state changes directly using Win32. But it causes the event to fire just like the example code.

private void listView1_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
{

   listView1.BeginUpdate();

		
   int itemcheck2 = listView1.Items[e.Index].StateImageIndex;
   Debug.WriteLine("Check image #: " + itemcheck2.ToString());
   listView1.Items[e.Index].StateImageIndex = itemcheck2 + 1;

				
   listView1.EndUpdate();
}



Thanks -- Perhaps someone has dealt with this.


Ingram Leedy

You can't depend on your eyes when your imagination is out of focus.
--Mark Twain

QuestionCan anyone help with some Crypto questions? Pin
Furty13-Nov-02 15:24
Furty13-Nov-02 15:24 
AnswerRe: Can anyone help with some Crypto questions? Pin
Furty23-Nov-02 16:19
Furty23-Nov-02 16:19 
Question.NET application to native code? Pin
jstonge13-Nov-02 7:32
jstonge13-Nov-02 7:32 
AnswerRe: .NET application to native code? Pin
James T. Johnson13-Nov-02 7:40
James T. Johnson13-Nov-02 7:40 
GeneralRe: .NET application to native code? Pin
Daniel Turini13-Nov-02 7:41
Daniel Turini13-Nov-02 7:41 
AnswerRe: .NET application to native code? Pin
Martin Haesemeyer13-Nov-02 8:09
Martin Haesemeyer13-Nov-02 8:09 
GeneralRe: .NET application to native code? Pin
leppie13-Nov-02 9:04
leppie13-Nov-02 9:04 
AnswerRe: .NET application to native code? Pin
RichardEastes13-Nov-02 15:55
RichardEastes13-Nov-02 15:55 
QuestionCan .NET Remoting solve this problem for me? Pin
johnrlewishotmail13-Nov-02 6:57
johnrlewishotmail13-Nov-02 6:57 
AnswerRe: Can .NET Remoting solve this problem for me? Pin
Philip Fitzsimons15-Nov-02 11:00
Philip Fitzsimons15-Nov-02 11:00 
General.NET Services and Network Shares Pin
Joel Matthias13-Nov-02 6:12
Joel Matthias13-Nov-02 6:12 
GeneralRe: .NET Services and Network Shares Pin
James T. Johnson13-Nov-02 7:32
James T. Johnson13-Nov-02 7:32 
GeneralRe: .NET Services and Network Shares Pin
Philip Fitzsimons15-Nov-02 11:01
Philip Fitzsimons15-Nov-02 11:01 
QuestionIs COM really dead? Pin
Aisha Ikram12-Nov-02 21:05
Aisha Ikram12-Nov-02 21:05 
AnswerRe: Is COM really dead? Pin
Kevin McFarlane15-Nov-02 2:29
Kevin McFarlane15-Nov-02 2:29 
GeneralRe: Is COM really dead? Pin
Anonymous15-Nov-02 3:32
Anonymous15-Nov-02 3:32 
GeneralRe: Is COM really dead? Pin
Kevin McFarlane15-Nov-02 5:12
Kevin McFarlane15-Nov-02 5:12 

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.