473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Themes do not work with customer-controls in VS-Designer

Hello,

as example I have a simple customerCtrl

class MyCtrl : WebControl
{

//one own color-property

public Color MyBkColor
{
......
}

here rendering to see the bkcolor

}

Now if I set the property MyBkColor I also see in the VSDesigner that the
conntrol has this back-color.

If I now put the control in a skin-file and make the control 3 times in a
page without MyBkColor set
and
set in the page the StyleSheetTheme = .... the theme where the
custom-control theme is,
the following happens:

If I start the page, all 3 controls have the back-color, so I see that the
themes work for the control

If I now open the page in the designer the themes do not work, no back-color
from the themes in the control
If I for example take a TextBox and do the same all works fine also in
designer.

So, the designer of VS does not recognize the themes of the own control
This is very bad because every own custom control is useless if themes does
not work in the designer.

So is there anything to do (to write code in the control) so that this
works?
Thank you for any help.
Rolf Welskes
Oct 5 '06 #1
3 1368
Hello,

Have you done anything for design time property?

This may help you just check it out.
http://www.codeproject.com/useritems...ntegration.asp

bhawin13

Rolf Welskes wrote:
Hello,

as example I have a simple customerCtrl

class MyCtrl : WebControl
{

//one own color-property

public Color MyBkColor
{
......
}

here rendering to see the bkcolor

}

Now if I set the property MyBkColor I also see in the VSDesigner that the
conntrol has this back-color.

If I now put the control in a skin-file and make the control 3 times in a
page without MyBkColor set
and
set in the page the StyleSheetTheme = .... the theme where the
custom-control theme is,
the following happens:

If I start the page, all 3 controls have the back-color, so I see that the
themes work for the control

If I now open the page in the designer the themes do not work, no back-color
from the themes in the control
If I for example take a TextBox and do the same all works fine also in
designer.

So, the designer of VS does not recognize the themes of the own control
This is very bad because every own custom control is useless if themes does
not work in the designer.

So is there anything to do (to write code in the control) so that this
works?
Thank you for any help.
Rolf Welskes
Oct 5 '06 #2
Hi Rolf,

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 5 '06 #3
Hi Rolf,

I've been able to reproduce the issue you described. Unfortunately I didn't
found any workaround for it after done some research and consulting.

I'm afraid you'll have to submit your feedback at
http://connect.microsoft.com/Main/co...ContentID=2220 or
contact PSS for further assistance.

For PSS support or a local on site, you can also try contacting the global
support center through the following link:

http://support.microsoft.com/gp/assistsupport

They will provide you the detailed info on how to contact the local
developer support center.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: yuri | last post by:
Hi all At coding XP Themes i can't get "GetThemeColor" to work. It always fails ("not found" err. code) regardless of which control parts and states entered. Could somebody help me with advice?...
3
by: Graham | last post by:
I have a problem that I can see the reason for but cannot figure out a solution. I am using a simple URL rewriter to map www.me.com/1/2/3/4/product.aspx to www.me.com/product?filter=1/2/3/4 to...
0
by: Graham | last post by:
Hi I posted this q last week, Stefano had an answer but unfortunately it would only work if I was specifying the stylesheet reference directly; in this case it is the ASP.NET 2 theme process...
0
by: Full Decent | last post by:
Hey again! In my quest to make proper use of OO PHP I would like to ask for a critique of the current method of doing themes in the Camera Life (http://fdcl.sf.net) software and see if an OO...
6
by: Fred Hedges | last post by:
Using .NET 1.1, I need to be able to detect if Themes are enabled or disabled, not for a specific application, but for the system as a whole (ie. the current user). The reason I need to be able to...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
6
by: Clinton Farleigh | last post by:
Hi, I was going to ask a question, but I think I've answered it so now I am going to rant about how crappy ASP.NET themes are instead. As I've indicated above, my problem today is with themes....
3
by: WT | last post by:
Hello, I need to list all available themes for a .NET app, is there any API in ..NET2 for this or should I explore the folder files using IO methods ? Thanks for indication CS
0
by: =?Utf-8?B?Q2hyaXN0b3BoZXI=?= | last post by:
We have a web product built on ASP.NET v2.0 which we are preparing a release on ASP.NET v3.5 Many of our customers have added custom pages inside our product (which we call Modules) built on...
1
by: Cramer | last post by:
Using 3.5: Suppose I have defined 20+ themes (including multiple graphics, ..skin files, and css files per theme), and I want to make those themes *available* to all the Web sites on my Web server....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.