C
C
Carabin2014-05-14 10:00:44
Programming
Carabin, 2014-05-14 10:00:44

Why does VisualStudio 2013 not find the method after double clicking on the control (Windows Forms)?

The program has grown a lot and moved the partial part of the Form1 class from the Form1.cs file to a new file, for example NewFile.cs. At the same time, the class is the same - partial class Form1. Among the transferred methods there are also event handlers when a button is clicked, for example.
So now, when double-clicking on a control in the Design window, the studio looks for a method only in the Form1.cs file and stops there, i.e. method for editing does not open. Is it possible to make the search also take place in the NewFile.cs file and the method is automatically opened for editing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexP11223, 2014-05-14
@Carabin

Perhaps adding DependentUpon as described here stackoverflow.com/questions/2485851/winform-partia... will help.
But in my opinion such a transfer is not at all the best solution to the problem.
What did you grow there? Do you have all the business logic right in the form code or what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question