class Base { [Display(Order = 0)] public int FirstProp {get;set;} [Display(Order = 1)] publuc string SecondProp {get; set;} } class Derived : Base { [Display(Order = 2)] public string ThridProp {get;set;} } I was expecting that the properties will have an order like this | FirstProp | SecondProp | ThirdProp | But I was getting like this | ThridProp | FirstProp | SecondProp | What was i missed? BTW i was binding it in a gridview. I will appreciate for any help will come. Thank you

Member Avatar
Member Avatar
+0 forum 3

im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize myText; @synthesize opacity; @synthesize delegate; //getter -(NSString*)myText{ return myText; } -(NSNumber*)opacity{ return opacity; } -(id)delegate{ return delegate; } //setter -(void)setMyText:(NSString *)_myText{ if(myText!=_myText){ [myText release]; myText=[_myText retain]; } } -(void)setOpacity:(NSNumber *)_opacity{ if (opacity!=_opacity) { [opacity release]; opacity=[_opacity copy]; } } -(void)setDelegate:(id)_delegate{ delegate=_delegate; } - (void)viewDidLoad { [super viewDidLoad]; // Do any …

Member Avatar
+0 forum 0

The "Invalid Property" Error is thrown at Line 20, which is for the TextField. No idea as to why it is being thrown. <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.text.*?> <VBox prefHeight="400.0" prefWidth="284.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="375.0" prefWidth="285.0" VBox.vgrow="ALWAYS"> <children><Button fx:id="zero" layoutX="14.0" layoutY="321.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" text="0" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="230.0" /><Button fx:id="decimal" layoutX="54.0" layoutY="321.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" text="." AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="68.0" AnchorPane.rightAnchor="176.0" /><Button fx:id="posneg" layoutX="94.0" layoutY="321.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" text="+/-" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="122.0" AnchorPane.rightAnchor="122.0" /><Button fx:id="one" layoutX="14.0" layoutY="271.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" text="1" AnchorPane.bottomAnchor="68.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="230.0" /><Button fx:id="two" layoutX="54.0" layoutY="271.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" text="2" AnchorPane.bottomAnchor="68.0" AnchorPane.leftAnchor="68.0" …

Member Avatar
Member Avatar
+0 forum 7

Can't get this work properly: FormatRange(ref ws.Range[curRange.Offset[1, 0] , gives A property or indexer may not be passed as an out or ref parameter Any help would be thankfull public static void WriteDetailData(ref Worksheet ws, string type, ref int row, int col, Hashtable parts, Hashtable refList) { Range curRange = null; Component component = null; curRange = ws.Cells[row, col]; curRange.Value = type + "Component Summary"; FormatRange(ref curRange, 10, "Green", true, false, false, XlHAlign.xlHAlignLeft); curRange.Font.Underline = true; curRange.Offset[1, 0].Value = "Ref-Desig"; curRange.Offset[1, 1].Value = "Part Number"; curRange.Offset[1, 2].Value = "Shape Code"; curRange.Offset[1, 3].Value = "Type"; curRange.Offset[1, 4].Value = "Side"; curRange.Offset[1, 5].Value …

Member Avatar
Member Avatar
+0 forum 2

First let me define what I mean by action box. Input box waiting for data, link waiting for click etc. Also I am assuming that the page is NOT using mouse over ( BAD assumption, so feel free to suggest something else) Why I need this ? you might ask There are a lot of pages that need an expert to understand, but you need to get some properties so you can automate things programatically. A very common case; logging with password. You need to know the "input" name that you will use to set, so it is automatically filled …

Member Avatar
+0 forum 0

Hi everyone! I have been in the process of coding a replacement track bar which fits the color scheme and design of a program I am making. I would like some of the options to be controlled by properties which I can change in the designer. These include: whetether to show ticks, background color, pointer style/shape, maximum value, etc... The show ticks works fine, however I have tried multiple ways to get the Style field (which is an integer) to work, however everytime I change it, VB changes it back to its original value. Here is my code: Public Class …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have a class called "car" with - I have no ideia how to say this in english - "data members" as the following: Public pneu As classDoor Public mat As classTire Public length As Double And so on. All the related classes have null constructors. I have a tab control where each tab is equivalent a one of this features. The tab "Tire" with respect to "pneu", for example, has the following properties: Public Property materialh As String() Set(value As String()) mat = value End Set Get Return mat End Get End Property Public Property diameterh As String() …

Member Avatar
Member Avatar
+0 forum 5

Can i change winform tool 's property using c#???

Member Avatar
Member Avatar
-1 forum 12

Hello, How do I return the value of a custom property in Word 2007 using VBA? Depending on the custom property, I also need to automatically check a checkbox using VBA. Thanks!

Member Avatar
Member Avatar
+0 forum 2

I am trying to make this table behave. I want it to stay within 80% of the page. I want each column to be a fixed width. I want it to show all without scrolling right. Its fine if it gets super long. I also want the title bar, with the column names... to always be on top, maybe they call that floating.. idk Can someone PLEASE help me clean this up ? Below is the CSS file... body { margin:10en; padding:0; height:100%; width:80%; text-align: center; margin-left: auto; margin-right: auto; } #container { min-height:100%; position:relative; height:100%; } #header { background:#009900; …

Member Avatar
Member Avatar
+0 forum 3

This snippet will allow you to easily work with session variables in your applications. This example is using a string type but it works the same for any data type, you would just need to change the default return value from string.Empty to something more appropriate.

Member Avatar
Member Avatar
+0 forum 1

For example let's say we have the property called Customer that returns a value of name String name; <== Global Variable public String getName() { return name; } public String setName(holdingName) { name=holdingName; } and a constructor called Match public FullName(String realName) { holdingName = realName; } Can I do what I have done up there? I know it does not work, but is there any way to make it work? Please let me know if you need further information to get this question answered.. Thank you

Member Avatar
Member Avatar
+0 forum 7

Okay I am wondering what is a syntax to create a new property with read-write proprties, I read the book but it is not clear. Your help is appreciated

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm new here!!! I just want to ask if is it possible to add a property within a property at VB.Net. Sample Public Class Form1 Private xproperties As PreferenceProperties Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xproperties = New PreferenceProperties PropertyGrid1.SelectedObject = xproperties End Sub End Class Public Class PreferenceProperties Private DBDetails As DatabaseProperties Public Sub New() DBDetails = New DatabaseProperties End Sub <Category("Connection")> _ <Description("")> _ <DisplayName("Database Properties")> _ Public Property Database() As DatabaseProperties Get Return DBDetails End Get Set(ByVal value As DatabaseProperties) DBDetails = value End Set End Property End Class Public …

Member Avatar
Member Avatar
+1 forum 4

Just a thought that woke me up this morning. A means of providing 'property' type constructs in C++ classes similar to python properties. # Header # #ifndef _HXX_CPROP #define _HXX_CPROP /** * Helper class to connect a 'property' in a * c++ class to getter/setter methods * */ template<class T, typename V> class property { public: /** * \brief ctor */ property(T* _target, V (T::*_getter)(void) const = (V (T::*)(void))0L, V (T::*_setter)(V value) = (V (T::*)(V value))0L) ; /** * assignment operator. Provides setter * parent.field = value * functionality */ V operator=(V value) ; /** * coveration operator, provides 'getter' …

Member Avatar
Member Avatar
+0 forum 6

How can I find out how much traffic my competitor's site receives? Explain it.

Member Avatar
Member Avatar
+0 forum 5

Hi DaniWebbers, I would like to map a string to a Property using the Dictionary class. For example, I want to map "port" to a textbox's Text property, e.g. myDict.Add(tbPort.Text, "port"). How would I go about defining the dictionary? I've tried the following: * Private myDict As Dictionary(Of Property, String) * Private myDict As Dictionary(Of [Property], String) but these do not work, since *Property* is not a type. Is this even possible? If so, how do I define the dictionary? If not, would I have to go about using reflection?

Member Avatar
Member Avatar
+0 forum 3

Hello, I am getting these constant annoying errors in Visual Basic .NET 2010 Express. I'm pretty sure I'm not the only one, but these errors are always relating to images and resources! [QUOTE][B]The Type 'Global.ExampleProject.My.Resources.Resources' has no property named 'example.png'[/B][/QUOTE] I am pretty sure these are bug, due to the fact that I get these errors after a while in most of my projects - it's absolutely annoying! Most solutions include removing the resources (commenting them out of the form designer code) and re-importing them... But then the problem comes back again after the project has been loaded a few …

Member Avatar
Member Avatar
+0 forum 8

Hi, I have a requriement to convert all my properties files from English to Hindi to make my project internationalization. Can any one please tell me, is there any tool to convert my property files from one language to another language. I have found some language transulator sites, but it will make a big task to me to do all these. because i have 100+ propertiy files in my project. It is not an easy task to convert all those property files to another language manually. So, Please help me, is there any tool to convert a property file in …

Member Avatar
+0 forum 0

Alright so Im making this sports application where whenever the user clicks on a radio button with a designated sport a message apporiate to that sport will come up . I also want to have a 'different' picture show up for each different click of a corresponding sport . Would I just layer some textboxes and set autocheck property to false I tried doing that but nothing would display at all. also what would be te best way to store pictures to use them in this program should I grab a URL or store them in a local folder . …

Member Avatar
Member Avatar
+0 forum 1

[I][COLOR="Green"]!below is the code snippet [/COLOR][/I] This is a multi-use property toggler. In the given example we are toggling a sub property of an element. e -is the property owner to be targeted; p - is the property name to be set; v - is the property value; henceforward changing the class-name of the property owner instead; - would look like this: [CODE]toggleProp(this,"className","newCls")[/CODE] meaning that the target element can delegate the behavior instruction to some other element, while the event itself can remain bonded to a simple on/off button, i.e.: [CODE]toggleProp(reciever,"className","newCls")[/CODE] Works in all browsers, in all manners except Firefox …

Member Avatar
Member Avatar
+0 forum 6

Hello again. I have a property 'F' in class 'Club'. I realized that it doesn't function properly while going through debugging and locals. At first look it had normal, wanted values. BUT than every time I hovered over class->property F it increased by *2 or seomthing like that. Here's the code: [CODE=C#] class formation { private int[] frm = new int[7]; private int def, dmf, sb, smf, mid, amf, st; public int[] Formation { get { frm[0] = Sb; frm[1] = Def; frm[2] = Dmf; frm[3] = Smf; frm[4] = Mid; frm[5] = Amf; frm[6] = St; return frm; } …

Member Avatar
Member Avatar
+0 forum 3

I am a CMS Developer but am not well in PHP. So I might need your help here.. error: Notice: Undefined variable: handler in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_front_desk.php on line 34 source of error: [CODE]defined( '_JEXEC' ) or die( 'Restricted access' ); // Load configuration data //include( JPATH_SITE . "/administrator/components/com_rsappt_pro14/config.rsappt_pro.php" ); include( JPATH_SITE."/administrator/components/com_rsappt_pro14/config.rsappt_pro14.php" ); include( JPATH_SITE."/components/com_rsappt_pro14/functions2.php" ); //global $my; $user =& JFactory::getUser(); $session = &JSession::getInstance($handler, $options); if($session->get("front_desk_view") != "" ){ $view = $session->get("front_desk_view"); $session->set("front_desk_view", ""); } else { $view = JRequest::getString( 'front_desk_view', 'month' ); } if($session->get("front_desk_resource_filter") != "" ){ $front_desk_resource_filter = $session->get("front_desk_resource_filter"); $session->set("front_desk_resource_filter", ""); } else { $front_desk_resource_filter = JRequest::getString( 'front_desk_resource_filter', '' ); …

Member Avatar
Member Avatar
+0 forum 2

Hi, I was wondering whether it is possible to use a parent class' properties without calling its constructor. In the following example: [CODE]<?php class Shop { public $location; public function __construct($location = ''){ if(!empty($location)){ $this->location = $location; } else { $this->location = 'a place far far away'; } $this->location .= '. '; echo 'Shop constructor has been called. ---- '; } public function check_stock($item){ echo 'There are still quite a few '. $item.'s remaining.'; } } class Item extends Shop { //public function __construct(){} public function find($item){ echo $item . ' can be found at '.$this->location; $this->check_stock('Bed'); } } $shop …

Member Avatar
Member Avatar
+0 forum 2

Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private int _state; [CategoryAttribute("Object State Defaults"), DescriptionAttribute("Object type ID")] public int ObjectTypeID { get { return _objTypeID; } set { _objTypeID = value; } } [CategoryAttribute("Object State Defaults"), DescriptionAttribute(" state type of Object type")] public int StateType { get { return _stateType; } set { _stateType = value; } } [CategoryAttribute("Object …

Member Avatar
Member Avatar
+0 forum 7

Hi i need to add a combo box to a property grid that can be populated with the result of an sql statement, i can more than likely populate it when i come to it but i have no idea how to add the combo box. Currently i am creating the items in my property grid which just need to be a textfield like so: [CODE] private int _objTypeID; [CategoryAttribute("Object State Defaults"), DescriptionAttribute("Object type ID")] public int ObjectTypeID { get { return _objTypeID; } set { _objTypeID = value; } } [/CODE] But i have no idea how to add …

Member Avatar
+0 forum 0

If there are any questions on software copy protection and license management I will be very happy to answer.

Member Avatar
+0 forum 0

I have looked this up on internet and no answer yet!!! I have a paged with a loginView which has a button and a fileupload control in it. When I double click on the button to add some commands I can see that the program can see the button and even if i put something there it will run it. But then when I want to say : if (FileUpload1.HasFile) then do something, it says FileUpload1 does not exist?! But I have FileUpload1 in the same page that my button exist in my loginview (LoggedIn not Anonymous) any help is …

Member Avatar
Member Avatar
+0 forum 1

Hi guys I'm struggling to write a code for traversing a directed graph. It contains City as nodes. I'm trying to put City(s) to a LinkedList and then work with them to find the path. However, as you will notice I'm still newbie in C++. I have a *nextcities as property in City class. There is a function to add related Cities to a node. As you can see in setNextCity(City c) in works fine! and I can check my Cities in the list BUT in getNextUnvisitedCity(), I cannot access *nextcities and it returns BadPtr!! Can you drop some hints …

Member Avatar
Member Avatar
+0 forum 4

hi, I m working on vs 2010. asp.net. i have problem with apply class using jquery. there is one textbox. i use class by this way its perfectly work. but when textbox multilink property is true. then problem is raise. pls help me to use this... thanks in advance. jack

Member Avatar
+0 forum 0

The End.