VideoCurso 25 VB.NET -Formularios Prediseñados


En este video curso aprenderemos a usar los formularios prediseñados que trae visual studio por defecto , con esto podremos diseñar de una manera mas rapida formularios como :
acerca de , version de nuestro programa , entre otros .







CODIGO FUENTE


ACERCA DE FORMULARIO:



Public NotInheritable Class AboutBox1

Private Sub AboutBox1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Set the title of the form.
Dim ApplicationTitle As String
If My.Application.Info.Title <> "" Then
ApplicationTitle = My.Application.Info.Title
Else
ApplicationTitle = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
End If
Me.Text = String.Format("About {0}", ApplicationTitle)
' Initialize all of the text displayed on the About Box.
' TODO: Customize the application's assembly information in the "Application" pane of the project
' properties dialog (under the "Project" menu).
Me.LabelProductName.Text = My.Application.Info.ProductName
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)
Me.LabelCopyright.Text = My.Application.Info.Copyright
Me.LabelCompanyName.Text = My.Application.Info.CompanyName
Me.TextBoxDescription.Text = My.Application.Info.Description
End Sub

Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
Me.Close()
End Sub

End Class


1 comentario :

  1. Amigo, una consulta pequeña.. Estos dos formularios se encuentran tambien disponible en Visual Studio 2008? a primera vista no los pude encontrar allí.. O solo estos estan disponibles en una version mas Reciente de Visual?

    ResponderEliminar

Seguidores