how to translate from c# this instruction

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
 
C

Chris Dunaway

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
 
R

rowe_newsgroups

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
 
R

rowe_newsgroups

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
 
G

Guest

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
 
R

rowe_newsgroups

=> 'Dim fname As String = ...'.

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

:)

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top