Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDataRow Problem Pin
jake07222-Jun-05 10:11
jake07222-Jun-05 10:11 
QuestionSplit Function glitch? Pin
Brad Fackrell22-Jun-05 6:59
Brad Fackrell22-Jun-05 6:59 
AnswerRe: Split Function glitch? Pin
Dave Kreskowiak22-Jun-05 7:14
mveDave Kreskowiak22-Jun-05 7:14 
Questionmay sound absurd but please try Pin
Eytukan22-Jun-05 5:35
Eytukan22-Jun-05 5:35 
AnswerRe: may sound absurd but please try Pin
toxcct22-Jun-05 5:42
toxcct22-Jun-05 5:42 
AnswerRe: may sound absurd but please try Pin
Dave Kreskowiak22-Jun-05 5:50
mveDave Kreskowiak22-Jun-05 5:50 
AnswerRe: may sound absurd but please try Pin
Eytukan22-Jun-05 9:45
Eytukan22-Jun-05 9:45 
GeneralRe: may sound absurd but please try Pin
Dave Kreskowiak22-Jun-05 10:12
mveDave Kreskowiak22-Jun-05 10:12 
OK. I'm not trying to bash your methods, but this is... ugly.

This code was written off the top of my head and is not garanteed to work, let alone compile!
Dim foundTextBox As TextBox = FindTextBox("AX")
If Not foundTextBox Is Nothing Then
    foundTextBox.Text = myValue
End If
 
.
 
Private Function FindTextBox(ByVal textboxName As String) As TextBox
    Dim currControl As Control
    For Each currControl In Me.Controls
        If GetType(currControl).Equals(GetType(TextBox)) Then
            ' Found a TextBox, now check its Name property
            If String.Compare(currControl.Name, textboxName, True) = 0 Then
                ' Found the correct TextBox, return this instance of the control
                Return currControl
            End If
        End If
    Next
    Return Nothing
End Function



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: may sound absurd but please try Pin
toxcct22-Jun-05 20:26
toxcct22-Jun-05 20:26 
GeneralRe: may sound absurd but please try Pin
Eytukan23-Jun-05 5:12
Eytukan23-Jun-05 5:12 
GeneralRe: may sound absurd but please try Pin
toxcct23-Jun-05 5:24
toxcct23-Jun-05 5:24 
Generaland asp.net Starting new job Pin
monageasmear22-Jun-05 3:49
monageasmear22-Jun-05 3:49 
GeneralRe: and asp.net Starting new job Pin
Dave Kreskowiak22-Jun-05 4:52
mveDave Kreskowiak22-Jun-05 4:52 
GeneralRe: and asp.net Starting new job Pin
Sebastien Lachance22-Jun-05 6:12
Sebastien Lachance22-Jun-05 6:12 
GeneralRe: and asp.net Starting new job Pin
Dave Kreskowiak22-Jun-05 7:12
mveDave Kreskowiak22-Jun-05 7:12 
GeneralRe: and asp.net Starting new job Pin
lespaul3622-Jun-05 18:50
lespaul3622-Jun-05 18:50 
GeneralRe: and asp.net Starting new job Pin
Dave Kreskowiak23-Jun-05 2:07
mveDave Kreskowiak23-Jun-05 2:07 
GeneralRe: and asp.net Starting new job Pin
monageasmear22-Jun-05 6:50
monageasmear22-Jun-05 6:50 
GeneralRe: and asp.net Starting new job Pin
Dave Kreskowiak22-Jun-05 7:08
mveDave Kreskowiak22-Jun-05 7:08 
GeneralRe: and asp.net Starting new job Pin
monageasmear23-Jun-05 3:49
monageasmear23-Jun-05 3:49 
GeneralRe: and asp.net Starting new job Pin
Dave Kreskowiak23-Jun-05 4:50
mveDave Kreskowiak23-Jun-05 4:50 
Generalsimple textbox that limits its value to numeric (limiting the lenght and the number of decimals) Pin
kanagaraj kumar21-Jun-05 23:24
kanagaraj kumar21-Jun-05 23:24 
GeneralRe: simple textbox that limits its value to numeric (limiting the lenght and the number of decimals) Pin
toxcct22-Jun-05 0:13
toxcct22-Jun-05 0:13 
GeneralRe: simple textbox that limits its value to numeric (limiting the lenght and the number of decimals) Pin
Christian Graus22-Jun-05 3:06
protectorChristian Graus22-Jun-05 3:06 
GeneralHelp about Cash Register - How to connect to ... Pin
SmartSDR21-Jun-05 23:22
SmartSDR21-Jun-05 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.