Get Value from another form's textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kunohiko
    New Member
    • Nov 2007
    • 1

    Get Value from another form's textbox

    Greets all...
    need help on reading value from another form under the same project.
    for example,
    i have frm1 and frm2, in frm2, i gotta use back the frm1.txtbox1.te xt value,
    how should i handle that?
    i have tried the following

    dim str1 as String = frm1.txtbox1.tx t
    if Instr(str1, "A") Then
    ...
    endif

    it wont prompt me error, but my if statement doesn't went as well..so i assume the read value is having problem...

    the version i using now is MS Visual Basic 2005 Express

    need it ASAP..thanx in advance
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    have you tried stepping through the program?

    you can see where the issue is then.

    as i'v never had an issue with

    <formname>.<tex tboxname>.Text before

    Comment

    Working...