Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/06/2006, 11:26
skanut
 
Fecha de Ingreso: junio-2006
Ubicación: chile
Mensajes: 10
Antigüedad: 18 años, 9 meses
Puntos: 0
controles personalizados

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
2.- 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.- al intentar agregar una referencia al elemento .dll q acabo de crear... no me aparece por lo q lo agrego como Proyecto
5.- pero al agregar elemento en las herramientas (general) no me aparece mi nuevo calendario... me pueden ayudar ?¿?¿?¿?¿?¿? que estoy haciendo mal ?¿?¿?¿?¿?¿

SL2