Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/System.Windows.Forms/src/System/Windows/Forms/TreeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public int ImageIndex

if (value < 0)
{
throw new ArgumentOutOfRangeException(nameof(ImageIndex), string.Format(SR.InvalidLowBoundArgumentEx, nameof(ImageIndex), value, 0));
throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidLowBoundArgumentEx, nameof(ImageIndex), value, 0));
}

if (ImageIndexer.Index != value)
Expand Down Expand Up @@ -716,7 +716,7 @@ public ImageList ImageList
{
SendMessage(NativeMethods.TVM_SETIMAGELIST, 0,
value == null ? IntPtr.Zero : value.Handle);
if (StateImageList != null && StateImageList.Images.Count > 0)
if (StateImageList != null && StateImageList.Images.Count > 0 && internalStateImageList != null)
{
SetStateImageList(internalStateImageList.Handle);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void BackgroundImage_Set_GetReturnsExpected(Image value)
}

[Fact]
public void BackgroundImage_SetWithHandler_CallsBackColorChanged()
public void BackgroundImage_SetWithHandler_CallsBackgroundImageChanged()
{
var control = new ComboBox();
int callCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void BackgroundImage_Set_GetReturnsExpected(Image value)
}

[Fact]
public void BackgroundImage_SetWithHandler_CallsBackColorChanged()
public void BackgroundImage_SetWithHandler_CallsBackgroundImageChanged()
{
var control = new ListBox();
int callCount = 0;
Expand Down
Loading