Home All Groups Group Topic Archive Search About

how to translate from c# this instruction

Author
20 Oct 2006 12:50 PM
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

Author
20 Oct 2006 1:19 PM
Chris Dunaway
Carlos wrote:
> 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
Author
20 Oct 2006 1:21 PM
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


Carlos wrote:
Show quoteHide quote
> 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
Author
20 Oct 2006 1:22 PM
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 wrote:
Show quoteHide quote
> 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
>
>
> Carlos wrote:
> > 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
Author
20 Oct 2006 9:33 PM
Herfried K. Wagner [MVP]
"rowe_newsgroups" <rowe_em***@yahoo.com> schrieb:
> dim fname = directcast

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

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
20 Oct 2006 10:53 PM
rowe_newsgroups
> => 'Dim fname As String = ...'.

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

:-)

Thanks,

Seth Rowe


Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "rowe_newsgroups" <rowe_em***@yahoo.com> schrieb:
> > dim fname = directcast
>
> => 'Dim fname As String = ...'.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
20 Oct 2006 2:32 PM
David Anton
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


Show quoteHide quote
"Carlos" wrote:

> 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
>
>
>