1 Attachment(s)
Re: How to create a partial class?
[QUOTE=bhushan1980]No. Infact, the Q I put on the forum, was only after checking that my code did not contain any such section called:
Code:
Region "Form Designer Code"
-
-
-
End Region
Which VS version are you using ? As you ever can see the Designer and the auto generated code in VS 2005 for example.
I'm working in C#
Look at the following picture
Re: How to create a partial class?
Hi Arjay and JonnyPoet. I found the Form1.Designer.cs and I found the code was fine and that was very similar to the VC++.NET generated code. But in VB.NET solution explorer, all I see is the solution path, the MyProject named file and Form1.vb. I saw if I can get to expand any code enlosed in any region, but it was not to be.
Thankyou,
Bhushan.
Re: How to create a partial class?
The only resolution I can suggest is to not code in VB.net. ;)
Re: How to create a partial class?
Quote:
Originally Posted by bhushan1980
Hi Arjay and JonnyPoet. I found the Form1.Designer.cs and I found the code was fine and that was very similar to the VC++.NET generated code. But in VB.NET solution explorer, all I see is the solution path, the MyProject named file and Form1.vb. I saw if I can get to expand any code enlosed in any region, but it was not to be.
Thankyou,
Bhushan.
Look in the DIRECTORY!, not the solution explorer...
1 Attachment(s)
Re: How to create a partial class?
Quote:
Originally Posted by bhushan1980
... But in VB.NET solution explorer, all I see is the solution path, the MyProject named file and Form1.vb. I saw if I can get to expand any code enlosed in any region, but it was not to be.
You obviously used VB.net in that case. Here you need to press the second button on top of the project explorer. Compared to german IDE this is named like ' ShowAll' or something like this. Look here
Re: How to create a partial class?
I am really embarassed! Please overlook this part of the thread. I just had to try that toolbar. As I mentioned before, I created the same application using all the three languages and found that the entire code is visible in the VC++.NET environment by default in Form1.h. In C# it is separated in Form1.designer.h. And I could not find any such thing in VB.NET....hence the confusion.
Thankyou,
Bhushan.
Re: How to create a partial class?
Quote:
Originally Posted by bhushan1980
In C# it is separated in Form1.designer.h. And I could not find any such thing in VB.NET....hence the confusion.
I think you have a typo and mean Form1.designer.cs.
Re: How to create a partial class?
Quote:
Originally Posted by Arjay
I think you have a typo and mean Form1.designer.cs.
:D Yes sure this only could be a typo as .h files we all know are in C++ :D