Scroll Two Lines Respectively Located Within Different Rich Textboxes At Same Time?
Dec 25, 2010
I have code that when text fills a main rich textbox beyond the size of its dimensions - the vertical scroll appears and simultaneously vertical scrolls the main rtb and a second subordinate textbox.
If I have a couple lines of text and I scroll down a line(row) of text using the cursor I wish the subordinate rtb respond in the same manner i.e. scrolling down the same line(row) and obviously the lines of text underneath.
View 4 Replies
ADVERTISEMENT
Nov 11, 2009
Can you add values inside textboxes that are located in tables in Visual Basic 2008?
I put a TableLayoutPanel on a form and inside the Table I put textboxes. Outside the table there is a button. The whole point of the program is so that the user inputs numerical values inside the textboxes and then hits the button and the answer comes out in another textbox. But its not working. It worked when I didn't put my textboxes inside the TableLayoutPanel.[code]...
View 7 Replies
Nov 7, 2010
My rich text box overflows with output during execution, thus activating a vertical scroll bar. When the program ends the created text box information disappears.I have tried a message box prior to exiting the program to stop execution but then nothing responds until the message box is A instruction doesn�t accomplish my goal either. I see nothing in the text box properties window which looks like it would do the trick and no luck with Googling for info so far.
View 6 Replies
Sep 10, 2010
I'm having a problem where I have elements such as Listboxes and Rich Text boxes that I want to set to size automatically in xaml according to the size of the window, but I only want it to resize to the size of the window and then put scrollbars if the content is any bigger than that.
Unfortunately, the only way I can get scroll bars to work is if I set a specific height of the listbox/rich text box (which does not work because I want it to automatically resize to the height of the grid that it is contained within, which is generally the height of the window (auto).
View 1 Replies
Aug 22, 2009
I am looking to add individual lines of user inputed text into a rich text box. I've been working with .text and .appendtext however I can't assign individual lines of text.[code]...
View 4 Replies
Jan 16, 2011
the question says it all, doesn't it? I was just wondering if it was possible to get only the displayed lines of text in a textbox. (Such as line indexes 1-15, to give an example.)
View 10 Replies
Feb 10, 2011
how do i replace all new lines in a rich text box to </br> ?
View 1 Replies
Mar 25, 2010
i have a couple of questions which
View 1 Replies
Mar 21, 2012
I'm creating a program that pings a host. I'm trying make text appear RED on one line if it's down, and GREEN if it's UP.
View 6 Replies
Jun 5, 2011
I've out an output rich text box called TbxOutput, and I have many different tbxoutput.appendtext("") methods in my program.I don't really know much about how to set rich text box colors, and what I specifically need is for a simple line of code that i can plug in before the tbxoutput.appendtext("" + vbnewline) methods to make that particular line output text of a different color.
For example, when my program normally outputs messages it does it in black, and i want it to remain that way by default. But when it outputs an error message, I want that particular message
View 2 Replies
Aug 31, 2010
I have 2 panels set up, one contains the rich text box the other one contains a single label. The am currently using the following code however it is not working.
Dim line_count As Integer = mainEditor.Lines.Length
Dim linecounter As Integer = line_count
linecounter += 1
line_count = 0
[code]....
View 6 Replies
Apr 15, 2011
here is the code i am using to read from a rich textbox:
Dim mydir = my.computer.filesystem.currentdirectory
IO.Path.GetFileName(mydir + "
ecord" + tb_name.Text + ".txt" )
Dim linebuffer() As String = IO.file.ReadAllLines(mydir + "
ecord" + tb_name.Text + ".txt")
casefiles.rb_casefile.Text = linebuffer(0).Trim(""""c)
View 14 Replies
Feb 4, 2009
I'm building an app that list information. It will have list of each object going vertically, with the information about the object going horz across that line. My issue is I need to scroll through these lines, however each line will contain text, images, scroll bar, button, etc. Just common control items. I first started off grouping them in a panel (panel being everything needed in that one line of information). I was thinking I could spawn more identical panels, one for each object listed. I also tried this using a UserControl (not sure if this is the right thing to do). I just need a simple panel or area that I can layout my controls as need, then create identical panels as needed for each line. Then I can just scroll through then using some script to mod there location. Panel? UserControl? I've tried the usercontrol, however I coudlnt get it to show on the form.
View 5 Replies
Apr 1, 2012
I have default.aspx used masterpage, in master page i have a control called DefaultMenuContent, this control have a dropdownlist with autopostback, the problem is loosing the selection even if i use Is Not PostBack in control's load event, how to persist the dropdownlist selection?
In Master:
<asp:ContentPlaceHolder ID="MenuContentPlaceHolder" runat="server">
<art:DefaultArabicMenu ID="DefaultMenuContent" runat="server" />
</asp:ContentPlaceHolder>
[code]....
View 1 Replies
Mar 10, 2012
I am getting data from an SQL Server Database to display into text boxes.
However I also tried getting individual data or current data to display in the Gridview but not working. I am sure I am not doing it right.
I can get the data to display in the Grid view but not individually or scroll through as I hit the next button.[code....
View 3 Replies
Feb 25, 2009
My application uses a trackbar to sort images.It works best if the mouse wheel scroll lines value is one.I can advise my users to set the value themselves in the control panel having determined it is three, but I cant set a users scroll value to one for them.I would like to have some visual basic code in the form load that sets the scroll line value to one.
View 5 Replies
Mar 23, 2012
I am currently working on a VB.Net program where there are two parallel multiline text boxes like this.
----- -----
| | | |
| | | |
----- -----
I would like that when one text box is scrolled, the other is scrolled as well. I was wondering if there was a Scroll event that could trigger the change the position of the scroll bar of the two text boxes.
View 1 Replies
Feb 3, 2010
how can i retrieve a line from a textbox1 and compare it with a line from another textbox2.then display any error (at which lines) in textbox3.i really dont know where the probs are which my codes can't be run.this is my codes i've created: [code]
View 8 Replies
Jan 12, 2010
I am using VB 2008 and want to record a start date and time and then the stop date and time in a rich text box, i can get the start time into the box but so far can only stop the time instead of 2 seperate times, what i have is a drop down box with a list of computers 1-10 i was trying to get it so you picked a certain computer and that went into the text box then you started the timer and that was recorded, finally you stopped the timer and that was recorded but as i am a total newbie it does not work
Here is the code i have.
Public Class Form1
Dim time2 As Date
[CODE]...................
View 11 Replies
Aug 2, 2010
So in my form i have the user input a bunch of data that gets written to a listbox. Like so Pre_Study_Listbox.Items.Add("Team Members are: "). I then save the listbox to a .txt file and they can later load the .txt file back to the listbox. All this works great. But now i need to reverse the order of textbox to listbox and put the information back into the textbox fields from the listbox. So. The parsing character is ":" I need to read each line of the listbox and at the ":" take the rest in put it to the text box. I am not familiar with the parsing command
View 2 Replies
Aug 9, 2011
This time i have a RTB (look.text) that contains no more than 12 lines (it updates according to a listbox but it will never exceed 12 lines of text). The lines contain numbers like this:2345,0,0,1,36,... and the last line will always be a number like: + or -123456789I also have 12 textboxes (a0.text to a11.text). How do i write each line from the RTB in a textbox?-i can't show you my code because it looks stupid and no matter what i tried i always ended up getting the same error "Index was outside the bounds of the array"-
View 4 Replies
Apr 19, 2011
I am having a bit of trouble on how to do a simple compare of two textboxes.In first textbox i have lines with values (mostly http links) In the second textbox i have lines also with links I want to compare every line in textbox1 with every line in textbox2.i would prefer TextBox1 to stay textbox but textbox2 can be a listbox or anything else.
VB For Each line In Me.TextBox1.Lines If line.Equals("i need to have every item from textbox2 here", StringComparison.CurrentCultureIgnoreCase) Then End If Next
View 7 Replies
Nov 20, 2009
Compare textboxes and remove duplicate lines/text..
View 3 Replies
Dec 11, 2011
I was developing a antimalware, and wanted to read Signature from a Signature.txt file, and place all the strings into different textboxes, my viruslist has 90069500 malware (Took Almost A Year Collecting Them) signatures and if I start typing then like:
If buff.ToString = "000008298FC27014ECF5610F163277E2" Then
txtvirname.Text = "Trojan-GameThief.Win32.OnLineGames.tvl"
txtrisk.Text = "Moderate"
[code].....
View 1 Replies
Feb 8, 2011
Have been trying to scroll one line at a time on my Richtextbox1 for quite some time - Hit upon this code which doesnt seem to work.
Class RichTextBox1
Inherits RichTextBox
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
[code].....
View 5 Replies
May 2, 2011
I am not sure if I should put in a Text Box or not but this is how I thought it might have to go. Textbox1 shows the start time of a procedure and textbox2 shows the endtime of the same procedure. I would like it if the textboxes were in a 12 hour clock showing an am/pm tag on the textbox's. Then in Textbox3 it would show the differance between Textbox1 and Textbox2 in Hours and Minutes.
View 9 Replies
May 2, 2012
in order to select text in a textbox you need to focus into it.The problem is, after focusing and selecting the second textbox, it deselects the text in the first textbox.
View 1 Replies
Jun 2, 2010
I have a form with many different textboxes on it. The form is used to Edit the data already in a databound table. At design time I set my Databindings.text to the appropriate columns.
During form load I check the values in the bound column for null values. If the column value is null, I set the textbox.text property to a descriptive prompt like "enter telephone #" or enter city. I also use databinding.remove to remove the databinding so that the desriptive prompts don't wind up in the database.
Here is the code I use to remove the databinding.
For Each Panels In Me.Controls
PBox = TryCast(Panels, Panel)
[CODE]...
.Tag2Defaultphase is a custom property I have defined which holds the default descriptive prompt. If the user enter a value into the textbox I then wish to add the bind back so that when I updateall with the tableadapter the value will be transferred back to the appropriate bound column.
Here is my code for that:
Sub perOptionalTBoxValidation(ByRef TBControl As custTextBoxControl, ByRef strDefaultTextPhrase As String, ByRef intMaxChars As Int32, ByRef bsBindingSource As BindingSource, ByRef strColumnName As String)
[CODE]...
View 4 Replies
Jun 22, 2010
I have attached that file. The sample of data are as below:
PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005041 278.271074.5150 69.4035 08370074.1830 69.2755 083800254.1925290.4620083900254.5615291.010008400008390098.2710 74.3630 20.3943
[Code]...
the main problem here is i want to use 2 value from 2 line in one time to do that calculation... if those data in one line its not a problem..
View 10 Replies
Jun 9, 2011
I have to make a lot of retangular boxes to make my program neat but i'm having a problem of adding boxes. I tried using the draw event in the tab page but everytime i scroll it will draw the lines again and messes up everything. Also when making a line greater that the tab page, autoscroll won't work.
Is there a way to make lines or boxes in design time?
View 7 Replies