Validate the contents of the textbox before adding it the listbox.
"Husam" <(E-Mail Removed)> wrote in message
news

9A2E25B-D4A1-403F-86D6-(E-Mail Removed)...
> Hi EveryBody:
>
> I made project by Vb.Net which consist the following items:
>
> 1\ Textbox
> 2\Button
> 3\Listbox
>
> When you write any thing in the textbox and press the button any text
> written in the textbox will be added to the listbox, but i figure that
when
> you just press the space button in the keyboard for how long you want,
that
> empty space in the textbox will be added to the listbox when you press the
> button.
>
> So any one can help and give me any hint or direction how can I prevent
> adding any empty space in the textbox to the listbox?
>
> Any help will be appreciated
>
> regard's
>
> Husam