.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ComboBox loses Handler

1 REPLY 1
Reply
Message 1 of 2
fmarcelino
167 Views, 1 Reply

ComboBox loses Handler

Hi,

I'm programming for AutoCAD 2006 using VS.NET 2003. I have 10 ComboBoxes using the same procedure, like this:

public sub ManageSelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles cb1.SelectedIndexChanged, cb2.SelectedIndexChanged......

What's happening is that, when I try to add a layer programmatically and that layer already exists, an exception is raise. So far so good. The problem is, when that error (or other error occures in a command) occur, my ComboBoxes stop to respond to the event SelectedIndexChanged!

I already tried to do a AddHandler when an error occur but it's useless, the Combos just stop working... Does anyone have a solution for this?

Thanks in advance fopr your help.

Regards,
Filipe Marcelino
1 REPLY 1
Message 2 of 2
fmarcelino
in reply to: fmarcelino

Hi,

I already solved this issue. It's a VS 2003 bug. Thanks anyway. I thought that maybe the error thrown by the AutoCAD was causing this but it wasn't.

Ragards,
Filipe Marcelino

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost