473,395 Members | 1,688 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.

ActiveControl problem

hello,

i've got a question about active control.
i'm buillding an application witch uses me.activeControl a few times
to check some things.

Now something strange happends..

when i click on a combobox ((Infragistics datagrid.comobobox) named
''comboGender" and i check the properties in the watch window:
me.ActiveContol.Name = "comboGender"

In an other form witch i build from scratch i do the same thing: i
click on combo "comboGender2" and when i check the properties the
following values are displayed in my watch window:
me.activeControl.Name = ""
me.activeConrol = {Text = ""}
me.activeControl.Parent.Name = "comboGender2"
me.activeControl.Parent = {Infragistics.Win.UltraWinGrid.UltraCombo}

My Question:
Why is in all the other forms the me.ActiveControl set to comboGender
and in the form i created me.ActiveControl is set to
comboGender.Text????

I don;t get it.
thanks in advance

Jul 23 '07 #1
1 2486
quote from infragistics

When the UltraCombo (or some other editor controls) goes into edit
mode,
it will display a derived TextBox control over itself to allow the
user to
edit. So what you will probably want to do is check to see if the
ActiveControl is an EmbeddableTextBox. If so, use the Parent property
and
that will give you the control you want.


On 23 jul, 11:02, "unknown;" <unknown1...@gmail.comwrote:
hello,

i've got a question about active control.
i'm buillding an application witch uses me.activeControl a few times
to check some things.

Now something strange happends..

when i click on a combobox ((Infragistics datagrid.comobobox) named
''comboGender" and i check the properties in the watch window:
me.ActiveContol.Name = "comboGender"

In an other form witch i build from scratch i do the same thing: i
click on combo "comboGender2" and when i check the properties the
following values are displayed in my watch window:
me.activeControl.Name = ""
me.activeConrol = {Text = ""}
me.activeControl.Parent.Name = "comboGender2"
me.activeControl.Parent = {Infragistics.Win.UltraWinGrid.UltraCombo}

My Question:
Why is in all the other forms the me.ActiveControl set to comboGender
and in the form i created me.ActiveControl is set to
comboGender.Text????

I don;t get it.

thanks in advance

Jul 23 '07 #2

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

Similar topics

1
by: UK | last post by:
I have 3 command buttons on a form. I need to change the caption of the active control. How do I access the properties of the command button using ActiveControl? Or is there a different method of...
7
by: Chuck | last post by:
I have a form with 3 related fields. If data is entered into 1 field, the other 2 related fields are updated automatically. I would like to indicate on the form into which field the data was...
1
by: James Ramaley | last post by:
I am creating a ListView control at run-time and show it on my form. The control appears on the screen and responds to keyboard input. However, the form's ActiveControl method returns a reference...
2
by: Sam | last post by:
Hi, I have a MDI Application. The MDI parent contains a treeview control, and the childform contains a textbox. If I leave the textbox by clicking on the treeview, then...
0
by: Greg | last post by:
I'd like to know which contol the focus of a cell in a datagrid is being lost to. Querying ActiveControl.Name within the LostFocus event gives me a blank string, instead of the name of a button I...
4
by: Aphazel | last post by:
I got serveral textboxes in a form and want to copy/cut/paste text to clipboard from currently selected (focused) textbox. It's simple to cut/copy/paste when using specified control directly ie...
0
by: Rick Shaw | last post by:
Hi, I need to determine if the current ActiveControl is ReadOnly. I need to find this out in the Form's keypress event. How do I go about doing this? Also, I have a control this is a...
2
by: Bob Darlington | last post by:
When I run the following code from a continuous form's Current event: Set ctrl = Me.ActiveControl I get an error 2474 - 'The expression you entered requires the control to be in the active...
3
by: nano2k | last post by:
Each form has its ActiveControl property, but no ActiveControlChanged event to signal that the active control has changed (like ParentChanged event). I tried to trick the form by declaring this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.