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

cut & past the textbox from tabpage1 to tabpage2

it is very strange that " i place some code in my Page1's textbox validated
event'.
then I cut the textbox and paste into page2.
I found that , the validated event is change.
From
Private Sub txtJobNo_Validated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtJobNo.Validated
change into
Private Sub txtJobNo_Validated(ByVal sender As System.Object, ByVal e As
System.EventArgs)

Why ??

Nov 20 '05 #1
1 1395
"Agnes" <ag***@dynamictech.com.hk> schrieb
it is very strange that " i place some code in my Page1's textbox
validated event'.
then I cut the textbox and paste into page2.
I found that , the validated event is change.
From
Private Sub txtJobNo_Validated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtJobNo.Validated
change into
Private Sub txtJobNo_Validated(ByVal sender As System.Object, ByVal e
As System.EventArgs)

Why ??


When you cut the textbox, the Handles statement is removed because there is
no object that's events can be handled. If you paste the textbox on page 2,
you only insert the cut part. You cut only the visual part if you use the
designer. Solution: Move (=Drag&drop) the textbox outside the tabcontrol,
switch to page 2, then drag&drop it on page 2.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

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

Similar topics

0
by: LU | last post by:
I have code to dynamically add more text boxes when the user clicks the 'add another carrier' button. Problem is it creates the text boxes within the same table row as previously created boxes. ...
1
by: Tomomichi Amano | last post by:
Hello. I was wondering how to paste-copy-cut-delete at a SELECTED SPOT in a textBox. Thanks in advance.
14
by: Adam Clauss | last post by:
I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendText. As my task is fairly lengthy,...
17
by: orekinbck | last post by:
Hi There Say I want to check if object1.Property1 is equal to a value, but object1 could be null. At the moment I have code like this: if (object1 != null) { if (object1.Property ==...
2
by: Jim in Arizona | last post by:
Being new, i experiment a lot and usually get results I'm not hoping for. My current problem is reading from a SQL 2000 table and populating an ASP dropdownlist with a column from the table. The...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
1
by: Capt_Ron | last post by:
Hi, I have a TabControl that has 1 TabPages on it. I would like to have a button on TabPage1 that goes to TabPage2. Kinda like a Next> button. I can get this to work using the .BringToFront...
0
by: Brett Romero | last post by:
I have a table control with four pages. I've taken a datagrid with many columns and broken it down into four views by tab. As the user clicks a tab, I move the grid. This seems to be working...
1
by: explode | last post by:
I have two tab pages.In the first tabpage I have some textboxes also in the second tabpage. I wont to get focus on Textbox3 (in tabpage2) when I enter the tabpage2 but it wont do that. This is my...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...

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.