ComboBox inside Tabcontrol - SelectedIndexChanged

G

Guest

Hi!

I've a Tabcontrol with 2 tabs. The second one (index=1) has inside a
ComboBox which I validade depending on its selected values (bound from
DataView). In other words, when ComboBox.SelectedIndexChanged is raised I
analize the its SelectedValue and, for example, I switch the Button.Enabled
property to True or False.
But there is a strange issue. When I show the form I just see the first
Tabcontrol Tab (index = 0), ok!. Until I enter the second tab the
ComboBox.SelectedIndexChanged is not raised! In this case, the validating
doesn't occur until I enter the second tab (index = 1).

Do I need to activate de combobox or something like that?

Thanks
 
S

Sanjeevakumar Hiremath

Comboboxes on TabPages are always problematic. Perhaps its a bug in the .NET
framework.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top