Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
If TextBox11.Text.Contains("https") Then
TextBox11.Text.Replace("https", "http")
Debug.WriteLineIf(TextBox11.Text.Contains("http"), "youtube link https replaced with http")
If TextBox11.Text.Contains("https") Then
ListBox3.Items.Add(TextBox11.Text)
Debug.WriteLine("items added to listbox")
End If
Else
Debug.WriteLine("items added to listbox(without repalce)")
ListBox3.Items.Add(TextBox11.Text)
End If
End Sub
그래서 내가 여기에서 시도한 것은 textbox11에서 "https"를 "https"로 대체 한 다음 listbox3에 추가하는 것이 었습니다. 어떤 이유로 든 텍스트를 대체하기도하는데 여기는 약간의 도움이 필요합니다. 알아요, stringbuilder는 이것에 좋지만 사용 방법을 모르겠습니다. 지정된 텍스트를 바꿀 수있는 방법을 찾았습니다. 그러나 전체 문장에서 아닙니다.텍스트 상자의 텍스트를 바꾼 다음 목록 상자에 추가하십시오.
p.s. 내 영어로 미안해.
니스, 잘 했어, 당신은 2 분 안에 내 문제를 해결했습니다. –