473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Stopping the update of a text box while maipulatin it.

UJ
I've got a text box that I'm going to be doing some manipulation on
(selecting text, moving stuff around, that kind of thing) but I don't
want/need the user to see it while it's going on. I'd like to leave the box
up while I'm doing the manipulation but turn off the updating of the text
box until I'm done. How can I do this? (At the moment it flashes a couple of
times while things are going on and it's annoying.)

TIA - Jeff.
Mar 23 '06 #1
2 1360
Jeff,

Can you not do the following

private void ManipulateText()
{
string MyText = MyTexBox.Text;
// Manipulation code goes here
MyTextBox.Text = MyText;
}

Thats the obvious solution unless there is some special need.

Regards
Scott Blood
C# Developer
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've got a text box that I'm going to be doing some manipulation on
(selecting text, moving stuff around, that kind of thing) but I don't
want/need the user to see it while it's going on. I'd like to leave the
box up while I'm doing the manipulation but turn off the updating of the
text box until I'm done. How can I do this? (At the moment it flashes a
couple of times while things are going on and it's annoying.)

TIA - Jeff.

Mar 23 '06 #2
UJ
What actually seems to be causing the problem is I have a multiline text box
(that the contents are larger than the displayable area) and I add the text
and then select the last character of the text and do a scrolltocarat. While
that happens the screen flashes.

It's just that it's annoying.

"scott blood" <sc*********@hotmail.com> wrote in message
news:u7**************@TK2MSFTNGP11.phx.gbl...
Jeff,

Can you not do the following

private void ManipulateText()
{
string MyText = MyTexBox.Text;
// Manipulation code goes here
MyTextBox.Text = MyText;
}

Thats the obvious solution unless there is some special need.

Regards
Scott Blood
C# Developer
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've got a text box that I'm going to be doing some manipulation on
(selecting text, moving stuff around, that kind of thing) but I don't
want/need the user to see it while it's going on. I'd like to leave the
box up while I'm doing the manipulation but turn off the updating of the
text box until I'm done. How can I do this? (At the moment it flashes a
couple of times while things are going on and it's annoying.)

TIA - Jeff.


Mar 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Shaw | last post by:
Hi, Please look at the code at the bottom of this procedure (UPDATE COVENANT PRINT DATE). When I put it at the tope of this section, it does the update and fails to return the SELECT results. ...
1
by: Perre Van Wilrijk | last post by:
Hi, I've got a full text index which works fine, SQLSERVER2000/WIN 2000 SERVER. The system requires to update indexes immediately, so I use a timestamp field to enable this. No problems so...
6
by: Dave | last post by:
I have a situation where I want to react to a ctrl-click on a <span> and it works in Netscape and Firefox browsers but in IE I have a problem. In IE I do catch the ctrl-click but IE also renders...
0
by: phade2blue | last post by:
This is probably a really stupid question but how do you stop access telling you what it is doing EG "update one row yes or no?" if you are updating lots of row its a real pain. Wheres the check...
12
by: Astra | last post by:
Hi All I know this might sound weird, but I have a form where I ask the user to enter their email address in one text box and then again in a confirm email text box to make sure that they have...
5
by: Phil Latio | last post by:
I have 2 virtually identical tables and wish to move data between them. Basically one table is called "live_table" and the other is named "suspended_table" and the only difference is that the...
14
by: > Adrian | last post by:
Is there a way of stopping text from highlighting in textbox? Many thanks, Adrian.
10
by: archana | last post by:
Hi all, I am having one windows service which is updating to database. On 'Onstop i want to wait till current updation complete. How will i do this? Because if i write some lengthy code on...
7
by: nelsonbrodyk | last post by:
Hey All, I am trying to make a textbox that will only allow alphanumeric values. I accomplished this by using the key pressed event, and validating the character against a regex and saying that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.