Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Put Visual classes (.ascx) on another form at design ti
Mensaje
De
13/11/2006 14:01:53
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
a
13/11/2006 13:09:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Foro:
ASP.NET
Category:
Class design
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
ID de la conversación:
01169229
ID del mensaje:
01169257
Views:
10
>>Hi all,
>>
>>As a VFP developer, we're blessed to have visual design of classes and then drop a copy on any other form (or container for that matter), and have the full visual presentation on that new form (or container).
>>
>>I have a simple class (ex: MyTextbox as if derived from a textbox or label control) with minor adjustments for testing.
>>
>>When I drag this control onto a web form, all I get is a simple block that looks like a button control and given the label of its base... ie: MyTextbox1
>>
>>How do I get .net to show me the visual designer of the class as I have it on my webform. I can't even move it to an absolute position on the form, it always appears relative to another control.
>>
>>At run-time, the proper control shows and functions as I would otherwise expect.
>>
>>Thanks
>
>For absolute position you should be in absolute positioning (default is flow layout-which is the recommended one, formerly it was absolute as I remember).
>Cetin

Don,

The answer to your first question is that this is the nature of a WebUserControl (ascx). If you want to see the fully rendered control in the designer, you must create a CustomControl. Unfortunately, there is no designer for a custom control so it has to be done purely in code.

This may be a daunting task if you have recently arrived from the VFP world. It may be best to stick with the WebUserControl until you have absorbed a good amount of the inner workings of ASP.NET.
Previous
Next
Responder
Mapa
Ver

Click here to load this message in the networking platform