property

VS 2008, is there a way to search properties like the old vb6/EVB? CTRL+SHIFT?

I really miss the CTRL+SHIFT+CHAR searching of a property in VS 2008 that older IDE's had... typing CTRL+SHIFT+T got you to "tabindex" then Tag when pressed again. They dropped it in VS 2002 I believe, and the closest I could find to restoring any functionality like it was acorn's property window filter, which isn't exactly functional. ...

Having a problem with PHP property_exists()

Hey all... When I run the code below, the if(property_exists(get_class($puzzleCharacters_encrypted), $solutionCharacter) keeps evaluating to false, but the echo statements preceding that are showing the correct information, so the properties are definitely there. Anything I might be missing? (PHP Version 5.2.11) $puzzle_solution = $curr...

Can anyone recommend a property or real estate lettings/sales script or extension?

Hi, I've currently got a couple of potential property letting/sales agent web sites to do. I'm looking for a decent script or possibly Joomla extension to power the property search functionality. Can anyone recommend something they have used? ...

Can you abort a set procedure of a property

I am programming in C#.NET. It is possible to abort the set procedure of a class property without throwing an exception? Here is what I want to do... public int RandomProperty { set { DialogResult answer = new DialogResult(); answer = MessageBox.Show("This process could take up to 5 min. Are you sure you want to conti...

Is it possible create an output property to show endtime on custom activity properties when activity completed

when do the custom activity in .net 3.5, I tried to add a datetime property to show user when the activity completed, however as this property will be assigned value during workflow runtime, it cannot been show up the value to user, do you guys have any idea? ...

Add support for fields to databound controls

For example when using a gridview. When you specify the columns BoundField for example won't work if you are binding it to a field instead of a property. I guess this is so because when the gridview is looking for the DataField property it looks for a property and not a field. Now the question is how can i change this behavior to make ...

C# UserControl Visible Property

Hello, How can I override a UserControl Visible property ? Or how could I determine within a control when it changes its Visible state ? Later edit: I need it to work in .NET CF 3.5. Thanks. ...

Is it possible to access custom properties from QT Designer after converting to python?

Hi, I am new to PyQt and Qt Designer and I'm trying to create an easy method for relating qWidgets with the tables and columns in an SQLite database. My idea was to tag each qWidget in designer with two custom properties, one with the table name and one with the column name. Later, I would use the info provided by designer to build my o...

WCF chokes on properties with no "set ". Any workaround?

I have some class that I'm passing as a result of a service method, and that class has a get-only property: [DataContract] public class ErrorBase { [DataMember] public virtual string Message { get { return ""; } } } I'm getting an exception on service side: System.Runtime.Serialization.InvalidDataContractException: No set method...

Is it possible to move a property to another class with ReSharper?

Hi, I have a couple of properties and I want to collect them under a class to make my code more clean. Can I do this quickly with ReSharper? thanks ...

Objective-C :: using a method to change an object

I have a class called "CardSet", containing an NSMutableArray* cardSet to hold "cards", which I extend to make "DeckCards". I'd like "CardSet" to have a method called "(void)addCard:(Card*)" (and similarly a method "removeCard"). I'd like "addCard" to some how have access to and set cardSet. Even better I'd like to use the "addCard" meth...

android:state_enabled missing/not working??

I do not have the property android:state_enabled for any of the controls. Typing it manually doesn't work either. I can only use the deprecated android:enabled. I have the latest everything. ...

WiX: How can I set a property externally?

In my WiX installer, I've got a property for a UserID that gets written to a registry key: <Property Id='UserID' Value='123' /> <Directory Id='TARGETDIR' Name='SourceDir'> <Component Id='UserIDComponent' Guid='C7A5A70E-261C-11DF-9FB7-49AC56D89593'> <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type=...

C# Pass a property by reference

Is there anyway to pass the property of an Object by reference? I know I can pass the whole object but I want to specify a property of the object to set and check it's type so I know how to parse. Should I maybe take another approach (I cannot change the original object in anyway)? public class Foo{ public Foo(){} public int Age...

some resource file attributes are not visible in dll property details

I have an attribute as "SpecialBuild" in resource file of project along with FileVersion, ProductVersion etc. When I construct a build and see property details of dll, FileVersion,ProductVersion etc are present but not "SpecialBuild" attribute. Can anyone help? ...

Is there a way to be notified when a property changes in a QObject?

First off, I'm using the Qt 4 libraries and C++. Is there a way to be notified (signal, event, ?) when a property (dynamic or otherwise) changes on a QObject? I can't modify the QObject class as it is part of the Qt4 library. More info about QObject here. ...

Expose UserControl property to XAML

WPF controls have certain properties (UserControl.Resources, UserControl.CommandBindings) that can have items added to them from the XAML of a user control declaration. Example: <UserControl ... > <UserControl.CommandBindings> ... </UserControl.CommandBindings> <UserControl.Resources> ... </UserControl.Resources> </User...

Preferred way of defining properties in Python: property decorator or lambda?

Which is the preferred way of defining class properties in Python and why? Is it Ok to use both in one class? @property def total(self): return self.field_1 + self.field_2 or total = property(lambda self: self.field_1 + self.field_2) ...

Dynamically Casting Objects

Hello everyone I am trying to cast two objects to, both, a specific type based on property reflection information. I want to do this dynamically so I don't need a bunch of switch cases and such for each type that the two objects can be in this class. Overall they will mostly be int or float. At the moment I currently tried using 'var' an...

Instance initialization strategy in c#

For a class instance to work properly, some fields should be properly initialized, what's your strategy to initialize these field, what should be given through constructor, what should be given through property? My confusion is that, if the constructor requires a long parameter list, it's hard to use, if through properties, i tend to fo...