Visual Basic .NET Forums    

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

VB.NET Forums Newsletter Signup:
Email address:


Windows Forms Discussion related to Winforms application development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2008, 3:30 PM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Question Inserting Date/Time into a Rich Text Editor?

How can I be able to insert the current date and time into a richtextbox when a button is pressed. Also How could I have a Date/Time Picker Dialog Box Show up when the user wants to select the custom display settings of the Date/Time Format.....

Any Help is Highly Appreciated! =D
__________________
MrWord is a free Word Processor I am working on. Here's a preview of it.
If you would like to help me out or know more about MrWord send a PM =D
Reply With Quote
  #2 (permalink)  
Old 10-05-2008, 12:12 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 7,894
Reputation: 819
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Quote:
insert the current date and time into a richtextbox
Code:
Me.RichTextBox1.SelectedText = Date.Now.ToString
Quote:
Dialog Box Show up when the user wants to select the custom display settings of the Date/Time Format.....
Add a new Dialog form to your project and arrange your UI for date/time format settings.
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )
Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ


DR. WEIR: Download it to a non-networked, firewalled computer.
TECHNICIAN: Yes, ma'am.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 3:13 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.