473,598 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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.
May 8 '14 #1
1 1142
Robin25
22 New Member
Try to post your code
May 13 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
693
by: Cary Linkfield | last post by:
I have a standard form I use. It inherits from Windows.Forms.Form. I usually add a Cancel button the form in the designer. I want to raise the Cancel button's Click event when the user presses the escape key. Public Class myStandardForm Inherits Windows.Forms.Form Private WithEvents _btnCancel As Button Private Sub _Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
6
9215
by: Saso Zagoranski | last post by:
Hi! I have a question regarding Windows Forms... Let's say I have two forms... MainForm and FormTwo... is it possible, when I open FormTwo from MainForm, to display FormTwo inside MainForm instead of in it's own window? Thanks, Saso
1
10185
by: sachin | last post by:
How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size
7
1727
by: Jon | last post by:
I am having a brain drought here. I used to code in VB until about 3 years ago. I guess it's not quite like a bicycle because man i feel dumb :) Here, quickly, is what i am trying to accomplish... One way or another i need a form to appear inside another form when clicking a command button. Example... I have a Form - we'll call it Form1 - we'll say it has a
3
21083
by: GauravGupta | last post by:
i want to know that is it posible to call button click event before page load event on post back.... please help me....
5
2113
by: =?Utf-8?B?Umljaw==?= | last post by:
I have a form FormA with a button Button1; I use SetParent(FormB.Handle, this.Handle) to load FormB inside FormA. FormB also has a button Button1 which displays a messagebox. When Button1 is clicked on FormA; i would like the Button2 click event on FormB to be fired up and display the messagebox. How do I do it? will appreciate some sample code.
1
2689
by: ChiLurker | last post by:
I want to have the browser to be directed to a certain url upon button click with the text inserted into the textbox place into the url, and I'm stumped. for example- http://www.google.com/#hl=en&source=hp&q=(Variable text here)&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=3318d71742fc0392 No this isn't what I'm trying to do, but it gets the idea through.
0
1099
by: indona | last post by:
hi....i have a form on which i have a button, on button click another form opens. now i want to add a grid view control to the second form which opens on button click. the code is like this: private void button2_Click(object sender, EventArgs e) { Form form2= new Form(); form2.Show(); }
1
2715
by: snehasismishra1 | last post by:
Hi, I have two forms. Let say, form1 and form2. in form1 class, i have method ChangeColor() and i am calling this method in button click event of form2. But it is not changing the color of form2. Please find the below code: Below code is for form1, where on click of Button1, form2 is opening. public partial class Form1 : Form { public Form1()
3
5212
by: Celal | last post by:
Hello, I'm still using Access 2003 as I find it more "developer friendly" than "user friendly". I really didn't use openargs much, only to pass variables but not to do an action. Now I have a question: I have a listbox on a form which passes the value to the subform (dont ask me why I use listbox instead of comdo). I have a command button to add a list box item if it is not in the list. The list box is bound to a table, and the button...
0
7981
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7894
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8284
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6711
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
1245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.