Visual Basic.NET - controles personalizados

 
Vista:

controles personalizados

Publicado por cesar (1 intervención) el 20/06/2006 18:25:13
hola a todos alguno de ustedes me puede ayudar?? lo q nesesito saver es como crear un control personalizado en .net, tengo la teoria pero no se como hacerlo o mejor dicho no lo logro hacer, les esplico lo q hago : 1.- creo un name space q contiene lo q quiero hacer:
Código:

''''''''''''''''''''''''''
' calendario modificado '
' '
' v 0.5 '
' '
' FormCalCesar '
' '
' '
'''''''''''''''''''''''''''

Option Explicit
Option Strict

Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls

Namespace FormCalCesar

Public Class CalendarioFormatiadoCesar:Inherits Calendar

Public Sub New()

Me.CellPadding = 8
Me.CellSpacing = 8
Me.Height = Unit.Pixel(250)
Me.Width = Unit.Pixel(300)
Me.BorderStyle = BorderStyle.Groove
Me.PrevMonthText = "<--"
Me.NextMonthText = "-->"
Me.ShowGridLines = True
Me.Font.Name = "verdana"
Me.Font.Size = FontUnit.XXSmall
Me.SelectedDate = Date.Today

End Sub

End Class

End Namespace

- lo muevo a la carpeta bin de mi formulario web y lo compilo con vbc
Código:

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705>vbc /t:library /out:FormCalCesar1 /
r:System.Web.dll /r:System.dll "c:\Inetpub\wwwroot\pruebaCesar1\3raParte\2doInte
nto\bin\FormCalCesar1.vb"

3.- en visual basic studio agrego la clase como elemento ya esxistente.
4.- lo agrego como referencia al elemento .dll q acabo de crear.
5.- agrego el elemento en las herramientas (general)
6.- pero al compilar (F5) me aparece el sgte herror :

Código:

Error de servidor en la aplicación '/pruebaCesar1/3raParte/CuartoIntento'. -------------------------------------------------------------------------------- Error del analizador Descripción: Error durante el análisis de un recurso requerido para dar servicio a esta solicitud. Revise los detalles de error de análisis específicos siguientes y modifique el código fuente en consecuencia. Mensaje de error del analizador: No se encuentra el archivo o el nombre del ensamblado CesarFormCal o una de sus dependencias. Error de código fuente: Línea 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="CuartoIntento.WebForm1"%> Línea 2: <%@ Register TagPrefix="cc1" Namespace="CesarFormCal" Assembly="CesarFormCal" %> Línea 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Línea 4: <HTML> Archivo de origen: c:\inetpub\wwwroot\pruebaCesar1\3raParte\CuartoIntento\WebForm1.aspx Línea: 2 Rastro al cargar el ensamblado: La información siguiente puede ser útil para determinar porqué no se cargó el ensamblado 'CesarFormCal'. === Pre-bind state information === LOG: DisplayName = CesarFormCal (Partial) LOG: Appbase = file:///c:/inetpub/wwwroot/pruebaCesar1/3raParte/CuartoIntento LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Post-policy reference: CesarFormCal LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pruebacesar1_3raparte_cuartointento/45654e8f/7c8bcf67/CesarFormCal.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pruebacesar1_3raparte_cuartointento/45654e8f/7c8bcf67/CesarFormCal/CesarFormCal.DLL. LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/pruebaCesar1/3raParte/CuartoIntento/bin/CesarFormCal.DLL. LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/pruebaCesar1/3raParte/CuartoIntento/bin/CesarFormCal/CesarFormCal.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pruebacesar1_3raparte_cuartointento/45654e8f/7c8bcf67/CesarFormCal.EXE. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/pruebacesar1_3raparte_cuartointento/45654e8f/7c8bcf67/CesarFormCal/CesarFormCal.EXE. LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/pruebaCesar1/3raParte/CuartoIntento/bin/CesarFormCal.EXE. LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/pruebaCesar1/3raParte/CuartoIntento/bin/CesarFormCal/CesarFormCal.EXE. -------------------------------------------------------------------------------- Información de versión: Versión de Microsoft .NET Framework:1.1.4322.573; Versión de ASP.NET:1.1.4322.573


ahora si q no se q pasa .

SL2

si no se entiende muy bien aca se ve mejor : http://www.forosdelweb.com/showthread.php?s=a5b495ab9776a8e417064c3fcb810ee4&t=403111
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder