473,795 Members | 2,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Valida ted(ByVal sender As Object, ByVal e As
System.EventArg s) Handles txtJobNo.Valida ted
change into
Private Sub txtJobNo_Valida ted(ByVal sender As System.Object, ByVal e As
System.EventArg s)

Why ??

Nov 20 '05 #1
1 1413
"Agnes" <ag***@dynamict ech.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_Valida ted(ByVal sender As Object, ByVal e As
System.EventArg s) Handles txtJobNo.Valida ted
change into
Private Sub txtJobNo_Valida ted(ByVal sender As System.Object, ByVal e
As System.EventArg s)

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
1267
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. It should create in new table row. Code is below and if you see anything else you would change please provide for optimization. And Thanks. Code below. <script runat="server"> Private Sub Page_Load
1
1707
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
7613
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, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0. ...
17
3065
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 == desiredValue)
2
1707
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 only thing displayed in the DropDownList is: System.Data.Common.DbDataRecord So, under the Page_Load Event, here's my code: Dim strSQL, strConnection As String
1
6429
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 binding it to a repeater control. This repeater control has multiple text boxes and buttons. Can you please tell me how can i do paging in this case ? I'm posting my code below. The problem is that if i click on "AdjustThisAd" button, it opens...
1
2953
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 and .Show methods, but the Tab at the top doesn't change. How do I get the tab at the top to be the active tab?
0
980
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 fine. However, I have to remember if the user scrolled down to row 40 on tabpage1 and scroll down to row 40 on tabpage2. Would it be better to use four grids bound to the same datatable? Would they stay in synch if the user scrolls down on one...
1
1942
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 code: Private Sub TabPage2_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabPage2.Enter TextBox3.Focus() End Sub
0
9672
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, 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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10165
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.