PC Review


Reply
Thread Tools Rate Thread

Custom Control Not Showing Preview during design time

 
 
Dipu
Guest
Posts: n/a
 
      20th Aug 2009
Hello,


I have created Gradient Button control by extending control class.

When i drag it on a form it is not showing any preview during design time.
I have downloaded image button control from Microsoft site. when we drag
that control on form it shows the preview during design time.

i have checked whole source code but still i am not about to make it possible.

Can any one help me in this matter.

i want to show preview of custom control on form during design time.
 
Reply With Quote
 
 
 
 
Peter Foot
Guest
Posts: n/a
 
      20th Aug 2009
You need to create an XMTA file for the control - this contains XML markup
to describe the control. See creating the Metadata Assembly in this
article:-
http://msdn.microsoft.com/en-us/library/aa446500.aspx

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility

"Dipu" <(E-Mail Removed)> wrote in message
news:682F9765-0FBD-4227-AE70-(E-Mail Removed)...
> Hello,
>
>
> I have created Gradient Button control by extending control class.
>
> When i drag it on a form it is not showing any preview during design time.
> I have downloaded image button control from Microsoft site. when we drag
> that control on form it shows the preview during design time.
>
> i have checked whole source code but still i am not about to make it
> possible.
>
> Can any one help me in this matter.
>
> i want to show preview of custom control on form during design time.


 
Reply With Quote
 
Mohammad Hasan
Guest
Posts: n/a
 
      25th Oct 2009

Dear Peter
im using the ImageButton provided by microsoft with some enhancement, when i use and dll it design of the button and images is disabled, can i solve this without creating the button as dll? can i create an xmta file without creating another project for the control?



Peter Foot wrote:

You need to create an XMTA file for the control - this contains XML markup to
20-Aug-09

You need to create an XMTA file for the control - this contains XML markup
to describe the control. See creating the Metadata Assembly in this
article:-
http://msdn.microsoft.com/en-us/library/aa446500.aspx

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility

Previous Posts In This Thread:

On Thursday, August 20, 2009 7:43 AM
Dipu wrote:

Custom Control Not Showing Preview during design time
Hello,


I have created Gradient Button control by extending control class.

When i drag it on a form it is not showing any preview during design time.
I have downloaded image button control from Microsoft site. when we drag
that control on form it shows the preview during design time.

i have checked whole source code but still i am not about to make it possible.

Can any one help me in this matter.

i want to show preview of custom control on form during design time.

On Thursday, August 20, 2009 4:00 PM
Peter Foot wrote:

You need to create an XMTA file for the control - this contains XML markup to
You need to create an XMTA file for the control - this contains XML markup
to describe the control. See creating the Metadata Assembly in this
article:-
http://msdn.microsoft.com/en-us/library/aa446500.aspx

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility

EggHeadCafe - Software Developer Portal of Choice
CRM 4.0 Backup instruction
http://www.eggheadcafe.com/tutorials...nstructio.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Custom Control Design Time DataBindings Ron Microsoft C# .NET 0 10th Mar 2008 08:41 PM
update custom control during Design time --== Alain ==-- Microsoft C# .NET 1 17th Feb 2007 12:15 PM
Custom Control - Design Time Support =?Utf-8?B?U2ltb24=?= Microsoft ASP .NET 0 24th Jan 2007 09:51 PM
Custom Control's Properties in Design Time Dan Hargrove Microsoft Dot NET Framework Forms 0 7th Nov 2003 04:00 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com Microsoft ASP .NET 0 1st Jul 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:55 AM.