Urgent for the expert in VB.NET 2003
I have achallenging task for any expert in VB.NET 2003
The task is inserting a line consists of the current
system date (always a today's date) in British format not English format
and an ownership copyright statement. In the part of copyright
statement, the symbol for copyright "(c)" by using Visual Studio .NET
2003 where that should display in the form at the loading means when you start the form.
this task is WORTH 20%
I believe this is what you are looking for...
This program displays the current data (in what I believe is the British format - day.month.year), then a copyright symbol, and finally the name of the company holding the copyright in a messagebox that is displayed when the program is first started.
Here it is:
Copy, paste, compile, and run.
Public Class MainForm
Private output As String = ""
Public Shared Sub Main
Dim fMainForm As New MainForm
Public Sub New()
' The Me.InitializeComponent call is required for Windows Forms designer support.
Catch exc As Exception
' TODO : Add constructor code after InitializeComponents
Private Sub CreateCopyright()
Dim s As String = ""
Dim dt As DateTime = DateTime.Now
Dim mth As Integer = dt.Month
Dim dy As Integer = dt.Day
Dim yr As Integer = dt.Year
s &= CStr(dy) + "." + CStr(mth) + "." + CStr(yr) + " "
s &= Convert.ToChar(169).ToString()
s &= " Copyright Company Name"
output = s
Private Sub DisplayCopyright()
MessageBox.Show(output, "Date time message", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1)
#Region " Windows Forms Designer generated code "
' This method is required for Windows Forms designer support.
' Do not change the method contents inside the source code editor. The Forms designer might
' not be able to load this method if it was changed manually.
Private Sub InitializeComponent()
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 266)
Me.Name = "MainForm"
Me.Text = "MainForm"
Please let me know if this helps or if it needs something else...
Last Post: 08-27-2003, 11:11 AM
By Patrick Troughton in forum .NET
Last Post: 02-23-2003, 07:22 PM
By Tom Shelton in forum .NET
Last Post: 11-08-2002, 07:23 AM
Last Post: 06-01-2001, 08:27 AM
By Bill McCarthy in forum .NET
Last Post: 04-10-2001, 06:03 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL