Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I open my visual studio-->new --->Project--> project is created.

I designed the registration page with name,address,mobile,email like that. i did not select any language vb or C#.default it taken .vb.Now I want convert the same form into .Cs file. Is it possible or not?
Posted

1 solution

Create a new C# project and open a new form in the designer (so you are looking at the controls, rather than the code).
Now open the VB form in the designer, and select all the controls. Copy them to the clipboard.
Go back the the C# form and paste the controls.
You will have to create all the event handlers again, but if you have existing VB code behind them, there are online code converters which may help:
http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
http://converter.telerik.com/[^]
Are the two I use.
 
Share this answer
 
Comments
Member 11570261 9-May-15 3:34am    
thank you ...it's working fine
OriginalGriff 9-May-15 3:54am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900