all groups > dotnet windows forms designtime > february 2005
Question about IDesignerHost.Add
Posted by Tony at 2/25/2005 4:15:25 PM
Hi all,
I am now coding a DesignerHost for my application, and have implemented the
IDesignerHost interface. I can show a Container successfully, but, after I
called the IDesignerHost.Add function, how can I draw the control on the
container form? My question, from where I can trigger the comp... more >>
Deserializing a dropped ToolBoxItem in a ParentControlDesigner.OnDragDrop function
Posted by Robin Sanner at 2/25/2005 12:49:37 PM
Currently when a OnDragDrop event fires in my control designer I use
ISelectionService to get the component that was dropped. I know there has
to be a way to get the component out of the DragEventArgs.Data.GetData()
method but I have been unable to figure out how. When you drop a control
f... more >>
Only allowing certain types of controls to be dropped on a parent control
Posted by Robin Sanner at 2/25/2005 12:39:42 PM
I have a parent control with the following designer:
Public Class MyParentControlDesigner
Inherits ParentControlDesigner
....
Public Overloads Overrides Function CanParent(ByVal control As Control) As
Boolean
Return TypeOf control Is MyChildControl
End Function
Public Overloads ... more >>
Help 'Check ListView' vs 'Check ListBox'
Posted by MikeY at 2/24/2005 10:30:12 AM
Hi all,
I am coding window forms in C#.
My problem is this: I have created a "Check ListView" or a 'ListView' with
checkbox's. I have populated the it with my files from my folders, mps, txt,
etc. The ListView is in Details, with headers and an Icon.
What I am trying to accomplish is to r... more >>
Component Creation/Deletion bound to PropertyChange Problem
Posted by joeycalisay at 2/23/2005 3:21:45 PM
I have a custom enum property Parts for my custom containercontrol declared
as below:
[Flags]
public enum Parts : int
{
None = 0,
Header = 1,
HeaderDetail = 3,
HeaderFooter = 5,
HeaderDetailFooter = 7
}
Depending on the Parts configuration chosen at designtime, I will b... more >>
Serailization IExtenderProvider
Posted by Tony at 2/22/2005 4:48:03 PM
Hi all,
Just a simple question here. How can I customize the serialization process,
to the InitializeComponent, of a IExtenderProvider Properties?
Thanks in advance.
Regards,
Tony Cheung
Software Developer
... more >>
ComponentConverter Question
Posted by Tony at 2/22/2005 2:10:45 PM
Hi all,
Curently I am writing an IExtenderProvider which provides all controls a
custom Porperty to reference a Control object. This property is of
ComponentConverter as it TypeConverter to allow user to choose control
reference from a dropdown. I found out that when this property is set to th... more >>
to edit enum with [Flags] attribute in PropertyGrid
Posted by azerty at 2/19/2005 7:47:03 PM
Hello
Just to be sure ...
is it necessary to develop my own UITypeEditor if I want edited a property
define with Enum type in PropertyGrid during design time
For example : Control.Anchors is editing with
System.Windows.Forms.Design.AnchorEditor (with specific visual effect ...)
If my ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Disappearing Controls when the designer loads a form.
Posted by Michael AbiEzzi at 2/18/2005 3:31:03 PM
I am using Visual Studio 2003 (C#) with the .NET Framework 1.1 SP1.
I suspect that I have encountered a bug in Visual Studio. I have three
user controls (EditorGrid, EditableGrid, and ReadOnlyGrid) which inherit from
Abstract Grid. AbstractGrid Inherits from TitledFrame and TitledFrame
in... more >>
Separating Design-Time Capabilities from Run Time
Posted by mark NO[at]SPAM arcabama.com at 2/16/2005 7:55:50 PM
I find myself running into the following situation writing C# programs
that have controls and components that have custom designers associated
with them:
1) I need to write code that uses non-redistributable assemblies (e.g.,
EnvDTE) at design time, but not at run time.
2) Referencing Types... more >>
Determining Path to Project File at Design Time
Posted by mark NO[at]SPAM arcabama.com at 2/16/2005 7:48:40 PM
I am running into several situations where I need to determine the full
path to the "current" project file at design-time within VS.NET. For
example, I've written a custom component that, based on user input,
creates and adds a dataset definition file to it's project.
I've come up with a way o... more >>
designtime controls can resize but not move
Posted by Mark at 2/16/2005 11:13:59 AM
Hi all,
I am greating a gui designer and am using the Hosting DesignTime
controls example to get started.
I have created a couple of Designers.
The RootDesigner being inhertited from DocumentDesigner while the others
are derived from ParentControlDesigner.
Strangely the top level con... more >>
Microsoft: Help with OLE documents...
Posted by VBen at 2/15/2005 11:53:04 AM
Hi all.
I have an application to draw and design different documents, that supports
linking and embedding of other documents (like, for instance, Corel Draw or
Word). Then, the user can print their designs "WYSIWYG", so I load the
external document inside an OLE document container control (VB6),... more >>
ColumnHeader. Is the (Name) a design time property? Or something e
Posted by ALWIZ New at 2/14/2005 1:27:01 AM
Hi,
Is it possible to retrieve the (Name) value from ColumnHeader property? I am
trying to get the value through PropertyDescriptor / PropertyInfo, override
it through new property but it does not seems to work or it is not available
to access. How can I actually do that programmatically i... more >>
HELP: Adding a MainMenu Component results in IDE crash when edited
Posted by Robert Porter at 2/13/2005 7:43:35 PM
When I add a main menu component from the toolbox to a Winform VB.NET project all is fine until I attempt to edit the menu by clicking it in the designer. I can usually get the first item added, when I click below it to add the next item the IDE crashes with no specific error, just the normal Window... more >>
Overloaded Items Collection in ListView - Designer Display not Refreshing
Posted by camel NO[at]SPAM parallelsolutions.com.au at 2/13/2005 4:51:25 AM
Hi,
Working with the code at :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet08262002.asp
I have shadowed the Items collection with my own class. When a
DataListViewItem (inherited from ListViewItem) is added to the
collection it is also added to the ... more >>
Initialisation Code - Strings with Null Values
Posted by camel NO[at]SPAM parallelsolutions.com.au at 2/13/2005 4:35:13 AM
Hi,
I have been extending the following code sample -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet08262002.asp
Somewhere along the line though, when the DataMember variable is
initialised in generated code, it's default value is null (not "" like
I ... more >>
Can't load all the bitmaps as embedded resouces
Posted by BoroDude at 2/11/2005 10:41:01 AM
Originally the following code worked. I had 9 bitmaps loading as resources
and when I added bitmap 10 as an EmbeddedResource, the bitmap failed to load.
When I step through in the debugger, imageListBitMaps.Images.Count had a
value of 9. I suspect something with VS.NET is failed to recognize t... more >>
access of project files from ComponentDesigner ?
Posted by azerty at 2/8/2005 11:45:48 PM
hello,
I want read the file list of my project from a ComponentDesigner (in fact I
want read a specific file in another projet of the current solution from a
componentDesigner)
IDesignerHost seems not a good way to do this (I can access of the
rootcomponent for example)
Do you know the g... more >>
Listbox and data link properties in property grid?
Posted by Suhail Kaleem at 2/5/2005 2:46:01 AM
Hi !
I am making custom component in vb.net
I can add properties that show in property grid at design time that is easy
!
1 - but can any one tell me how do i add a list box in property grid with
some values in it so that user can select it ?
2 - I also want to add custom button when click... more >>
Achitecture question
Posted by Kenny M. at 2/4/2005 11:01:07 AM
Hi
I have a Windows Form running in 40 clients around the city, those apps are
communicating with a central SQLDB hosted in a hosting company (each one is
sending data, waiting for data comparisons and receiving the data back). I
have been using a Web Service to make the link between my app... more >>
MDI form with Menu assigned through IDesignerHost wouldn't refresh
Posted by ALWIZ New at 2/3/2005 5:05:03 PM
Hi,
I tried to assign a MainMenu to a MDIForm from the ControlDesigner class. It
actually work when I click on the MDIIForm's border after I assigned it. If I
don't do the "clicking on the MDIForm's border", the MainMenu will never
appear whether or not I save the Solution/Projects. I am qu... more >>
CODEDOM - LINE
Posted by João Santa Bárbara at 2/1/2005 10:48:28 AM
Hi all
i have a CodeStatementCollection, and i want to see what's in each line
ex:
dim x as object = new XXXobject
x.myproperty=100
and so one ..
can someone help me ???
thks
JSB
... more >>
|