all groups > dotnet windows forms designtime > june 2004
Filter by week: 1 2 3 4 5
How to disable user self input into ComboBox?
Posted by Shelby at 6/28/2004 9:55:41 AM
Hi,
how do I make sure that user select only the options available in a
ComboBox. In other words, I do not want want them to key into the ComboBox
themselves.
Thanks
Shelby
... more >>
Please help: Serious problems with code generation of user controls
Posted by Bernd S at 6/25/2004 11:02:07 AM
Hi,
we have a big problem with re-using a user control as component inside
another user control. The Visual Studio designer often generates code for
the *inner* user control in InitializeComponent of the *outer* user control.
But this code was already generated in the InitializeComponent metho... more >>
Limit types available in designer
Posted by Jared at 6/24/2004 4:19:33 PM
Hello all,
I am new to this so I may not explain myself very well.
1. I have an inherited TreeView control that I would like to have a partner
control set at design time using the properties window; like the
ControlToValidate property in some web controls. When a node is clicked in
my Tr... more >>
Adding custom verbs for other controls on form in designer
Posted by Bill Henning at 6/22/2004 7:23:46 AM
Does anyone know if it is possible to add verbs in the designer to controls
that are NOT created by me? For instance, whenever the user has an instance
of one of my manager components on their form and selects a control (such as
a Button, Label, or any other control not created by me), I would l... more >>
Expand/Collapse Datagrids in VB.NET
Posted by pnmm NO[at]SPAM portugalmail.pt at 6/22/2004 2:02:30 AM
Can someone help me out with datagrids in vb.net that can expand and
collapse, show and hide rows? Can i code it by myself or should i use
another downloaded component?
And by the way, how can i put a combobox control (and others) into a
datagrid, besides textboxes and checkboxes?
Point me ... more >>
ImageList Errors - What a crap!
Posted by *Herr Lucifer at 6/21/2004 8:08:49 PM
Hi,
Whenever I add images to imagelist and running my application I
encounter this error:
-------
An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
Then i... more >>
inherited form
Posted by e-mid at 6/21/2004 11:36:40 AM
i have a generic form with alot of controls on it, when i inherit a new
form, i can not see the design of my new form on the visual studio and get
an error on designtime.
Error is:
The designer could not be shown for this file because none of the classes
within it can be designed. The des... more >>
Copy a whole Solution ?
Posted by JezB at 6/17/2004 10:13:43 AM
Is there any way to copy a whole solution ?
I want to copy everything so that in the new solution all the internal
references are redirected too so the new solution is still self-contained.
And this should not affect the original solution - it should still work on
it's own.
Currently I'm ta... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Component Tray
Posted by Don Munroe at 6/17/2004 9:28:28 AM
Hello all,
I've searched around and can't seem to find a solution to this. I have
a component that builds a tree of controls / components that are placed on a
form. The walking the controls was easy and is working great. The problem
is the components in the ComponentTray. I've added mu... more >>
Forcing Code Serialization on a Reset<Propname> call
Posted by Keith Hill at 6/16/2004 3:37:23 PM
I have one class, say AcmeWidget that contains a complex property call =
it
legend defined like so:
public class AcmeWidget : Control {
...
=
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)=
]
public Legend Legend {
get { return m_legend; }
}
}
[... more >>
Cutting and pasting with licensed custom controls.
Posted by Brock Reeve at 6/16/2004 8:59:12 AM
I am using the .NET licensing pattern to license some custom
WindowsForms controls. Everything is working fine except when I
cut/copy and paste the control. The problem is that
LicenseManager.GetLicense has a parameter of type LicenseContext.
This type contains a property called UsageMode that... more >>
How do I overload Show?
Posted by Paul Fairless at 6/15/2004 8:56:04 PM
Could someone please explain how I overload the Show() method of a form?
Suppose I select a record from a datagrid on Form1, then I want to show the
details of the selected record by opening Form2 using say the CustomerID as
an 'argument' to the Show method.
So, in Form1 I would have code su... more >>
Making a property editable ONLY BY CUSTOM EDITOR
Posted by Bill Foust at 6/15/2004 12:04:25 PM
I have a property which is a basic type and I have a custom editor on the
property. The value of the property shows up as editable with the "..."
button to launch the custom editor. However I want to PREVENT the user from
editing the value by simply typing it in. I want to force the user to launc... more >>
Extend Controls based on Parent
Posted by David Martin at 6/12/2004 10:33:40 PM
I have created a custom control and I wish to extend the properties of any
control that is placed within my custom control I have also created an
IExtenderProvider class that works except that I do not know how to restrict
CanExtend based on extendee.parent since the parent is null at that point... more >>
Get the component's form
Posted by Nelson FANECO at 6/12/2004 4:06:08 PM
Hi,
I have a component witch have to execute some tasks when the form is loading
but i can't tell my component to do this because i don't know how to
eventhandler the load event form.
Can you help me ?
Regards
Nelson FANECO
France
... more >>
Obtaining the component being edited in UITypeEditor
Posted by rt at 6/12/2004 11:09:51 AM
I have a property in a component that is a collection (array). The base type
of the item in the array contains a type which has another array. I edit the
the first array (default collection editor invoked from property grid) from
which I can edit the "next level" array. I have a custom editor
(... more >>
UserControls ToolBox Category?
Posted by android at 6/11/2004 11:44:01 AM
I have created a UserControl and would like to change the toolbox category that it appears under in Visual Studio? As in it currently appears in "My User Controls", how can I do this?
Also does the ToolboxBitmap attribute work with UserControls, I have tried:
[ToolboxBitmap(typeof(CronSchedul... more >>
Deleting components that are part of a collection when parent is deleted
Posted by Marina at 6/11/2004 10:50:05 AM
Let's say there is a component (component A) with a collection for a
property. This collection is a collection of components (component B) with
DesignTimeVisible = False, so they don't show up in the component tray.
When adding to the collection, there is a variable declared for each
component... more >>
System.UInt32, DefaultValue CLS compliant problems
Posted by rt at 6/10/2004 10:15:12 AM
Hello,
I've written a component that has public properties of type System.UInt32.
When the component is added to a project (component tray) the following is
produced in the code (Form for which the component was dropped):
// TODO: Code generation for 'this.bridgelCtrl1.TimeoutConstant' faile... more >>
How do I get the ControlDesigner for a control?
Posted by schneider at 6/10/2004 1:30:55 AM
Anyone tell me how to get the ControlDesigner for any control?
I need to check the selection rules, and other things.
A samle would be great, or a website...
Thanks,
Schneider
... more >>
preventing evaluation of a property until runtime
Posted by sashley NO[at]SPAM strattonpress.com at 6/9/2004 1:32:32 PM
I have developed a set of routines to compute certain statistics.
Because some of these computations are rather involved, I have
designed the relevant properties so that a statistic is computed the
first time it is encountered, that value is saved, and the previously
saved value is retrieved the... more >>
How to determine if currently in design mode
Posted by Marina at 6/7/2004 4:18:03 PM
The problem is that DesignMode property only returns True, if the control
can be directly modified.
If the control is on a user control, and that user control is on a form -
the design mode property of the original control is now False.
This isn't useful, because what I need to know is if th... more >>
How to trigger key press event of a child from from Mdi Form
Posted by CV at 6/7/2004 11:42:03 AM
Hi,
How can we trigger key press event of a child from from Mdi Form
Please Suggst.
Thanks & REgards
CV
... more >>
imagelist resources
Posted by Emil Damian at 6/3/2004 12:43:56 PM
Why a derived form copy in its resx file all the icons from an ImageList
component (visibility protected) placed in a base form?
Is this the standard behaviour?
I have an ImageList component and a toolbar in a base form and a lot of
derived forms.
If I change an icon in the base form, I have ... more >>
Is there a VS.NET addin that shows the hierarchy of a Form ?
Posted by Uri Dor at 6/2/2004 5:45:07 PM
Hi, everyone,
What I'm looking for is some addin that will show me this:
Form1
+ Panel1
- Panel2
+ Button1
+ Panel3
- TabControl1
- TabPage1
+ Button2
+ Label1
+ TabPage2
etc, etc.
I think this would save me a lot of annoyance, especially if I coul... more >>
Close & restart an application
Posted by CV at 6/1/2004 1:03:40 PM
Hi,
I would like close & restart the same application automatically. How can I
achieve this.
Please suggest
Thanks & Regards
CV
... more >>
Assign Label to Textbox?
Posted by Roland Müller at 6/1/2004 8:35:59 AM
Hello,
can i assign a label to a textbox?
I can do this for example in access on moving a label on a textbox.
I try this now in visual studio.net (c#) but it is not possible and there
also isn't any property.
If it is possible then it is easy so who knows it could help me a bit...
... more >>
|