How to get rid of the designer

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

I want to add some custom methods to the DataGridView class, so I inherit
from it.
When I click on the .cs file in the solution explorer I get a designer.
How can I get rid of it? I just want to edit code without right-clicking and
selecting "View code".
Is there any point for using the designer with the DataGridView class
anyway?

Thanks, Greg
 
Greg, I don't know if you can get rid of it. This is the way designer works
for all controls. You can drag and drop controls in components and VS will
create InitializeComponent method for you.
 
Try this: Right click the .cs file and choose "Open With". Then
choose csharp editor (or vb editor) and then click the "Set as Default"
button.

Now when you double click the .cs file, it will open in the code editor.
 
D'ya know, I've asked that in various places, and never with a decent
answer - and then this!

So simple: how did I miss it?

Great tip

Marc - a happier person without that damned designer...
 
Chris said:
Try this: Right click the .cs file and choose "Open With". Then
choose csharp editor (or vb editor) and then click the "Set as Default"
button.

Now when you double click the .cs file, it will open in the code editor.

So simple, just a few clicks away. I'm ashamed.
Thank you ;)

Greg
 
Back
Top