Borresen77
New member
- Joined
- Jun 20, 2020
- Messages
- 1
- Programming Experience
- Beginner
Good day all, I am working on a project and i am trying to find a way to manipulate a product serial number that is read from a combobox and written to a String which is then applied to a print of a Label. The Label media was changed and now the area is alot smaller so i need to reduce the serial number printed to 4 characters as apposed to 10. Here is an example, in the combobox you would select 1234A00123 all i want to be pulled from the serial number for this variable is A123, so the Alphabet and last 3 characters of the serial. Is there a specific way the cut this when it is being read into a string? this is the code used to pull the selected serial number. ( string text = comboBoxPartNumbers.SelectedItem.ToString(); ) Any advice is welcome.