VS 2008 Richtextbox From A Noob?
Apr 9, 2010
i am doing a small app where in one part i need to add certain lines of text ( from one variable ) to a richtexbox
i read a txt file line by line , i check something , if the condition its true then i add that line to a string variable , i need to add that variable contents to the richtexbox , i can't find the equivalent of textbox1.AppendText(textline) for the richtextbox .
View 7 Replies
ADVERTISEMENT
May 21, 2009
Total noobie when it comes to VB, but I'm jumping in. I have about 15 years with Business Basic and see many similar things between VB and BBx so hopefully the learning curve will not be to steep.
Anyway the project I wish to complete is: Use portable computers running Windows CE 5.0 to scan bar coded labels to capture data collected during a physical inventory. The labels have 2 fields - bin location and item. My form will have a textbox for 3 items - bin location, item and quantity. Also, the form will have 2 radio buttons to accept or reject entry. I plan on writing the records to a simple text file to import in to the current application I am running.
I downloaded Microsoft Visual Basic Express 2008 and have done a little prodding around so far. I know the Express version does not support mobile device application development so that needs to be upgraded. My question is, can someone recommend a good book that would cover the areas I need to be concerned with?
Also, any good online resources?
View 1 Replies
Apr 1, 2010
I'm a complete programming nublet.I got nothing.But I'm trying to start learning. I figured the best idea was to figure out some things I'd like to be able to automate, pick some that sound relatively simple, find code that does it, and start picking it apart. I haven't found what I'm looking for on this one, so I figured I'd ask here.
What I am trying to do, is create an exe (so it can be run remotely with admin priveleges) that will read a file, determine if a couple lines exist, and if not, will write them in the correct spot in the file.
Am I being too ambitious on this? Can it be done? Can someone help me with how?
View 3 Replies
Jun 19, 2010
I have a text file that I am reading from which is a list of first and last names. They are in order but they are on different lines of the text file. I am trying to read them into an array and put the first and last names together on separate lines.
[Code]...
View 8 Replies
Aug 18, 2010
I know there's ton of examples on the forum but i could not get it to work the way i want.
Sample CSV :-
Unused,172.22.21.2,SD103001
Unused,172.22.21.3,SD103002
Unused,172.22.21.4,SD103003
And what i wana do is change the Unused to Used so basically once this is done it will look like.
Used,172.22.21.2,SD103001
Unused,172.22.21.3,SD103002
Unused,172.22.21.4,SD103003
One thing to mention is i dont want to loop through the whole file and change all the Unused to Used. So basically software fires up opens the file and looks for Unused and changes it to Used and does the rest of the function and shuts down. Next time the software is fired up it goes through and does the same thing.
[Code]...
View 4 Replies
Aug 9, 2010
Ok, so someone I know said in order to do this, I need to do WebRequests.So I have this site for example: [url]Say I want to post to that textbox("Hello"), then I want to click the button. So far, this is all I know [url]
View 3 Replies
May 17, 2012
Administrator Console I am Making a Noob-Proof GUI Administration Control Panel,and I Have,Log Off User Shutdown (With User Selected Amount Of Time)Quick Shutdown (Shell ("shutdown -s -t 00") )Reboot Computer and I Need the following:
-Disable TaskManager
-Disable Command Prompt
-Disable internet
-Disable My Computer
-Disable Regedit
View 2 Replies
Aug 26, 2010
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
View 1 Replies
Jun 28, 2011
I'm currently having a problem dragging and dropping my label1.text to a richtextboxt which isn't created on design time...well im currently found a solution but i think it is only for a temporary solution because i use a drag and drop i drag it to a textbox then it willl transfer the data to the richtextbox....through the use of the textbox... here is the code ive come through..[code]...
View 2 Replies
May 21, 2009
I want to do a pop-up window proposed in the project such that there is a draft.I wonder how I can do this pop-up a text box or before I have an idea you have Call
View 5 Replies
Mar 20, 2010
I have two forms in my project. One form is opened and another form is closed. When I press the button on first form I want to add some text on RichTextBox ON OTHER FORM.
Code Form2.RichTextBox2.AppendText ("some text...")
And when I open second form text is there, BUT when I close second form, and open it again, RichTextBox is formatted. What's the problem?
View 2 Replies
Dec 14, 2009
I am creating an output window for a C++ editor. how will i create the console in vb.net as an output window and transfer it to richtextbox?
View 6 Replies
Aug 5, 2010
I use CTRL+I to switch on/off the Italics, but what is also happening is that the cursor is being indented.
How do I stop the cursor from indenting?
View 2 Replies
Apr 1, 2009
How do I replace the second value in a richtextbox. The richtextbox is updated in 1Hz, with 2 colums of numbers:
ex.
0 3
1 5
2 13
3 33
How do I replace the second column, with values from an other textbox?
View 2 Replies
Aug 19, 2009
I have a RichTextBox and a button.When the user clicks the button, I want to open an editor in which the user writes and formats a Text and when the user closes the editor, i want the Text to be displayed in the richtextbox.
View 1 Replies
Feb 13, 2010
How can i Tab the content of my RichTextbox. When i use VBTAB, it does not Tab all my output to the correct places. I am using code like... the Makelen is just a function i created to see if i can make all the fields the same len...it does NOT work
[Code]...
View 2 Replies
Feb 25, 2009
i have richtextbox, and i have about 5 lines: example:
1
2
3
[code].....
View 6 Replies
Mar 2, 2009
it's possible to use BBCode in a RichTextBox eg: [color=red], [b], etc...
View 2 Replies
Jul 25, 2011
I am creating a text editor like notepad. Well its an advance type because it is a tabbed notepad type. It saves html files.
I only created tabcontrol on the design time named TabControl1. the tabpages and the richtextbox are created on the form load and when adding tabs. [code]...
View 7 Replies
Jul 26, 2011
I have 2 forms. The 1 is named frmMain. inside of it is a Richtextbox named RTB.
The other form is named frmInsert. Inside of it is a Richtextbox named rtbtext.[code]..
View 5 Replies
Jun 20, 2009
I have a richtextbox control. It contains many lines of text (multiline is enabled). My goal is: When user clicks with right-click mouse, I'd like to display all the text of the line where the cursor is. I'm using this method to get the cursor's line:
Dim line As Integer = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart)
But how do I get the text of the line? Should I copy the whole text to a string array , and then just print the relevant line item?
View 6 Replies
Oct 31, 2009
I'm trying to figure out how to change the font in a RichTextBox without having to select the text I want to change first. I know I can select text and change it like this:
RichTextBox1.SelectionStart = RichTextBox1.Find("working")
Dim tfont As New Font("Arial", 16, FontStyle.Regular)
RichTextBox1.SelectionFont = tfont
What I want to do is set a font and then any text added to the richtextbox will use that font. Then I want to set another font and all text after that point will use that font and so on. I'm adding text to the RichTextBox with code, but I'd eventually like to add a RichTexBox to an app where the user enters the text and can change fonts like a word processor.What I'm try to accomplish would go something like this:
' Set the font for the header here
rtbPrint.Text = rtbPrint.Text & mHeader & vbCrLf
'Set the font for the body here
rtbPrint.Text = rtbPrint.Text & mBody & vbCrLf
View 3 Replies
May 3, 2012
I am using a richtextbox control on my form.I want a small code which can detect if any image has been inserted in the rtb or not.For e.g. user can just type some text or insert image also. Now if we select an image then we can get the type but I want a code which scans contents of rtb and gives me a true if an image is inserted or false if there is none.
View 8 Replies
Jun 23, 2011
i am trying to display a line of smiley faces ☻ and change the colour of each face, i cant use a find method as there are 10 of these smilies so i thought about using a loop and selecting only the last one entered and changing its colour. here is a simplified version of my
VB.Net
For a = 0 to 9
RichTextBox1.Text += "☻" ' add the smiley
[code]....
This when i ran it changes the first nine to the first colour in the array and correctly does the colour of the last smiley? could i for instance format the character first then add it formatted?
View 2 Replies
Nov 13, 2010
I'm trying to add items from listbox into a richtextbox. I've tryed myself with no results,
For Each items In ListBox1.Items
RichTextBox1.Text = RichTextBox1.Text + items & vbNewLine
Next
View 9 Replies
Jul 22, 2010
Here is what i haveRichTextBox2.Text = "1" [enter here] "2"
View 1 Replies
Jun 18, 2012
on a timer that ticks every 1ms have it:
if RichTextBox1.Contains "begin" then
change "begin" to "begin".bolded
end if
[Code].....
View 6 Replies
Aug 29, 2009
Is there anyway I could find text in a RichTextBox? I want to put the code in here
[code]...
View 10 Replies
Oct 9, 2011
I know how do that but is it possible to upload direct from a richtextbox? Without saving the file. There is my code which doesnt work :
[Code]...
View 5 Replies
May 30, 2009
I want to insert a small image in a Richtextbox, but that image has to have a link to a website.I've tried this Dim pb As New PictureBox pb.ImageLocation = "HereMyImage.Gif" Richtextbox1.Controls.Add(pb)With an OnClick event for the PictureBox, but the text in the Richtextbox is gone. The whole idea is that I have some text, an image, some text again..
View 1 Replies