Tags » Sándor

CheckForIllegalCrossThreadCalls not an option

I thinking how can I fix it my debug error without CheckForIllegalCrossThreadCalls = false
I know, It’s a bad thing, so how can I fix my code? 270 more words

Recent Questions - Stack Overflow

Listbox items replace

It’s delete all listbox items text after question mark.
But I want to opposite. So, replace my listbox items text before question mark.

Example listbox item text: 63 more words

Recent Questions - Stack Overflow

Listbox items delete after "?"

How can I delete my listbox items after Contains “?” ?

Example listbox item:

I want it ? please, remove it.

My code:

        For i = 0 To ListBox1.Items.Count - 1

        If ListBox1.Items(i).ToString.StartsWith("?") Then
        'something useful for me.
80 more words
Recent Questions - Stack Overflow

Save CheckedListBox checked items

How can I Save CheckedListBox (only) checked items with Savefiledialog?

If I use simple listbox then I use it:

   If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
            Using writer = New StreamWriter(SaveFileDialog1.FileName)
                For Each o As Object In clb.Items
                    writer.WriteLine(o)
                Next
            End Using
        End If
… 20 more words
Recent Questions - Stack Overflow

DataGridView items add to column 1 & column 2

How can I add my “PageElement2″ to “column1″ and “PageElement3″ to “column2″ ?

My code:

   Dim PageElement2 As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("div")
    For Each CurElement As HtmlElement In PageElement2
        If (CurElement.GetAttribute("className") = "itemclassname") Then
            Dim row As String() = New String() {CurElement.InnerText}
            DataGridView1.Rows.Add(row)
        End If
    Next
    Dim PageElement3 As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("div")
    For Each CurElement As HtmlElement In PageElement3
        If (CurElement.GetAttribute("className") = "itemclassnametwo") Then
            Dim row As String() = New String() {CurElement.InnerText}
            DataGridView1.Rows.Add(row) 
        End If
    Next
… 34 more words
Recent Questions - Stack Overflow

Regex - First letter is upper case

How can I extract a text with regex but only if the first letter is uppercase?

Example:

I want this.
i don’t want this because the first letter is not uppercase.

22 more words
Recent Questions - Stack Overflow

Regex - First letter is upper case

How can I extract a text with regex if first letter is always uppercase.

Example:
I want this.
i don’t want this because firtsh letter is not uppercase. 19 more words

Recent Questions - Stack Overflow