Equivalent code in VB for a C# code


G

Guest

Hi, I managed to transform a C# class to VB except the following portion of
the code
if(dgItem.Cells.Controls.Count > 0 && dgItem.Cells.Controls[0] is
LinkButton)
..dgItem is a datagrid item.
What is the equivalkent code in VB
Thanks in advance
Salam
 
Ad

Advertisements

H

Herfried K. Wagner [MVP]

SalamElias said:
Hi, I managed to transform a C# class to VB except the following portion
of
the code
if(dgItem.Cells.Controls.Count > 0 && dgItem.Cells.Controls[0] is
LinkButton)
.dgItem is a datagrid item.
What is the equivalkent code in VB


\\\
If _
dgItem.Cells(i).Controls.Count > 0 AndAlso _
TypeOf dgItem.Cells(i).Controls(0) Is LinkButton _
Then
...
End If
///

This article contains a list of available C# to VB.NET translators:

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

The converter of Tangible Software Solutions Inc. produces very accurate
results. You may want to order a demo version:

<URL:http://www.tangiblesoftwaresolutions.com/Demo_Download/Instant_VB/Request_Demo_Instant_VB.htm>
 
Ad

Advertisements

G

Guest

Thanks, all urls work like a charm
Thanks

Herfried K. Wagner said:
SalamElias said:
Hi, I managed to transform a C# class to VB except the following portion
of
the code
if(dgItem.Cells.Controls.Count > 0 && dgItem.Cells.Controls[0] is
LinkButton)
.dgItem is a datagrid item.
What is the equivalkent code in VB


\\\
If _
dgItem.Cells(i).Controls.Count > 0 AndAlso _
TypeOf dgItem.Cells(i).Controls(0) Is LinkButton _
Then
...
End If
///

This article contains a list of available C# to VB.NET translators:

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

The converter of Tangible Software Solutions Inc. produces very accurate
results. You may want to order a demo version:

<URL:http://www.tangiblesoftwaresolutions.com/Demo_Download/Instant_VB/Request_Demo_Instant_VB.htm>
 

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

Similar Threads


Top