Hi all,
I have a web page with Multiline TextBox. Every 3 seconds I refresh the
page and display all received messages in this TextBox. When the TextBox is
updated (The Text property is set). The vertical scrollbar is flickering
(moving up and down and the scrollbar "square" is starting big and shrinks
when the TextBox is filled). Please note that every refresh more data is
added to the TextBox, and nothing is taken out (Appending new lines to the
existing ones).
How can I avoid this behavior?
Thanks,
Avi 3 4656
Not to insult your coding skills, but I would check the code you use to set
the Text property. Do you append each message individually, or concatenate
them into a string variable that gets assigned to the Text property? You may
also want to try setting the Text property to String.Empty at the beginning
of your code. Something else that you may want to look into, if you haven't
already, is UpdatePanels from ASP.NET AJAX, if you are only updating the one
Textbox and you are doing it every 3 seconds this could greatly improve the
efficiency of your page, and they are very easy to use. Hopefully some of
this helps.
--
Nathan Sokalski nj********@hotm ail.com http://www.nathansokalski.com/
"Avi" <re*********@ya hoo.comwrote in message
news:O7******** ******@TK2MSFTN GP03.phx.gbl...
Hi all,
I have a web page with Multiline TextBox. Every 3 seconds I refresh the
page and display all received messages in this TextBox. When the TextBox
is updated (The Text property is set). The vertical scrollbar is
flickering (moving up and down and the scrollbar "square" is starting big
and shrinks when the TextBox is filled). Please note that every refresh
more data is added to the TextBox, and nothing is taken out (Appending new
lines to the existing ones).
How can I avoid this behavior?
Thanks,
Avi
Thanks,
Yes, I have a string varialbe with all the messages. I did not use an
update panel since the TextBox is the only object on my page.
Nathan , I did not understand how setting the Text property to String.Empty
would help.
"Nathan Sokalski" <nj********@hot mail.comwrote in message
news:Or******** ******@TK2MSFTN GP04.phx.gbl...
Not to insult your coding skills, but I would check the code you use to
set the Text property. Do you append each message individually, or
concatenate them into a string variable that gets assigned to the Text
property? You may also want to try setting the Text property to
String.Empty at the beginning of your code. Something else that you may
want to look into, if you haven't already, is UpdatePanels from ASP.NET
AJAX, if you are only updating the one Textbox and you are doing it every
3 seconds this could greatly improve the efficiency of your page, and they
are very easy to use. Hopefully some of this helps.
--
Nathan Sokalski nj********@hotm ail.com http://www.nathansokalski.com/
"Avi" <re*********@ya hoo.comwrote in message
news:O7******** ******@TK2MSFTN GP03.phx.gbl...
>Hi all,
I have a web page with Multiline TextBox. Every 3 seconds I refresh the page and display all received messages in this TextBox. When the TextBox is updated (The Text property is set). The vertical scrollbar is flickering (moving up and down and the scrollbar "square" is starting big and shrinks when the TextBox is filled). Please note that every refresh more data is added to the TextBox, and nothing is taken out (Appending new lines to the existing ones).
How can I avoid this behavior?
Thanks, Avi
I believe it would help if you showed me your code, sometimes the problem is
something little that you just miss (don't be embarrassed, we all miss
little things that we want to smack ourselves in the face for). Sometimes
the steps we are taking is hard to put into words.
--
Nathan Sokalski nj********@hotm ail.com http://www.nathansokalski.com/
"Avi" <re*********@ya hoo.comwrote in message
news:OZ******** ******@TK2MSFTN GP06.phx.gbl...
Thanks,
Yes, I have a string varialbe with all the messages. I did not use an
update panel since the TextBox is the only object on my page.
Nathan , I did not understand how setting the Text property to
String.Empty would help.
"Nathan Sokalski" <nj********@hot mail.comwrote in message
news:Or******** ******@TK2MSFTN GP04.phx.gbl...
>Not to insult your coding skills, but I would check the code you use to set the Text property. Do you append each message individually, or concatenate them into a string variable that gets assigned to the Text property? You may also want to try setting the Text property to String.Empty at the beginning of your code. Something else that you may want to look into, if you haven't already, is UpdatePanels from ASP.NET AJAX, if you are only updating the one Textbox and you are doing it every 3 seconds this could greatly improve the efficiency of your page, and they are very easy to use. Hopefully some of this helps. -- Nathan Sokalski nj********@hotm ail.com http://www.nathansokalski.com/
"Avi" <re*********@ya hoo.comwrote in message news:O7******* *******@TK2MSFT NGP03.phx.gbl.. .
>>Hi all,
I have a web page with Multiline TextBox. Every 3 seconds I refresh the page and display all received messages in this TextBox. When the TextBox is updated (The Text property is set). The vertical scrollbar is flickering (moving up and down and the scrollbar "square" is starting big and shrinks when the TextBox is filled). Please note that every refresh more data is added to the TextBox, and nothing is taken out (Appending new lines to the existing ones).
How can I avoid this behavior?
Thanks, Avi This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: pothik05 |
last post by:
I have a multiline textbox (with scrollbar) on a form. I add lines to the
textbox at runtime. If the number of lines crosses the visible area in the
textbox, I want the scrollbar to scrolldown. I tried selectionstart but it is
not working.
Any comments will be appreciated.
|
by: Dan Neely |
last post by:
I want to have my textbox display a scrollbar if there is more text than will
fit, but to make it invisible if it will all fit. Is this possible?
The default behavior if all the text fits is a visible, but grayed out
scrollbar.
There doesn't appear to be a way to define this behavior using properties.
I thought about doing it manually...
|
by: Olav Tollefsen |
last post by:
I have added a MultiLine TextBox to my aspx page:
<asp:TextBox ID="TextBox1" runat="server" BorderStyle="None" ReadOnly="True"
TextMode="MultiLine"></asp:TextBox>
Then I add two lines of text to it:
TextBox1.Text = "Line 1\r\nLine 2";
The problem is that a vertical scrollbar is displayed
|
by: Olav Tollefsen |
last post by:
I have a MultiLine TextBox to which I add text like this:
TextBox1.Attributes.Add("style","overflow :hidden");
TextBox1.Text = "Line 1\r\nLine 2\r\nLine 3";
The number of lines added to the TextBox can be variable.
Right now (without setting any width / height), I can only see two lines of
text. If I click with the mouse in the TextBox,...
|
by: Rvo |
last post by:
I have a userform which contains a textbox (System.Windows.forms.textbox)
with multiline set to True. This box contains a certain number of characters
which reach below the bottom of the box. During runtime of my program I add
text at the end of the contents of the textbox. I want to display the last
lines of the box at all times.
However,...
| |
by: ABC |
last post by:
I tried KDNGrid's (www.knowdotnet.com) Multiline textbox column style for
datagrid. It is very good but has some bug on wrong handle datagrid height
that cannot display the scrollbar when a row has multiline textbox inserted.
I need to force insert more and more row lines, the scrollbar of gridbox
displayed.
Is there any another good...
|
by: jacquesvdz |
last post by:
Hi I have a div tag! It should work in the way a multiline textbox
would work
Here is the code I am using:
<div style='WIDTH: 383px; HEIGHT: 200px; position:relative; OVERFLOW-Y:
Auto'>Sample Sample Sample Sample Sample Sample</div>
But no matter what I do, it doesn't want to work vertically
There is no Horizontically scrollbar, but...
|
by: Flack |
last post by:
Hey guys,
I have two questions regarding the vertical srollbar of a multiline textbox.
1. I have an "Ok" button that is initially disabled. I want it to be enabled
when the user scrolls the vertical scrollbar of a textbox all the way down
(indicating that the user at least pretended to read all of the textbox's
text). How can I monitor...
|
by: sherifffruitfly |
last post by:
Hi all,
I'm using a multiline+scrollbar textbox to log output as my program
runs. Basically, I pass a reference to the class instance that's
currently doing stuff, and the instance can tack on whatever it needs
to the text property.
Initially I had trouble with getting the textbox to refresh
as-the-program ran, but the TextBox.Refresh()...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |