473,790 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IsMirrored property - what is this?

dgk
I'm searching for a way to determine if control values have changed.
For some it's easy, such as TextBox.Modifie d. But looking at the
radiobutton I come across IsMirrored. Curious, I look to the help. Not
very helpful. So I look to the newsgroup. Not mentioned. So now I ask.
What does the IsMirrored property tell me?
Nov 23 '05 #1
10 4170
dgk,
Using the Index in Help for IsMirrored, leads you to:

http://msdn2.microsoft.com/en-us/lib...smirrored.aspx

Which isn't that helpful, however searching Google for "mirrored controls",
leads you to:

http://msdn2.microsoft.com/en-us/lib...smirrored.aspx

Which I find significantly more helpful.

I would say in short "IsMirrored " tells you if the Control is mirrored (as
if you placed it on the edge of a mirror) Right to Left as opposed to the
normal Left to Right.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
<dg*@somewhere. com> wrote in message
news:af******** *************** *********@4ax.c om...
| I'm searching for a way to determine if control values have changed.
| For some it's easy, such as TextBox.Modifie d. But looking at the
| radiobutton I come across IsMirrored. Curious, I look to the help. Not
| very helpful. So I look to the newsgroup. Not mentioned. So now I ask.
| What does the IsMirrored property tell me?
Nov 23 '05 #2
Jay,
http://msdn2.microsoft.com/en-us/lib...smirrored.aspx

Which isn't that helpful, however searching Google for "mirrored controls",
leads you to:

http://msdn2.microsoft.com/en-us/lib...smirrored.aspx

Which I find significantly more helpful.

The second link looks a lot like the first one ;-)
Mattias
Nov 23 '05 #3
Jay,

I hate to tell this, however I had the same expirience as Mattias.

However expecting what your answer would be I found this link, which shows
it very nice.

http://www.microsoft.com/middleeast/msdn/mirror.aspx

:-)

Cor
Nov 23 '05 #4
Doh!

This is the link I meant:

http://www.microsoft.com/middleeast/msdn/mirror.aspx

(which oddly enough was the second link on the Google search page).

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
| Jay,
|
|
http://msdn2.microsoft.com/en-us/lib...smirrored.aspx | >
| >Which isn't that helpful, however searching Google for "mirrored
controls",
| >leads you to:
| >
|http://msdn2.microsoft.com/en-us/lib...smirrored.aspx

| >
| >Which I find significantly more helpful.
|
|
| The second link looks a lot like the first one ;-)
|
|
| Mattias
Nov 23 '05 #5
dgk
On Tue, 22 Nov 2005 09:49:50 -0600, "Jay B. Harlow [MVP - Outlook]"
<Ja************ @tsbradley.net> wrote:
Doh!

This is the link I meant:

http://www.microsoft.com/middleeast/msdn/mirror.aspx

(which oddly enough was the second link on the Google search page).


Oh, very good stuff. Not really applicable to what I was looking for
in the first place, but fun for a demo.
Nov 27 '05 #6
Dgk,
I was answering the "What does the IsMirrored property tell me?" question.

It appears that your "I'm searching for a way to determine if control values
have changed." question remains unanswered.

Are you asking for any property in general, or a specific property, such as
Text?

I normally handle the TextBox.TextCha nged event to determine when the Text
property changed. There are similarly named events for their respective
properties. SizeChanged event for the Size property, TabIndexChanged event
for the TabIndex property and so on. A lot of the properties/event pairs are
actually inherited from Control.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"dgk" <No*****@MailsA nonymous.com> wrote in message
news:63******** *************** *********@4ax.c om...
| On Tue, 22 Nov 2005 09:49:50 -0600, "Jay B. Harlow [MVP - Outlook]"
| <Ja************ @tsbradley.net> wrote:
|
| >Doh!
| >
| >This is the link I meant:
| >
| >http://www.microsoft.com/middleeast/msdn/mirror.aspx
| >
| >(which oddly enough was the second link on the Google search page).
|
| Oh, very good stuff. Not really applicable to what I was looking for
| in the first place, but fun for a demo.
Nov 28 '05 #7
dgk
On Mon, 28 Nov 2005 08:56:34 -0600, "Jay B. Harlow [MVP - Outlook]"
<Ja************ @tsbradley.net> wrote:
Dgk,
I was answering the "What does the IsMirrored property tell me?" question.

It appears that your "I'm searching for a way to determine if control values
have changed." question remains unanswered.

Are you asking for any property in general, or a specific property, such as
Text?

I normally handle the TextBox.TextCha nged event to determine when the Text
property changed. There are similarly named events for their respective
properties. SizeChanged event for the Size property, TabIndexChanged event
for the TabIndex property and so on. A lot of the properties/event pairs are
actually inherited from Control.

Essentially I'm trying to show a "Are you sure you want to discard
your changes" type dialog if someone hits the cancel button after
editing some data. I looked back in the newsgroup history and found a
few good ideas, such as adding handlers to radio buttons so that as
changes occur they set a boolean flag. I'm also recursively running
through the form and containers on the form looking for controls that
will tell me that they were edited.

I'm not doing overkill here. If someone changes a value and then
changes it back, that is still going to set the flag that something
changed. Sort of sloppy I know but I'm under some time pressure here.
Ha, who isn't?

All these values are coming out of an object and going back into that
object, so I suppose that I can do a copy of the object before editing
and then load everything into another object and compare. I'm pretty
sure that comparing the objects will just tell me whether the
variables are pointing to the same object.

I need to understand deep copy and shallow copy a bit better. Most of
the object is pretty straight forward but there are a few collections
in there. Actually they are generic lists. Do you know if a generic
list is duplicated by a shallow copy or do I do a deep copy to get
separate instances?

Very odd. I just tried it on my object and I don't seem to have Copy,
Clone, or anything like that. Oh, ok. I need to use memberwiseclone or
something like that but it's protected. Rats. So I guess I have to
implement my own code for this?

Ah. Well, I look forward to any hints. So much to learn, so little
time.
Nov 29 '05 #8
dgk,
| All these values are coming out of an object and going back into that
| object,
Oh! in the case where you have an "object" I would ask the object if any of
its values changed.

In my Property Set methods on my object I call a protected "SetDirty" method
that sets a boolean flag that indicates if the object is dirty. My "object"
then has a public readonly IsDirty property that the UI can use to decide if
its dirty or not. When an object is loaded or saved, the boolean flag is
cleared to indicate that the object itself is not dirty. Generally SetDirty,
IsDirty, and the boolean flag are part of a common base class.

| Essentially I'm trying to show a "Are you sure you want to discard
| your changes" type dialog if someone hits the cancel button after
....
| So I guess I have to
| implement my own code for this?
I would consider implementing a "Clone" method that returns a "copy" of the
current object, this method would use MemberwiseClone if a shallow copy was
acceptable, otherwise it would do a deep copy. Be careful on deep copies &
object hierarchies.

Alternatively I would consider having 2 fields for each property of my
"object", a current value & an original value. The "object" would have a
"Revert" method that would restore the current values to the "original"
values. When I load the object I would set both fields to the same value.
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"dgk" <No*****@MailsA nonymous.com> wrote in message
news:v2******** *************** *********@4ax.c om...
| On Mon, 28 Nov 2005 08:56:34 -0600, "Jay B. Harlow [MVP - Outlook]"
| <Ja************ @tsbradley.net> wrote:
|
| >Dgk,
| >I was answering the "What does the IsMirrored property tell me?"
question.
| >
| >It appears that your "I'm searching for a way to determine if control
values
| >have changed." question remains unanswered.
| >
| >Are you asking for any property in general, or a specific property, such
as
| >Text?
| >
| >I normally handle the TextBox.TextCha nged event to determine when the
Text
| >property changed. There are similarly named events for their respective
| >properties. SizeChanged event for the Size property, TabIndexChanged
event
| >for the TabIndex property and so on. A lot of the properties/event pairs
are
| >actually inherited from Control.
|
|
| Essentially I'm trying to show a "Are you sure you want to discard
| your changes" type dialog if someone hits the cancel button after
| editing some data. I looked back in the newsgroup history and found a
| few good ideas, such as adding handlers to radio buttons so that as
| changes occur they set a boolean flag. I'm also recursively running
| through the form and containers on the form looking for controls that
| will tell me that they were edited.
|
| I'm not doing overkill here. If someone changes a value and then
| changes it back, that is still going to set the flag that something
| changed. Sort of sloppy I know but I'm under some time pressure here.
| Ha, who isn't?
|
| All these values are coming out of an object and going back into that
| object, so I suppose that I can do a copy of the object before editing
| and then load everything into another object and compare. I'm pretty
| sure that comparing the objects will just tell me whether the
| variables are pointing to the same object.
|
| I need to understand deep copy and shallow copy a bit better. Most of
| the object is pretty straight forward but there are a few collections
| in there. Actually they are generic lists. Do you know if a generic
| list is duplicated by a shallow copy or do I do a deep copy to get
| separate instances?
|
| Very odd. I just tried it on my object and I don't seem to have Copy,
| Clone, or anything like that. Oh, ok. I need to use memberwiseclone or
| something like that but it's protected. Rats. So I guess I have to
| implement my own code for this?
|
| Ah. Well, I look forward to any hints. So much to learn, so little
| time.
Nov 29 '05 #9
dgk
On Mon, 28 Nov 2005 20:48:39 -0600, "Jay B. Harlow [MVP - Outlook]"
<Ja************ @tsbradley.net> wrote:
dgk,
| All these values are coming out of an object and going back into that
| object,
Oh! in the case where you have an "object" I would ask the object if any of
its values changed.

In my Property Set methods on my object I call a protected "SetDirty" method
that sets a boolean flag that indicates if the object is dirty. My "object"
then has a public readonly IsDirty property that the UI can use to decide if
its dirty or not. When an object is loaded or saved, the boolean flag is
cleared to indicate that the object itself is not dirty. Generally SetDirty,
IsDirty, and the boolean flag are part of a common base class.

| Essentially I'm trying to show a "Are you sure you want to discard
| your changes" type dialog if someone hits the cancel button after
...
| So I guess I have to
| implement my own code for this?
I would consider implementing a "Clone" method that returns a "copy" of the
current object, this method would use MemberwiseClone if a shallow copy was
acceptable, otherwise it would do a deep copy. Be careful on deep copies &
object hierarchies.

Alternativel y I would consider having 2 fields for each property of my
"object", a current value & an original value. The "object" would have a
"Revert" method that would restore the current values to the "original"
values. When I load the object I would set both fields to the same value.


But I'm planning on updating all the properties, whether they've
changed or not, which means that prior to calling SetDirty from each
property I should check to see if the Set is actually changing the
private value. Pain. I have a LOT of properties - hmm, this should
have been part of the Property snippet. Now I have to learn to edit
snippets.

Actually I already implemented something like this which I borrowed
from an example that I saw. It actually uses a DataRowState object to
track the changes which is neat because I can also store the fact that
it is new if that is the case.

Ok, here's another idea. Someone MUST have done this already. I write
a public method in the object that accepts another object instance as
a parameter and then uses reflection to determine all of its
properties and compares the output of the Get from each one to
determine if the objects are identical. Did I just duplicate some
functionality that already exists? I hate when I do that.
Nov 29 '05 #10

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

Similar topics

4
1604
by: D Witherspoon | last post by:
I have a Structure I have created and am using it as a Public Property of a class. Here is the property. ------------------------------------------------------ Dim _MyID As SInteger Public Property MyID() As SInteger Get
18
4764
by: Robin Becker | last post by:
Is there a way to override a data property in the instance? Do I need to create another class with the property changed? -- Robin Becker
3
2500
by: Johnny M | last post by:
using Access 2003 Pardon the subject line, but I don't have a better word for this strange behavior (or behavior I don't understand!!!) I have a class module named DepreciationFactor. One of the properties is a follows (irrelevant code omitted):
4
1271
by: funVB2005fun | last post by:
I am not quite sure what I am getting into but I would like to have a loop that read from a flat file to create some public properties in a class. I am going after this to try and create more general software that others could benefit from vs hardcoding things that relate only to my processes. example property that I would want to generate: The idea would be to read from a file that "AGE" is needed and that it is and Integer and then to...
3
1351
by: Meelis | last post by:
Hi Can one property have different types? For example, i need to property type to be dependend on second property. Pirvate MyValue as Object Private MyType as Integer Public Property PType() as Integer Get
0
1438
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties are set using Reflection a sample representation of it is given below
1
413
by: doubts | last post by:
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties are set using Reflection
5
17779
by: ronlahav | last post by:
Dear all i Wonder how can i edit a node property (in C# not by hand :) ) i have the follwing XMl file (hibernate.cfg.xml) <?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.0" > <session-factory name="NHibernate.Test"> <!-- properties -->
6
9161
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
0
9666
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
9512
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
10413
Oralloy
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...
0
10200
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
9986
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
9021
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
7530
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
5422
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
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.