Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Get the value of textbox100, but the textbox100 is in Form2.
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Joao Rafael
12y
1.6k
1
Reply
I want to hide a button when the DateTime.Now = a input date by user. The textbox100 is in the Form2 and is already public, but i know something is missing. Need some help please. Thank you.
public void Form1_Load(object sender, EventArgs e)
{
var dateTimeStr = textbox100.Text;
var user_time = DateTime.Parse(dateTimeStr);
var time_now = DateTime.Now;
if (time_now >= user_time)
{
button1.Visible = false;
}
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Converting database tables using threading
I have a Listview named "listview1". I am displaying students name in the list view. I got collecti...