473,692 Members | 2,149 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting a Common Control to refresh

I am having some trouble getting my common compenent to be able to refresh
and I am hoping someone will be able to tell me what I am missing. To simply
things I have created a solution with a class inherting a textbox and I have
added a property called buttontype. When I set the button type it changes
some properties of the textbox like the textproperty. When I set it to
ButtonType.Add the text on the button switches to say "Add".

I then have another solution with a refrence to the above dll and when I add
my control on and set my button type it switches the text. If I change my
original solution to change the text to "Add 2" when the button type is set
to Add, my second solution will not pick it up till I go and change the
button type property to something else and then back again. If I look at the
Windows generated code for my second solution, I see a line for setting the
button type and a line that is setting the text property as well. I am
thinking is causing me my problem. If I comment out the line that changes
the text and run the application it will pick up whatever changes I make in
my oringal solution. How do I get .NET to stop putting the line that
switches the text in the windows generated code when I am designing my form
or once I make a change to my original dll how do I get my second solution to
pick that up.

Jul 21 '05 #1
0 1171

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

Similar topics

by: Drifter | last post by:
Using HTTP_REFERER I cannot capture the URL when the link is made via a button: <input type="button" name="Continue" value="Continue Shopping" onclick="ContinueShopping('http://mysite/supertest.asp');"> I do not control the script above, it is on an e-commerce site that is very generic, meant for many users - and is generated by their server code. I want to capture the URL and with an if/then redirect if the last place visited was the...
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
by: RL Stevenson | last post by:
Often I want to change the Enable or Visibility on a control when some other control on the form changes. Or maybe I need to make a change to the DataSource on a combo box when the user makes a selection elsewhere on the form. In Visual FoxPro, you would call Refresh on the form causing Refresh to be called on all the controls on the form, causing the Refresh event code to be called and allowing the controls to update themselves to the...
by: Peter Oliphant | last post by:
I now have graphics being drawn in the Paint event of my form (yeah, and it's very cool). Problem was that it only updated any changes to these graphics when Paint was called. So, I then made it so the Refresh() method of the form was called for each graphic object. In this case it drew just fine, but Paint was being called so often I lost control of the form (e.g., trying to close the form using the close 'x' in upper right corner...
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the header. To keep this total in sync, I count the items in the cart and refresh the label text in the load event of my header control. This all works well, except for one scenario. When the user is on the "Show Cart" page, they can delete items from...
by: Curtis | last post by:
I am having some trouble getting my common compenent to be able to refresh and I am hoping someone will be able to tell me what I am missing. To simply things I have created a solution with a class inherting a textbox and I have added a property called buttontype. When I set the button type it changes some properties of the textbox like the textproperty. When I set it to ButtonType.Add the text on the button switches to say "Add". I...
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a property based on CollectionBase class. like the following one : //------- XGrid.cs file --------------// public ColumnsCollection Columns {
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category order, Input field and a submit button. The Category name is being fetched from the oracle db along with the corresponding Category order. In the corresponding input field (text box) the user enters a new category order which gets stored in...
by: Andrew Cooper | last post by:
Greetings, I've got a website that has several pages with DataGrid controls on them. The controls are bound to Object Datasources. On one of the pages I keep getting a "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." error. The data is being filled from a Stored Procedure on an SQL Server. When I run the Stored Procedure on the actual server, it is only taking 24...
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...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
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,...
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...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.