Click here to Skip to main content
15,891,253 members

Comments by Member 10410972 (Top 41 by date)

Member 10410972 30-Jan-24 4:09am View    
PIEBALDconsult thank you very much for your two offers.
I'm sorry but I don't know how to use TryMatchHashSet or TryMatchRegex in button1_Click.
I am asking for one more help. Thanks in advance.
Member 10410972 28-Jan-24 18:30pm View    
Thank you. The question is:
In textBox3.Text I want as result longest word from textBox1.Text than letters from textBox2.Text

In this example it would be the word: successfully

Please look at the picture from the link above, the picture says it all.
My code is not working...
Member 10410972 31-Jan-23 14:36pm View    
Thanks for your reply but I tried to use "string filter" but didn't get a solution... If possible please help me with the code below. Thanks again.

string filter = $"colName = {textBox1.Text}";
string colName = dataGridView1.Columns[1].Name;
((DataTable)dataGridView1.DataSource).DefaultView.RowFilter = string.Format(colName, filter);// there is a problem in this line
Member 10410972 19-Jan-23 16:47pm View    
Thank you very much, it works fine for me. Best regards.
Member 10410972 6-Oct-22 15:59pm View    
Thank you very much George, it works for me. Best regards.