473,396 Members | 1,755 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.

event problem(text box)

Hello,
I have a class which is a defenition of a editable list view ,the cells
in this list are text boxes:
public SMK_EditListView()
{
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2 });
this.Controls.AddRange(new System.Windows.Forms.Control[]
{this.editBox});

}

My problem is how to detect (while I am catching an event) which one of
the columns(text box) being accessed?
Thank you very much!


*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
2 932
You can do it by accesing its name ;-)

Regards,

--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda

"juli jul" <ju******@yahoo.com> escribió en el mensaje
news:%2****************@tk2msftngp13.phx.gbl...
Hello,
I have a class which is a defenition of a editable list view ,the cells
in this list are text boxes:
public SMK_EditListView()
{
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2 });
this.Controls.AddRange(new System.Windows.Forms.Control[]
{this.editBox});

}

My problem is how to detect (while I am catching an event) which one of
the columns(text box) being accessed?
Thank you very much!


*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
The problem is that in this class there is a usage of one text box
control (although they use it twice in each column),how can I know which
one of the columns(text boxes) in the list generated by this class- been
chosen?
Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

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

Similar topics

2
by: Srinath Avadhanula | last post by:
Hello, I am wondering if QT has something like QWaitForNextEvent() function. This function would block execution of the application till another key was pressed and then return the event...
17
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
4
by: L Mehl | last post by:
Using VBA, when assigning values to variables from textboxes or comboboxes. the property "Text" or "Value" does not capitalize, yet the assignment works. In addition, appending "Text" or "Value"...
3
by: Boyd | last post by:
I am using asp.net 2003/ visual c# 2003. I have a timer event that sets a value assigned to a text box. With the debugger, I can tell the event is being executed but the screen is not being...
3
by: Jan Krouwer | last post by:
I have a problem that shows up only on some systems - the toolbar text in buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I changed the textalign property to "right". This...
3
by: michael.lang | last post by:
I am using PostBuild events in a C# project to run some tasks, but only when in release configuration mode. The build events run perfectly as expected when run. The problem comes when I save the...
6
by: isetea | last post by:
Hi, I have two tables with text fields as well as number fields. I try to match the two tables. Sometimes two matched textfields show an unmatch even if there is no value in both fields. Sometimes...
0
by: Digambar Borse | last post by:
Hi, I have a toolbar that contains textbox (msoControlEdit) object. when i write something in textbox, then change the cursor location another place, the text has been lost. But after writing, if...
1
by: plumba | last post by:
Hi all. I have a form which has a table and within the rows of the table are simple text input boxes. The ONLY problems with this is that when the form is posted (in text format) if the number of...
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
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
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...

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.