how to translate from c# this instruction

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Hi all,

ca anybody help me to translate to vb .net this c# instruction?

string fname = ((TextBox)GridView1.Rows[e.RowIndex].
Cells[1].Controls[0]).Text;

Thanks,

Carlos
 
Carlos said:
Hi all,

ca anybody help me to translate to vb .net this c# instruction?

string fname = ((TextBox)GridView1.Rows[e.RowIndex].
Cells[1].Controls[0]).Text;

Thanks,

Carlos

DirectCast(GridView1.Rows(e.RowIndex).Cells(1).Controls(0),
TextBox).Text
 
dim fname = directcast(GridView1.Rows(e.RowIndex).Cells(1).Controls(0),
TextBox).Text

Also here's a great site for converted vb to c# and vice-versa

Thanks,

Seth Rowe
 
Also here's a great site for converted vb to c# and vice-versa

And here's where I actually post the URL :-)

http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html

I sure am glad it's friday...

Thanks,

Seth Rowe


rowe_newsgroups said:
dim fname = directcast(GridView1.Rows(e.RowIndex).Cells(1).Controls(0),
TextBox).Text

Also here's a great site for converted vb to c# and vice-versa

Thanks,

Seth Rowe

Hi all,

ca anybody help me to translate to vb .net this c# instruction?

string fname = ((TextBox)GridView1.Rows[e.RowIndex].
Cells[1].Controls[0]).Text;

Thanks,

Carlos
 
Dim fname As String = CType(GridView1.Rows(e.RowIndex).Cells(1).Controls(0),
TextBox).Text

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
 
=> 'Dim fname As String = ...'.

Hehe, like I said it's a good thing its Friday.

:-)

Thanks,

Seth Rowe
 
Back
Top