VS 2005 Specifying Custom Property Editor?

Nov 10, 2010

We have a Windows.Forms.PropertyGrid control that we use to edit application settings. We expose the application settings through a class, giving each setting attributes to control the appearance. An example property definition is shown below:

<DisplayName("Snap Tolerance"), _
Category("Tolerances"), _
Description("The distance (in Points - 1/72"") to be searched for snap points.")> _

[code].....

View 1 Replies


ADVERTISEMENT

Property Editor For Custom Property Is Disabled?

Jun 16, 2009

I have a problem with a property on a custom property of a class. Here is the actual code for the inherited form

Public Class Form : Inherits System.Windows.Forms.Form
Private _Active_Application As Custom.Classes.Active_Application = New Custom.Classes.Active_Application
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Always)> _
Public Property Active_Application() As Custom.Active_Application

[code]....

but when i use a separate class to inherit the above class this property ('Active_Application', not Custom.Classes.Active_Applicaton) is disabled.

View 1 Replies

UI-Editor For My Custom Direct-x UI?

Oct 9, 2009

I have developed a custom DirectX UI library equipped with everything from buttons to a gridview. I need a screen-layout editor of some sort. It just takes too long to do it by hand, whether through a config file or hard-coding. I could spend a month or two developing a DirectX editing utility, but I don't have a month or two to spend on this. I could possibly justify a week.

Some requirements:

I need to be able to create a new screen I need to place controls such as buttons, textboxes, and containers/windows/etc throughout the screen I need to adjust properties of these controls (Name, Text, Width, Height, Parent Container, etc)

Some of my ideas include:Using VB.NET's form editor... setting up forms and translating the form's control information into game screens.Setting up a web-based editor (seems like this would take more than week... wouldn't it have to be flash based?)Setup a VB.NET win32 editor that allows placement of .NET buttons, containers, etc that correspond to my library's buttons, containers, etc.Is there a best way to handle this?

View 2 Replies

Usercontrol Property Editor?

Dec 27, 2009

I have created a usercontrol in VB2008 that draws a rectangle and has the ability to apply Border3DStyles to the control.The problem I have is being able to select which sides to apply the border on during design time.If you look at the BorderSides property of the ToolStripStatusLabel you will see how it lets you select the sides to apply the border to.

View 5 Replies

Property Editor For Array Of Controls

May 21, 2012

If you have a Component (or Control) with a public property of type Control, then in the Properties Window you automatically get a drop down of all the controls on the same form as the component, which is very handy. If you want to do the same thing but with an array of controls then the Properties Window shows the ellipsis and you get the Collection Editor with the Add / Remove buttons creating and deleting an instance of Control (i.e. the base class used for deriving all the others) - not quite so handy.

How do I get a list of the controls on a form and be able to select more than one? I think I need to create a custom UITypeEditor? Assuming that's right then I think I need a dialog box (like the Font dialog) with Available and Selected ListBoxes with Add / Remove buttons and appropriate code to link the control array in the component to changes in the Selected list box? Along with an appropriate UITypeEditor derived class.

Assuming that's correct, how do you get a list of the controls on a form at design time? Can I do that form design as a Windows Form, just as normal, or is it all done by hand? I've seen some code that does it with a UserControl rather than a Form, presumably that's for when you want a 'pop-up' control (like the one for Color selection)?

View 9 Replies

VS 2010 - Written A Text Editor Custom Control

Jun 14, 2012

written a text editor custom control in vb.net

View 5 Replies

Custom Control With Custom Collection Property?

Jul 11, 2011

I have an ASPX Custom Control which is supposed to load it's properties into an internal collection (defined with PersistenceMode.InnerProperty). Here's the ASPX

<cc:CustomControl runat="server">
<Queries>
<cc:QueryTypeOne ... />

[code]...

View 1 Replies

Htmleditor - Html Editor For .net 2005?

Feb 17, 2011

I am trying to let the user preview HTML email before sending it. Does anybody have or know where I can get a simple HTML editor or control that render HTML withou using the webbrowser control?

View 1 Replies

VS 2005 Error: Property Access Must Assign To The Property Or Use Its Value?

Aug 13, 2011

got an ErrorProperty access must assign to the property or use its value.Here i attach the code which have an error.In this program i tried to add data into form . I also create button , textbox. i am using visual studio 2005 and sql 2005. i also have attach the imagece

Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
admin1.LoginDataSet.staff(Me.NAMETextBox.Text, Me.TELEPHONEMaskedTextBox.Text,

[code].....

View 7 Replies

Make A Custom Collection That Take Advantage Of The Collection Editor?

Feb 8, 2010

I have been researching for a couple of days now and to no avail. Does Anyone know how to make a custom collection that take advantage of the collection editor? I would like to be able to have 3 Color Values, 1 Boolean and 1 String.

View 15 Replies

VS 2005 Formula Editor - Can't Multiply Datatype Field With Other Integer Fields

Sep 10, 2009

I have a table with a Real datatype field. I just can't multiply it with other integer fields although the editor doesn't show any error - the result is always '1'.

View 4 Replies

.NET Custom Property Attribute?

Mar 6, 2010

How can I shift the GET-implementation of a Class property to a / using a custom attribute? (I've added instantation vars (classname, propertyname) to the attribute, however I'd rather have these automatically fetched ofcourse.)

Public Class CustomClass
<CustomAttributeClass(ClassName:="CustomClass", PropertyName = "SomeProperty")> _
Public Property SomeProperty() as String
Get() as String

[code]....

View 3 Replies

Add A Custom Property Trigger?

Dec 21, 2009

I am using Expresion Blend 3 and created a new user control in my project. I want a storyboard to run if a custom property of that user control is triggered like with the ones shown here in the list..

I learnt you need a dependency property, but my understanding there is limited. Here's the basic code I set up with property "IsAwesome" as an example[code]...

View 1 Replies

Add Property To Custom Control?

Apr 3, 2010

I have created a custom class, which contains a panel and a label on it. I added to this class a pcaption property, which holds the label text. This property is browsable and I can change its value.But when I drag the custom control to the form and change the pcaption property, it has no effect. Even the <Defaultvalue> has no effect. Why?

Here is the class code:

Imports System.ComponentModel
Public Class mypanel
Inherits Windows.Forms.Panel
Private panelcaption As String

[code]....

Color values are unimportant, you can change it.

View 3 Replies

Can't Access Custom Property?

May 15, 2010

I created a new DataGridViewColumn type called DataGridViewGradeColumn.

Public Class DataGridViewGradeColumn
Inherits DataGridViewTextBoxColumn
Public Property AssignmentName As String

[code].....

View 1 Replies

How To Get Custom Property Of Form From Another One

May 11, 2010

I have two forms, say Form1, Form2
Form1 has one textbox and one button, Btn1 when clicked, it opens Form2 as dialog.
Form2 has one textbox and one button too.
First I click on Btn1 to open Form2 as dialog. And when I click on Btn2 on Form2, I want the text in the Textbox2 to be copied to TextBox1. I know it could be done by Public Property Get, Set but I am stuck.

View 7 Replies

Make Custom Property?

Mar 10, 2009

this is the code for my property

Dim _playernumber As Integer
Property Player() As Integer
Get

[code].....

View 3 Replies

Add Property For Custom Control In VS2008

Jul 2, 2009

I am developing a custom control with VB9, and I want to add a Property Name TextFileName this property need to use OpenFileDialog, which type I can use when I define this property?

for example another property I use is EnterFocusColor and its type is System.Drawing.Color so when the user select the property it opens the ColorSelectionDialog Hany M. El Tarhony

View 1 Replies

Add Validate To A Custom Class Property

Mar 20, 2011

I'm trying to add validation to one of my class properties:[code]The value for the golfer's handicap comes from a oombo box on the form. Even if I have nothing set for this property at runtime, my validation doesn't work. I tried putting the If statement under Get instead of Set, and tried mHandicap = value after an Else in the If statement, but nothing seems to work. I'm working in the dark here and can't find anything suitable online. I was hoping to not go down the path of ReadOnly or WriteOnly properties as I'm not at that stage yet, but does this make a difference for my purposes here? Can anyone guide me as to what I'd need to do from this point? If I've got it right, you can add validation in the class and this means that you then don't need to repeat this validation in the form??

View 3 Replies

Assign Property To Custom Control (WPF)?

Jun 21, 2010

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following

[code]...

View 1 Replies

C# - Create An Extended (custom) Property With EWS?

Aug 17, 2010

I have created a little demo application which is able to create a meeting request by using the Exchange WebService (EWS). I would also like to add some custom properties to this item but up to now I have only found examples which use the Exchange Managed API, which I won't use. There must be a way to create these properties by only using EWS... Does anybody know how and can provide a little code example?

View 1 Replies

Color Property On Custom Attribute?

Aug 4, 2010

i wrote a custom attribute and got the following Color property that I want the user to be able to indicate the color property in the attribute on a class:

Private _ColumnColor As System.Drawing.Color
Public Property ColumnColor() As System.Drawing.Color
Get

[Code]....

View 1 Replies

Custom Control Image Property?

Apr 13, 2012

I'm trying use just a user control form to act like the old VB6 picturebox. Mainly, i'm doing this is because a user control form is also a container but i also want it to have an image property. I've done this. The new control does have an Image property but the problem is that the user control form doesn't have an image property but only a BackgroundImage property.I was hoping that there is some way to place the selected image, directly on the surface of the user control and not to it's BackgroundImage property. Here is what is got so far:

Code:
Public Property Image As System.Drawing.Image
Get
Return Me.BackgroundImage
End Get

[code]....

As you can see, for now, i have to use the BackgroundImage property but i want to image to be placed on the controls surface, so that the image can be manipulated, like drawing game tiles on it or image processing. The user control doesn't have a real image property?

View 11 Replies

Dynamic Custom Class Property

Dec 18, 2009

I have a For Each block loops through a list of objects, the objects are all instances of a single custom class I have made which has multiple properties.The logic used in this block uses a property of the custom class to do a set action, is it possible to dynamically supply which property it uses in the logic? This will be more efficient and prevent me from having to create this logic over for each property of the custom class.My best guess was that maybe it is possible with reflection, however my searches into reflection have left me more confused.

View 2 Replies

Property Group In Custom Control?

Apr 8, 2012

What I want is a property that like Font property, it has "Name", "Size", "Unit", "Bold" and the other property in it. I tried the solution in the post I tried the solution like this:

<TypeConverter(GetType(ExpandableObjectConverter))> _
Class TestingClass
'Some property here

[code]....

View 1 Replies

Return The Value Of A Property In A Custom Class?

Jun 8, 2011

I have a custom class named Location with multiple properties.

[Code]....

How can I get the value of each p.Name and return "Main St", "AnyTown" o "USA"

View 1 Replies

Custom Class Property To Lower Case

Jun 3, 2010

I am trying to create a settings class.The Property Test() is a list of strings.When I add a string such as: t.test.Add("asasasAAAAA")I want it to autmatically turn lowercase. using t.test.Add(("asasasAAAAA").ToLower) will not work for what I need. [code]

View 2 Replies

Custom Control Property Load Order

Aug 9, 2010

I've created a custom control in VB.NET on .Net 3.5, in VS2008, which contains a load of custom properties, including RSS feed address, proxy address and proxy port.This control is an RSS ticker, which works really nicely, but doesn't initially run at all, and from stepping through my code, this is because none of my properties are being passed data from the containing form, until after the control has been initialised, and the code behind the control has run. The code (relevant bits) looks as follows:[code]

View 2 Replies

Custom Control Property Persistence During Runtime

Aug 30, 2011

How to get a property to persist after its been changed dynamically during run-time? When Visual Basic reverts back to the IDE, the property goes right back to its original value.

View 3 Replies

Custom Control Property With DropDown Values

Jun 21, 2010

I have a custom control. I need to add a property, say, Comparison, to the control. The property should be set at design time using a dropdown. The Dropdown will have String values like '=','>','<' etc.
I tried using Enum values and working perfectly but I need to do some extra coding to convert the Enum values to the string I required. It would be great if I can get the values from the dropdown so that I can directly use the selcted value.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved