Answered by:
how use visual net?

Question
-
User-1625733423 posted
hi,
Always i worked in C#, but i have to do a project in visual basic and i do not anything that languaje.
i need to convert this sentence:
Chart1.DataSource = DataSet1;
in visual basic.
But, when I call on. aspx.vb a previously declared item on .aspx, seems don't recognize it.
I attached a code segment that I did in C # so you understand a little better what I need to do in visual basic.
protected void Page_Load(object sender, EventArgs e)
{
Random b = new Random();
LblNumero.Text = b.Next(10, 30).ToString();
LblNumero0.Text = b.Next(10, 20).ToString();
String [] a= new String[7];
int [] c= new int[7];
a[0] = "Rep Mayor de infraestructura";
a[1] = "Rep Menor de infraestructura";
a[2] = "Equipo Electrico";
a[3] = "Equipo Electronico";
a[4] = "Equipo Electromecanico";
a[5] = "Servicios";
a[6] = "Equipo Lado Aereo";
c[0] = 34;
c[1] = 23;
c[2] = 83;
c[3] = 44;
c[4] = 39;
c[5] = 76;
c[6] = 23;
DataSet tabla= new DataSet();
FormulasEstadisticas formulas= new FormulasEstadisticas();
tabla= formulas.SetGetCategoria(a,c,tabla);
Chart1.DataSource = tabla;
}Monday, December 19, 2011 1:02 PM
Answers
-
User-434868552 posted
also, if there is a technique you understand in c# and there's an asp.net tutorial here at the asp.net website, you will most likely find a vb version of the same tuturial; one will have a file extension .cs, the other .vb
Example: (below, instead of file extension, it's SEO friendly endings -cs and -vb)
http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part1-cs
http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part1-vb
g.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 19, 2011 1:33 PM -
User622904130 posted
besides the obvious code converters such as http://www.codechanger.com/. You can download SharpDevelop and convert C# projects to VB.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 19, 2011 2:47 PM
All replies
-
User-434868552 posted
if you use Google, and search for
c# to vb .net convertors
you'll find lots of tools.
if you know how to do something in c#, for example, if at MSDN, you look up something like
Console.Writeline
on the same MSDN page, you will likely find versions for c#, VB, et cetera
g.
Monday, December 19, 2011 1:26 PM -
User-434868552 posted
also, if there is a technique you understand in c# and there's an asp.net tutorial here at the asp.net website, you will most likely find a vb version of the same tuturial; one will have a file extension .cs, the other .vb
Example: (below, instead of file extension, it's SEO friendly endings -cs and -vb)
http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part1-cs
http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/getting-started-with-mvc3-part1-vb
g.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 19, 2011 1:33 PM -
User622904130 posted
besides the obvious code converters such as http://www.codechanger.com/. You can download SharpDevelop and convert C# projects to VB.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 19, 2011 2:47 PM -
User-1625733423 posted
thanks a lot, it is very useful.
Monday, December 19, 2011 3:44 PM