473,666 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Therefore how I refresh properties views in VS programmaticall y(VS= Visual Studio)


Hi,
I try to write a Web Custom Control. But I have a little problem for
refreshing the properties view of my Web Control in Visual Studio ().

When I modify the value of text property of my Control by programing, it
changes in the Design view but no in properties viewAnd when in the
design view, I lost the focus and I click above my control. It is
refreshed and text property contains the good value.

Therefore how I refresh properties views programmaticall y
In fact I look for a method similar to
ControlDesigner .UpdateDesignTi meHtml() for properties view in VS.
Thank you in advance for your help.


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
1 1924
Hi Laurent,

Frankly I haven't written web controls but in WindowsForms controls (and I
believe it goes for web too) in order to play nicely with the designer you
should notify for any the changes of the control in order property browser
to be refreshed accordingly and Undo/Redo to work. You can do that in two
ways.

1. When you change a property you should call IComponentChang eService's
OnComponentChan ging and OnComponentChan ged.

-or-

2. (This is what I sugges) to change the propties not directly, but via
PorpertyDescrip tor obtained from components TypeDescriptor. This will take
kare of all notifications for you.

--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Laurent Liegeois" <ll*@lli.be> wrote in message
news:O$******** ******@TK2MSFTN GP10.phx.gbl...

Hi,
I try to write a Web Custom Control. But I have a little problem for
refreshing the properties view of my Web Control in Visual Studio ().

When I modify the value of text property of my Control by programing, it
changes in the Design view but no in properties viewAnd when in the
design view, I lost the focus and I click above my control. It is
refreshed and text property contains the good value.

Therefore how I refresh properties views programmaticall y
In fact I look for a method similar to
ControlDesigner .UpdateDesignTi meHtml() for properties view in VS.
Thank you in advance for your help.


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

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

Similar topics

8
15228
by: Mike N. | last post by:
Hello: I am new to T-SQL programing, and relativly new to SQL statements in general, although I have a good understanding of database theory. I'm a little confused as to the fundamental differences between a view and a query, or rather, when it is more appropriate to use one vs. the other. It seems to me that most select queries can be implemented as views, and I can't see the downside to doing so.
2
7342
by: Avirneni | last post by:
With my understanding of indexed views and according to books I read "indexed views" are supposed to perform much better than "temp tables" (temp table having primary key and indexed view with clustered index on the same keys). But when I tried in my system I am getting opposite results. With Indexed Views it takes 3 times more time. Any body has any reasons for that? Or my understanding was wrong?
0
903
by: clintonG | last post by:
I'm switching style sheets and the designer wants to maintain state at design-time so I'm not seeing the results of new styles displayed by the designer. Is there any way to refresh what is being displayed in the designer? -- <%= Clinton Gallagher, "Twice the Results -- Half the Cost" Architectural & e-Business Consulting -- Software Development NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
3
3706
by: R Reyes | last post by:
Just wondering if anyone knows the pros/cons between creating a database programmatically vs using the application's tool windows/features that come with SQLServer, Access, Oracle, etc... Is it the same? Does it really matter? I have created databases with .NET programmatically and it works fine, but why would anyone want to do all this typing when they can easily point and click inside the program? It took a few hours of typing for...
13
3133
by: Patrick * | last post by:
Reading a book on .ASP .NET I am getting a bit mixed up as to the difference between "property" and "attribute" as the terms don't seem to be used consistently in the book I am reading. Can anyone give two good definitions? Both with respect to controls.
9
1699
by: keithv | last post by:
I'm looking at a bunch of code which has lots of class fields converted into properties with just the simplest code: private int empID; public int empID { get { return empID; } set { empID = value; } } My question is, isn't this useless and inefficient?
4
1113
by: billy | last post by:
So let's say I start out with a new project (C++, CLR, Windows Form App). Then go right to Add Class | User Control and name it Foo. Then I add this code: public: int _propertyTest;
12
3023
by: Dennis | last post by:
I am very clear on Properties and Methods and I think I understand Fields but not sure about this. Do I have the items marked properly in the below class? Any clarification would be appreciated. Thanks. Public Class MyClass 'This is a field Public myfield as string 'This is a property
28
72459
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and 2005 Test Environments. What is the purpose of a view if I can just copy the vode from a view and put it into a stored procedure? Should I be accessing views from stored procedures?
0
8440
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
8352
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
8780
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...
0
8636
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...
1
6189
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...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1763
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.