473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to translate from c# this instruction

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
Oct 20 '06 #1
6 1406

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).Con trols(0),
TextBox).Text

Oct 20 '06 #2
dim fname = directcast(GridView1.Rows(e.RowIndex).Cells(1).Con trols(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
Oct 20 '06 #3
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/...omparison.html

I sure am glad it's friday...

Thanks,

Seth Rowe
rowe_newsgroups wrote:
dim fname = directcast(GridView1.Rows(e.RowIndex).Cells(1).Con trols(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
Oct 20 '06 #4
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
"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
Oct 20 '06 #5
"rowe_newsgroups" <ro********@yahoo.comschrieb:
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/>
Oct 20 '06 #6
='Dim fname As String = ...'.

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

:-)

Thanks,

Seth Rowe
Herfried K. Wagner [MVP] wrote:
"rowe_newsgroups" <ro********@yahoo.comschrieb:
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/>
Oct 20 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Hayko Riemenschneider | last post by:
Hi! I've got me an XSL tranformation stylesheet for my XML file. In the XSL file I now wish to use PHP to do some scripting. So I thought I'll use the PIs like this: ...
3
by: Trogdor | last post by:
I set up a server on an AMD 650 machine running gentoo linux. I installed Apachie 2, MySQL 4.1 and PHP 4.3.11 I use another computer on my local net (192.168.0.x) to access the server as a...
7
by: Bengt Richter | last post by:
Just thought None as the first argument would be both handy and mnemonic, signifying no translation, but allowing easy expression of deleting characters, e.g., s = s.translate(None,...
1
by: Roger Jack | last post by:
We have a commercial product, C-Sharpener For VB, that converts Visual Basic ..Net projects to C#. As a service to the Open Source community, we will convert Open Source Visual Basic .Net projects...
1
by: Fabrizio Maccarrone | last post by:
Hallo, I'm trying to migrate from classic asp to asp net. How can I write this instruction in classic asp, using a command object, to asp net? ===========================================...
6
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
9
bvdet
by: bvdet | last post by:
I have done some more work on a simple class I wrote to calculate a global coordinate in 3D given a local coordinate: ## Basis3D.py Version 1.02 (module macrolib.Basis3D) ## Copyright (c) 2006...
3
by: Kenneth McDonald | last post by:
I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? Thanks, Ken
4
by: kovariadam | last post by:
Hi, Does anybody know why i get this error: SQL0176N The second, third or fourth argument of the TRANSLATE scalar function is incorrect. SQLSTATE=42815 with this query: SELECT...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.