473,404 Members | 2,179 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,404 software developers and data experts.

Translate C# to VB2005

Who can translate this code into VB.net?
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition of
other.
Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur
May 21 '07 #1
4 1707

This?

http://authors.aspalliance.com/aldot...translate.aspx


"dancer" <da****@microsoft.comwrote in message
news:eh******************@TK2MSFTNGP02.phx.gbl...
Who can translate this code into VB.net?
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is
it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition
of
other.

Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur


May 21 '07 #2
Actually, "this" can't.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI
"sloan" wrote:
>
This?

http://authors.aspalliance.com/aldot...translate.aspx


"dancer" <da****@microsoft.comwrote in message
news:eh******************@TK2MSFTNGP02.phx.gbl...
Who can translate this code into VB.net?
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net
>
I have a CheckBoxList. One of the items needs to be user-defined. Is
it
possible to put a text box WITHIN a CheckBoxlist?
>
Meaning - if the user checks "Other" he would also type his definition
of
other.
Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur


May 22 '07 #3
(via Instant VB)
For i As Integer = 0 To 14
If (i Mod 2) = 0 Then
CheckBoxList1.Items.Add("<input type='text'" & ControlChars.CrLf &
"value='yahoo' onClick=""return false;""></input>")
Else
CheckBoxList1.Items.Add(i.ToString())
End If
Next i

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI
"dancer" wrote:
Who can translate this code into VB.net?
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition of
other.

Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur
May 22 '07 #4
Thank you. Now, could you explain to me exactly what it does?

"David Anton" <Da********@discussions.microsoft.comwrote in message
news:85**********************************@microsof t.com...
(via Instant VB)
For i As Integer = 0 To 14
If (i Mod 2) = 0 Then
CheckBoxList1.Items.Add("<input type='text'" & ControlChars.CrLf &
"value='yahoo' onClick=""return false;""></input>")
Else
CheckBoxList1.Items.Add(i.ToString())
End If
Next i

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI
"dancer" wrote:
>Who can translate this code into VB.net?
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is
it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition
of
other.

Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur

May 22 '07 #5

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

Similar topics

5
by: Chris Devol | last post by:
My dial-up connection sometimes hangs up and has to re-connect. The VB2005 installer/downloader apparently doesn't know how to resume when the connection is re-established. It just aborts! I've...
2
by: Jerry Spence1 | last post by:
1. Is there a more suitable, dedicated newsfeed for VB2005 yet? 2. I'm confused as to which version to get. I work for a small company and we will just need VB2005 on my PC. Therefore that tends...
0
by: Rich | last post by:
Hello, I just upgraded a vb2003 app to vb2005. The vb2003 app had/has a statusbar object - which contains panels and I can see the properties of the statusbar in the properties window in...
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...
1
by: erickwan88 | last post by:
I am doing a final year project for my school and is going to provide for an organization, so I am asking for some help on here. Indeed, I have no idea on how to get the input from my pen driver...
15
by: Aalaan | last post by:
I am presently a user of classic vb6 and hang out on those newsgroups. Some of you may be aware that there is a very anti MS and vb2005 feeling there. I have tried to get them to tell me which...
1
by: Jeffrey Christiansen | last post by:
I wanted to add a toggle button to a VB2005 form to be used for a simple Windows Application (i.e. compiled to a "*.exe"), so I added the ActiveX Microsoft Forms Object toggle button, however I...
1
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
What is the VB2005 translation of this JScript: aChanged = aFieldSelection.oField.applyTag( sTag, aFieldSelection, bHigh, aTopNodes, aMaps ); Thanks in Advance. -- Timothy Casey GPEMC!...
1
by: Vae07 | last post by:
Ok so here is a brief summary of my problem. I need a pop up form that submits input text box information to a pocket excel workbook upon a command botton click. Text box inputs are checked for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.