I have litle problem. I create user control class and add in html page. And have add button. When i click this button must call method. But nothing happens.
Its my user class:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsFormsControlLibrary1
{
[Guid("4DC1846A-197B-48fe-880A-AB59DB5C1226")]
[ComVisible(true)]
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
public void SendMessage(string msg)
{
lbl_message.Text = msg;
}
}
}
and add in html page my control:
Windows Form Control:
height="100"; width="300">
Why not work method SendMessageToWinControl()?
Thank you
Mike JonsonPosted Aug 1, 2011, 4:38 AM
Mike JonsonPosted Aug 1, 2011, 4:33 AM
height="100" width="300">
without not possible.Its right code
Its example: http://www.cnblogs.com/zgff008/archive/2008/10/28/1321357.html
Benjamin KemnerPosted Aug 1, 2011, 4:33 AM
height="100" width="300">
Benjamin KemnerPosted Aug 1, 2011, 4:28 AM
height="100" width="300">