Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Simple question concerning proper reference of one object within a sub within a module

$
0
0

OK, simple problem. What is the proper code to reference a textbox on a form from a subroutine within a module in VB 2012? And can you point to a MSDN reference to explain proper coding format.

Thanks.

MODULE1

  Sub PrintToTextBox(...)                                                  -----------------------------------

  ..........                                                                            |  Form1                                       |

  textbox1.AppendText("Hello world!")         ----------->| [textbox1]                                |

  ...........                                                                            |                                                  | 

  Return                                                                             ----------------------------------

  End Sub

End Module






Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>