I have another question, how we can do a case sensitive on datatable, i mean like if a row it's called Apple, the user on textbox write apple, in code there's an if statement that check if row value is egual to textbox text and then show like a picture, but like i said before if the user write "apple" is not equal to that row value, how can say to the program to ignore uppercase and lowercase ?
@flexitrain8 жыл бұрын
+Alex Fox - If you are talking about that data is in datatable, then I think that you don't need to worry about that. But if it doesn't work then change the string of textbox to uppercase using ToUpper property. Also the column of the datatable where the value is make it Uppercase using ToUpper property as well in the if statement. Then you don't need to worry about is equal/not equal because both will be same And the actual value will remain exactly the same.
@alexfox7818 жыл бұрын
+iCodePoint How can i say to the program to indentify, at least, a few words, that, will be written on textbox by the user ? like this dttest.Rows(0).Item(0).ToString = TextBox1.Text & TextBox1.Text.Length > 2 Then but with this need only one characther, i like when the user will be write the string to search on textbox, while input like the initial 4 or 5 words the if statement become true state, and then show the picture of that row.
@flexitrain8 жыл бұрын
I think that you don't need to worry about that ... use autocomplete feature of textbox. Link is below ...msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletemode(v=vs.110).aspx
@alexfox7818 жыл бұрын
hi is possible to make a if on a element and tel the program to open a local web page offline into webbrowser ?
@flexitrain8 жыл бұрын
+Alex Fox Yes it is possible and quite straight forward.
@akacoo7 жыл бұрын
How to get the items in the list box? dtCountries.Rows.Item = ListBox1.Items ?
@goldjasmine55877 жыл бұрын
I love you .Thank
@chuckwait94697 жыл бұрын
I am getting an Error when I start typing into the SearchTextBox. The Error is: Additional information: Object reference not set to an instance of an object.PartNumbers.RowFilter = "PartNumber LIKE '%" + SearchTextBox.Text + "%'"
@choledocholithiasis3 жыл бұрын
copy this > "Country LIKE '%" + SearchTextBox.Text + "%' "