473,805 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1394
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
4446
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? Yuri
3
1560
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 make my site Google-friendly. The site dynamically adopts the correct master pages and themes according to a host header-based query in SQL 2005 and via a custom sqlsitemapdatasource automagically configures a breadcrumb and menus, all of which...
0
982
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 that inserts a relative stylesheet reference, which is no good if my client thinks everything is coming from the original URL, not the rewritten one. Anybody got any clues?
0
1496
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 approach is more appropriate. This program consists of multiple PHP pages that include a common.php file. My motivation is to make making themes easier, so we can get more theme contributors! Themes consist of image files, a css file and a PHP...
6
1976
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 do this is because of this bug in MFC http://support.microsoft.com/?kbid=319740, which is used to build a component I am in turn making use of. So, I need to detect if Themes are running and if so, see if the correct version of uxtheme.dll is...
4
1688
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 which now work just fine with all my themes on my development machine but on my production server my non-standard themes are showing effects that are no longer in place even with a complete re-copy of my project. Problems like this with...
6
2496
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. Per microsoft "Only one theme can be applied to each page. You cannot apply multiple themes to a page, unlike style sheets where multiple style sheets can be applied."
3
2573
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
1103
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 ASP.NET v1.1 and ASP.NET 2.0. In this new version of our product, we are supporting full ASP.NET Themes. However, in our testing we noticed the well-known requirement that to use ASP.NET Themes, your pages must have head runat=server tag. This...
1
1619
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. How can I accomplish this "making them available" without having the themes all automatically applied to each Web site? I understand that I can create "global themes" by placing the theme folders in...
0
9718
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10369
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.