Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a situation where I need to determine if there are spaces within a textbox and if so produce an error, but I am unsure how to do this in vb.net??

 

Can anyone help??

 

Thanks

 

Simon

Posted

Hmm good code,

 

Question can we turn that around now since you have shown how to detect a space.... in my case I need to add a space at a given point of text

 

For example if my text were

1:1 Line of Text
  2 Line of text
  3 Line of Text
2:1 Line of Text
  2 Line of Text
  3 Line of Text
  4 Line of Text

Note I am using an RTB not a TextBox

 

What I would like to do is insert a blank line or better yet a word between verse 3 of chapter 1:1 and 2:1 so that it looks like this

1:1 Line of Text
  2 Line of text
  3 Line of Text
chapterName
2:1 Line of Text
  2 Line of Text
  3 Line of Text
  4 Line of Text

 

How might I go about that?

 

vbMarkO

Visual Basic 2008 Express Edition!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...