473,396 Members | 1,871 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,396 software developers and data experts.

User Control inserts text in wrong place

I have a user control with eight text boxes, if I start typing in the
first text box in the tab order all is well, but if I mouse click into
another box and start typing the text goes into the frst box rather
than the one I put the focus in. The caret is in the right box, though
no in the right place, but the text appears in the wrong box.

Using VS Pro 2005 in Windows Vista, with sp1 and sp1 vista refresh
beta.

Bob Graham

Feb 26 '07 #1
3 1285
On Feb 26, 2:14 pm, "RvGrah" <rvgrahamsevaten...@sbcglobal.netwrote:
I have a user control with eight text boxes, if I start typing in the
first text box in the tab order all is well, but if I mouse click into
another box and start typing the text goes into the frst box rather
than the one I put the focus in. The caret is in the right box, though
no in the right place, but the text appears in the wrong box.

Using VS Pro 2005 in Windows Vista, with sp1 and sp1 vista refresh
beta.

Bob Graham
Code sample perhaps?

Feb 26 '07 #2
On Feb 26, 11:23 am, "gregarican" <greg.kuj...@gmail.comwrote:
On Feb 26, 2:14 pm, "RvGrah" <rvgrahamsevaten...@sbcglobal.netwrote:
No code at all. Create a new controllibrary project, place two text
boxes in it, run the project in test container, click in the second
text box and start typing. Text appears in the first box while the
caret blinks in the second box.

Just re-created the scenario in a fresh app.

Bob
>
I have a user control with eight text boxes, if I start typing in the
first text box in the tab order all is well, but if I mouse click into
another box and start typing the text goes into the frst box rather
than the one I put the focus in. The caret is in the right box, though
no in the right place, but the text appears in the wrong box.
Using VS Pro 2005 in Windows Vista, with sp1 and sp1 vista refresh
beta.
Bob Graham

Code sample perhaps?

Feb 26 '07 #3
Strangely it seems to work properly in the host application, only
misbehaves in VS "Test Container"

Bob

On Feb 26, 11:34 am, "RvGrah" <rvgrahamsevaten...@sbcglobal.net>
wrote:
On Feb 26, 11:23 am, "gregarican" <greg.kuj...@gmail.comwrote:On Feb 26, 2:14 pm, "RvGrah" <rvgrahamsevaten...@sbcglobal.netwrote:

No code at all. Create a new controllibrary project, place two text
boxes in it, run the project in test container, click in the second
text box and start typing. Text appears in the first box while the
caret blinks in the second box.

Just re-created the scenario in a fresh app.

Bob
I have a user control with eight text boxes, if I start typing in the
first text box in the tab order all is well, but if I mouse click into
another box and start typing the text goes into the frst box rather
than the one I put the focus in. The caret is in the right box, though
no in the right place, but the text appears in the wrong box.
Using VS Pro 2005 in Windows Vista, with sp1 and sp1 vista refresh
beta.
Bob Graham
Code sample perhaps?

Feb 26 '07 #4

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

Similar topics

7
by: Tim T | last post by:
Hi, I have the need to use dynamically loaded user controls in a webform page. I have the controls loading dynamically, and that part works fine. this is the code used in a webform to dynamically...
4
by: louise raisbeck | last post by:
I have this scenario (simplified) function addnewdata () { check for partial match already in db for information entered by user if (partialmatch succeeds) { open new window aspx page (using...
2
by: Edward Chung | last post by:
I create a user control that is used as a page header for all application's pages. The user control contains a HyperLink control named accountHyperlink whose text can either set to...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
1
by: Steve Booth | last post by:
I have a web form containing a button that when selected adds a user control to a place holder. The user control contains a button. The first time the user control is added the contained button...
5
by: serge calderara | last post by:
Dear all, I try to study Web user control .For that I have created a simple text box with button as a webuser control which has 2 properties. Then I drop my user control on a web page for...
1
by: serge calderara | last post by:
Dear all, I have created a simple user control (server Button) with a public property define has follow: Public Property value() As Integer Get 'return value Return ViewState("Value") End...
8
by: Paul Bromley | last post by:
I am trying to get somewhere with user controls and have come up against an obstacle with using relative paths. I have a dataset in my user control, and have tried to enter the path with the...
2
by: Mark | last post by:
Hi. I am making a user control right now, and it looks something like this: <script runat="server"> public string SelectCommand { set { // see below for why the following line is here.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
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,...
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
Oralloy
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,...
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
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...

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.