cs_schummi
Messages postés2Date d'inscriptionjeudi 5 juin 2003StatutMembreDernière intervention11 février 2008
-
11 févr. 2008 à 11:28
cs_schummi
Messages postés2Date d'inscriptionjeudi 5 juin 2003StatutMembreDernière intervention11 février 2008
-
11 févr. 2008 à 14:51
Bonjour,
Je suis débutant sous VB.net
j'ai crée une dll très simple contenant un textbox. Je souhaite passer des paramètres de l'html vers mon objet
Voici le code de la dll crée avec VB.net
Namespace ActiveXDotNet
Public Interface AxMyControl
Property UserText() As String
End Interface 'AxMyControl
Public Class myControl
Inherits System.Windows.Forms.UserControl
Private mStr_UserText As [String]
Friend WithEvents txtUserText As System.Windows.Forms.TextBox
Public Property UserText() As String
Get
Return mStr_UserText
End Get
Set(ByVal Value As String)
mStr_UserText = Value
'Update the text box control value also.
txtUserText.Text = Value
End Set
End Property
Private Sub InitializeComponent()
Me.txtUserText = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'txtUserText
'
Me.txtUserText.Location = New System.Drawing.Point(191, 14)
Me.txtUserText.Name = "txtUserText"
Me.txtUserText.Size = New System.Drawing.Size(242, 20)
Me.txtUserText.TabIndex = 0
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(3, 14)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(69, 13)
Me.Label1.TabIndex = 1
Me.Label1.Text = "Veuillez saisir"
'
'myControl
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.txtUserText)
Me.Name = "myControl"
Me.Size = New System.Drawing.Size(446, 47)
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents Label1 As System.Windows.Forms.Label
End Class 'myControl
End Namespace
J'y accède en tapant l'url http://127.0.0.1/ocx/test.html et je ne comprend pas pourquoi la page ne charge pas l'objet. Comme serveur web j'utilise EasyPhp 1.7 mais je pense que celà n'a rien à voir car je ne fais que lancer du HTML.
Comment utiliser dans HTML un objet que l'on aurait préalablement créé depuis VB.NET ?