473,398 Members | 2,380 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,398 software developers and data experts.

Lost Changes

I have a Form f with a TextBox tbx. An event handler invokes
MyClass.Method1 (form, tbx). Method stores form in a ListArray A1, and
{tbx, tbx.Text} (as a structure) in another ListArray A2, both private
attributes of MyClass. Later on f invokes MyClass.Method2. Method2
retrieves f from A1and tbx from A2, finds tbx in f.Controls and sets Text in
that instantiation to Text in the stored version. In MyClass.Method2 this
all seems to be working fine. But after Method2 returns to f, tbx.Text
hasn't been changed.

Can someone tell me where or how the change gets lost?

Thanks.
Nov 17 '05 #1
1 1083

"Ken Kast" <ke*@NOSPAMkenkast.com> wrote in message
news:e6*************@TK2MSFTNGP10.phx.gbl...
I have a Form f with a TextBox tbx. An event handler invokes
MyClass.Method1 (form, tbx). Method stores form in a ListArray A1, and
{tbx, tbx.Text} (as a structure) in another ListArray A2, both private
attributes of MyClass. Later on f invokes MyClass.Method2. Method2
retrieves f from A1and tbx from A2, finds tbx in f.Controls and sets Text
in that instantiation to Text in the stored version. In MyClass.Method2
this all seems to be working fine. But after Method2 returns to f,
tbx.Text hasn't been changed.

Can someone tell me where or how the change gets lost?


No. It'd be better if you provided a short but complete program[1] to show
your problem

1. http://www.yoda.arachsys.com/csharp/complete.html
Nov 17 '05 #2

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

Similar topics

5
by: Simon Redmond | last post by:
my hosting provider just upgraded the server and now some of my scripts don't work.... Fatal error: Call to undefined function: imagecreatefromjpeg() What do I need to look for in order to...
4
by: Pieter Linden | last post by:
Hi, Hopefully it's just me missing something obvious (but at 2AM, not much is obvious, I guess...) I have a table of courses that people have taken (StudentID,CourseID) and the user selects a...
8
by: Ron Vecchi | last post by:
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are...
14
by: Ron L | last post by:
All I am working with a DataGrid and a form consisting of a number of text, checkbox, combobox controls, all bound to the same datatable. When I click on my "New" button, I create a new row,...
1
by: John Dalberg | last post by:
I am trying to send a webpage with datagrids as an email so I use the code snippet below. In one of my datagrids, I reformat some rows in the datagrid's Prerender event. The code behind of the page...
3
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our...
3
by: Daniel Manes | last post by:
I need a strategy to debug this situation... I can't put all the code involved, but here are some of the critical lines with comments: ------------------------- Private _parentDataCell As...
45
by: Master Programmer | last post by:
- Constant language / system changes - Dropping of the VB language - Security configuation minefields - Loss of old code base - Time consuming to learn (then it changes every 5 minutes) - Slow...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.