TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satheesh babu
NA
128
312.2k
How to use visual basic 6.0 active x control in my asp.net 2.0 web form?
Jul 1 2009 6:30 AM
Hi all,
Here i am working on a website with asp.net 2.0 and here i need to integrate access card machine with my website. so for this i have visual basic 6.0 activeX control in the form of dll for using methods and events to speak with acces card machine.
Now my query is how to use that dll in my web form and then how to use those methods and events of that activeX control.
I did some thing in c#.net.
1.I registered that dll in my computer using regsvr32.
2.I added reference in my solution explorer.
3.I wrote name spaces for that dll.
4.I created an object to that dll ,below is the code
using zkemkeeper;
namespace AccessCard
{
public partial class Form1 : Form
{
int vMachineNumber = 1;
CZKEM kem1 = new CZKEM();
public Form1()
{
InitializeComponent();
}
private void btnRestart_Click(object sender, EventArgs e)
{
long crdno;
if (kem1.Connect_Net("192.168.1.201", 4370))
{
MessageBox.Show("device connected");
}
else
{
MessageBox.Show("NO device connected");
}
kem1.RestartDevice(vMachineNumber);//to restart the device
}
upto this i am executing fine.
but i want access the events of that activeX control also.
How can i achieve this....
Please help me out...
its very important to me....
Reply
Answers (
0
)
multiview in loginview
how to implement a Rich text area which works like word document in WPF