Thanks John, I have figured it out.
Ow, one more thing, I can't apply text inside the Shape. The one we usually do in winword like right-click then "add text", that thing I can't get to work.
I can't seemed to find any other option there except for
"TextEffect.Text" which is I set to...
hi guys!
Before anything else, good day to ya'll!
I'm back again, hopefully I'm posting in the right discussion board. Well, I'm trying to learn more on Office Automation again, can someone give me a little light on how to insert AutoShape in a word document using VS 2005? I'm googling on this...
@john
I figured it out already. Thanks for the help. I really appreciate it.
Thanks you so much! Reading you hints over and over really extracts the right way to do things. Thanks a bunch once again.
You mean like this?
RTB.SelectionStart = RTB.Text.IndexOf(location, RTB.SelectionStart, RTB.SelectedText.Length)
or
RTB.SelectionStart = RTB.Text.IndexOf(location, RTB.SelectionStart + RTB.SelectedText.Length)
both statement still returns InvalidArguments = Value of '-1' ...
I did something...
Do you intend to create an exact copy of notepad or you would just like to use notepad in your form?
You can call the "notepad.exe" if so you like to use it in your form.
@john
Yeah, I indeed change vbcrlf to vbLf. Now this is what happens. I revised my code into something like
RTB.SelectionStart=RTB.Text.IndexOf(Location)
but it only format the string before the vbLf. The string after the vbLf is still unchanged.
What's wrong?
I did not use the RTB.Find...
@newguy
What I've been up to is, when the line exceeds the 1st line, the formatting is void. It didn't return any. I have a function that breaks long phrases into multiple lines. I didn't use any wordwrapping or multiline property for that. Its a function I created to break a line at a desired...
Hi mods,
Just got a couple of question. I have this input
this is a sample case scenario:
If i used
RTB.Selection=RTB.Find(Location) ->>returns -1
RTB.SelectionColor=Color.Blue
if I used
RTB.Find(Location)
RTB.SelectionColor=Color.Blue ->> nothing happens
Just need to get the correct...
Hi guys!
I need help with text formatting. Originally, I have a text which is stored in RTB and then I pass it through word document application. The .rtf format of RTB works fine with me. Gives me the formatting that I need.
On second thought, i want to insert a text directly into word...
Good day mods!
Excuse me, for the title, I just couldn't find the right words to say it but, the thing is, I just want to make a certain word inside a paragraph bold. The word will be automatically set to bold in runtime. See for example the words 'John' shall be all set to bold.
Here is the...
Hello mods and guys!
I just wanna ask, how to format an image or a picture inside an RTB control? Its like the way MSWORD does the formatting, (i.e Center, Behind Text, etc..).
Please show me the way to do it. Any hint will do. I awfully need guidance.:(
Thanks and Best Regards!
to make your search more flexible try to use the "like" keyword instead of using equal(=) sign...
something like this:
"SELECT * FROM pcserials WHERE ID like '" & TextBox1.Text & "%'",connection)
Thanx people for clarifying the issue... I already got the logic how am i going to do it... I just ask if it could be possible... In my sense I know it can't be but theres no harm if i ask, who knows the possibility, a lot of you out there are skillful and more experience than I do... geez...
i tried this code.... and it returns syntax error in "lst" saying.. "Value of type 'System.Windows.Forms.ListView' cannot be converted to '1-dimensional array of System.Object'.
"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.