私は画像をロードする際に画像を保存するバックアップフォルダを持っています。だから私はチェックボックスのチェックボックスから削除すると、バックアップフォルダから画像を削除する必要があります。vb.netのファイル名を使用してフォルダから画像を削除
どうすればいいですか?
If CheckedListBox1.Items.Count = 0 Then
MsgBox("Please load the images", MsgBoxStyle.Critical)
Else
If Thumbcontrol1.SelectedThumbnail Is Nothing Then
MsgBox("Please select the thumbnail to remove", MsgBoxStyle.Information)
Else
CheckedListBox1.Items.Remove(CheckedListBox1.SelectedItem)
Thumbcontrol1.RemoveSelectedThumbnail()
If CheckedListBox1.Items.Count > 0 Then
CheckedListBox1.SelectedIndex = CInt(index)
End If
If CheckedListBox1.Items.Count = 0 Then
Thumbcontrol1.BackgroundImage = My.Resources.backimage
frmDisplay.GCanvas1.Image = Nothing
End If
End If
End If
これはあなたのサンプルコードは、質問に答えるに寄与するものに起草せずに適切な答えではありません – DomTomCat