Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > adding a custom vb.net winform control in asp.net

Reply
Thread Tools

adding a custom vb.net winform control in asp.net

 
 
ElCapitan
Guest
Posts: n/a
 
      03-14-2006
greetings all,

I am new to adding controls to a webpage, i have created a control in
vb.net and build the solution, I then took the dll file and stuck it in
the root directory of the home page. I added this object tag to the
body of the page

<object id="simpleControl1"
classid="http:WindowsControlLibrary1.dll#Microsoft .Samples.WinForms.Cs.UserControl1.UserControl1"
height="300" width="300" VIEWASTEXT><param name="Text" value="Simple
Control">
</object>

also tried using WindowsControlLibrary1.dll instead of http:...

When I load the page I get a box with those little shapes on the upper
left hand corner (like a little triangle, circle and a box) almost as
if there is supposed to be an image that was not loaded there.

I downloaded an example in c# and it worked so I am not sure if the
security settings are my problem, I added localhost to my trusted
sites.

Please let me know if anyone can help me with this, thanks.

 
Reply With Quote
 
 
 
 
ElCapitan
Guest
Posts: n/a
 
      03-14-2006
nevermind, you need to use a webform control and not a winform control,
that was dumb.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WinForm control to WebForm control cherylwpy@gmail.com ASP .Net 2 01-15-2007 12:09 PM
WinForm as ASP.NET custom control benc ASP .Net Web Controls 2 07-11-2005 07:20 PM
Using WinForm Controls in WebForms (Grid Control) Sunil Menon ASP .Net 4 10-22-2003 08:43 PM
How to Debug a .NET WinForm Control Embeded in Web Pages? Lei Jiang ASP .Net 0 08-22-2003 03:17 AM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57