Pass form2 button click "date time" to a text box on form 1 that is within a user con

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Warren16002
    New Member
    • May 2014
    • 1

    #1

    Pass form2 button click "date time" to a text box on form 1 that is within a user con

    I have tried so many different ways to do this.
    I am using vb I'm a newbie but resourceful, this has to have been answered elsewhere but I wasn't able to it.

    Basically I have. A button on form2 when clicked I need it to date stamp a text box that is in a user control " user control being a child form on form1 there are 7 total that are called and removed as the ap is used" mainformname.us ercontrolname.t extboxname.text = date time now
    It refuses to allow it
    But if I put that text box directly on the main form
    Mainformname.te xtboxname.text = date time now it works perfectly fine

    How do I point to the text box that is on a user control
    I tried usercontrolname .textbox.text with no luck.
    Last edited by Warren16002; May 8 '14, 06:03 AM. Reason: Added info
  • Robin25
    New Member
    • Apr 2014
    • 22

    #2
    Try to post your code

    Comment

    Working...