all groups > dotnet windows forms designtime > april 2005
UserControl.Property cannot convert to target type...
Posted by Michael Palmer at 4/29/2005 2:57:34 PM
I have a composite UserControl with a public property with a return type of
a custom enumerator. I want this to show up in the PropertyGrid during
design-time... it will allow me to change the enumeration within the grid,
but when I rebuild it defaults back to the first value in the enumeratio... more >>
ListView Column's AddRange is adding the wrong array type of items in InitializeComponent
Posted by jrhoads23 NO[at]SPAM hotmail.com at 4/29/2005 9:07:49 AM
I have a custom list view "MyListView" (inherited from
System.Windows.Forms.ListView) which has a "Columns" property.
"Columns" if of type "MyColumnHeaderCollection" which is inherited from
System.Windows.Forms.ListView.=ADColumnHeaderCollection.
MyColumnHeaderCollection is a collection of "My... more >>
Cannot add images to ImageList (VS 2005 Beta 2)
Posted by hiriumi NO[at]SPAM gmail.com at 4/26/2005 10:17:43 PM
I've tried to add .ico, .png, and some other image files to ImageList
on design time, but the list doesn't get filled with image item.
Instead, it just keeps being blank and I get no error message. Am I
doing something wrong? This is happening on VS 2005 Beta 2.
... more >>
C# component - Missing properties in VB form
Posted by Frank Kwong via DotNetMonster.com at 4/22/2005 1:56:02 PM
Why is that when I loaded into VB a non-visual component written in C#.
Many Design time properties of the component are missing in the VB form?
Thanks,
Frankk
--
Message posted via http://www.dotnetmonster.com... more >>
DesignMode in TreeView derived control
Posted by Jeronimo Bertran at 4/19/2005 7:07:37 PM
Hi
I have created a treeview derived control which needs to perform some
initialization only at runtime (not at design time) because I am not able
to add it to a form due to he fact that some information required in the
initialization is not available at design time.
How can I do this?
... more >>
Turn Designer Off
Posted by Rick Mogstad at 4/19/2005 1:10:24 PM
Is there a way to have a Class that inherits from a control not show the
designer when double-clicked, but just show the code window? The class
cannot be designed, so it doesnt do any good to show the designer. I am
thinking there is probably an attribute for that, but I can't seem to find
... more >>
Stupid Error on VB.NET IDE
Posted by João Santa Bárbara at 4/19/2005 12:00:00 AM
Hi all.
i have a funny error in the IDE but only in one form. :(
i have declare a Method like this "Private Sub MyTransGForms(ByVal sender As
Object, ByVal e As EventArgs)"
and i have an handler to it.
and in the same form i have this calling
AddHandler frm.TranslateForm, AddressOf Me... more >>
How to Add a Property to a ListViewItem
Posted by tom at 4/18/2005 10:42:46 AM
I've made a custom listviewitem inherited from listviewitem, made a
custom collection of it, and made a custom listview that inherits from
my collection. I can see my new property ("Enabled") in the collection
editor but the code that the IDE generates does not reference my custom
listviewitem. ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Custom PropertyGrid Sort!
Posted by Özden Irmak at 4/13/2005 2:48:47 PM
Hi,
I want to achieve custom sort on properties on a propertygrid. This means
that I don't want any alphabetical sort but want to use my own sort
algorithm.
Does anybody know how to do this?
Regards,
Özden Irmak
... more >>
IExtenderProvider and RecommendedAsConfigurableAttribute incompatible?
Posted by Uri Dor at 4/13/2005 2:32:39 PM
Hi,
I'm working on my IExtenderProvider - it adds a property which I expect
to normally bind to the app.config file.
I can't find how to add the RecommendedAsConfigurableAttribute to it.
I tried adding it on the GetXXX method (where other attributes such as
CategoryAttribute seem to fit), but... more >>
How to get the IDE to generate code
Posted by Greg Robinson at 4/12/2005 2:45:29 PM
We have developed our own custom designer. We have a custom control that
uses this designer. We have everything working, except.........
How do we get the IDE to recognize a drag and drop from the toolbox such
that it generates code to add the control to the container's controls
collection... more >>
Good book (or online resource) on covering WinForm custom controls (design time)?
Posted by .NET Developer at 4/10/2005 11:33:17 AM
I'm an experienced C++/C# developer, looking for a good book (C# or VB.NET)
with focus on WinForm custom controls (design time).
Thank you in advance.
... more >>
How do I paint the design surface of a custom control
Posted by Robin Sanner at 4/9/2005 10:25:06 AM
I have paint code in the custom control's OnPaint method (which successfully
shows up at runtime) and paint code in the OnPaintAdornments method of the
designer (which successfully shows up on a control that I have dropped onto
a form). What I haven't figured out yet is how do I get the actua... more >>
How to replace the GridSize designtime property on a Custom Control with my own
Posted by Robin Sanner at 4/9/2005 10:22:27 AM
I have a new custom control. By default the custom control has the
design-time property GridSize. I want my custom control to have it's own
GridSize property that works in both design time and in run time and be
browsable in design-time. I used PostFilterProperties to get rid of the
origi... more >>
Custom Designer with Custom Control Issue
Posted by Greg Robinson at 4/7/2005 10:27:51 AM
In my application I have a base control class - call it BaseControl - from
which I inherit to create multiple controls. I'm using a custom
ControlDesigner class because I need one or two special actions to be
available to the inherited controls at design-time.
But when I create a new contro... more >>
Override the name property when I drag & drop controls on component class
Posted by Gabriel Lozano-Morán at 4/6/2005 12:21:46 PM
Does anyone know how to override the Name property of controls that I drag &
drop on a component class? When I drag and drop tables from the server
explorer on the designer of my component class I want the name to be
<table>DataAdapter instead of sqlDataAdapter1, sqlDataAdapter2, ...
TIA
... more >>
"RUN MODE" of Usercontrol get activated at Designtime
Posted by anandjain5 NO[at]SPAM gmail.com at 4/6/2005 12:22:49 AM
Hi All,
I have created a simple usercontrol(using c#,the code is
added below).Now at designtime(Windows forms) i add this usercontrol
into a Panel(or any container Controls).Now i drag the user control
out of my Panel.(now the control is on the form).At this moment the
runtime mode... more >>
extender controls
Posted by Graham Robertson at 4/5/2005 11:54:28 PM
I have a panel that acts as an extender provider. I only want to extend
properties if the control is parented by the panel. I implemented CanExtend
to do this; however when the control is first outside the panel and it is
then dragged in the CanExtend methods does not seem to be called again.
... more >>
Design Time event generation and method content
Posted by fujiyama NO[at]SPAM gmail.com at 4/5/2005 4:02:49 PM
Hi!
I'm trying to figure out how to create a control which can add or edit
code during drag&drop operation. I know how to handle CreateTransaction
method and add the control but I have no idea how to add event code
content during this operation.
For example, I would like to add the MyButton con... more >>
Code serialization for a collection property
Posted by Bernd S at 4/5/2005 1:12:31 PM
Hi,
how is it possible to serialize a collection into code similar as the
ControlCollection serialization? The problem what I see is that
CollectionCodeComSerializer is an internal class which cannot be overrided.
Thanks,
Bernd
... more >>
Designer changes size of childcontrols during build
Posted by engine252 via DotNetMonster.com at 4/5/2005 12:22:16 PM
Hi
i got this control i'm creating
it exists of a containercontrol wich manages some child containercontrols
(kinda like the tabcontrol --> tabpages)
when i add pages all works fine but when i add controls to these
pages at first everything seems ok but during the build or at the end of
... more >>
How to implement an OpenFileDialog in a Component's DesignTime property?
Posted by Frank Kwong via DotNetMonster.com at 4/5/2005 6:15:49 AM
The PictureBox component has a desingtime "Image" property. You can click
and open an OpenFileDialog to select the path of an image. How is this
being done? Also, you can only browse for the file and cannot type in the
path. Is there a way to allow a manual input as well as browse input?
Thank... more >>
string array
Posted by David Sobey at 4/3/2005 10:24:58 PM
hi
i have a control with a string[] property. i have set
[Editor("System.ComponentModel.Design.StringCollectionEditor","System.Drawing.Design.UITypeEditor"),DesignerSerializationVisibility(DesignerSerializationVisibility.Content)],
and it serialises fine. However, when the program returns to ... more >>
Serialization Interception
Posted by Mark G via .NET 247 at 4/3/2005 6:37:04 AM
Hi All,
I'd like to modify the standard output of the generated code.
Let's say, I'm changing a TextBox's text property to "SomeValue", and I'd like to get something like this in InitializeComponents():
myTextbox.text = GetTextualValue("SomeValue");
and not:
myTextbox.text = "SomeValue";
... more >>
|