I have a function that throws an exception in the constructor. Can I avoid calling the function if the designer loads it. Is there an attribute or something that is better than try catch?
Additional information: I mean the designer of the visual studio for the forms of winning. My form uses a pointer that calls LoadProject () on initialization. Now I want to avoid the constructor calling the LoadProject () function.
source share