Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 04:12 AM
Authorized User
 
Join Date: Jan 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default To get each textbox control in C#

How to convert this code into C# code?

 Sub clear()
        Dim c As Control

        For Each c In Me.Controls
            If TypeOf c Is TextBox Then
                CType(c, TextBox).Clear()
            End If
        Next
    End Sub

Thanks
Jelfy
__________________
Thanks
Jelfy
 
Old June 28th, 2005, 06:07 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://www.google.com/search?q=convert+vb+net+csharp

-Peter
 
Old June 29th, 2005, 12:03 AM
Authorized User
 
Join Date: Jan 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

http://www.developerfusion.com/utili...btocsharp.aspx


is a good vb .net to c# converter

Thanks
Jelfy





Similar Threads
Thread Thread Starter Forum Replies Last Post
textbox value using javascript on user control k.manisha ASP.NET 1.0 and 1.1 Professional 1 February 12th, 2007 04:48 PM
Javascript changes to Textbox Control wyokid ASP.NET 1.0 and 1.1 Professional 2 June 28th, 2006 01:14 PM
Textbox custom control lok_tan General .NET 2 July 17th, 2005 08:30 PM
control array of textbox greatmanu Excel VBA 1 October 24th, 2003 09:36 AM
Textbox control style beckertc VS.NET 2002/2003 2 September 2nd, 2003 12:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.