all groups > dotnet windows forms designtime > november 2004
Interesting VS 2003 designer behavior
Posted by LF at 11/29/2004 8:24:35 PM
Hi,
If I have a property that exposes a custom Collection and has a bunch of
AddRange overloads, the AddRange call that takes the argument of type that
the property exposes HAS to be the last method declared in the collection
class after all the other AddRange method declarations. Otherwise... more >>
GetHashCode and variable names given by VS Designer
Posted by LF at 11/27/2004 10:47:53 PM
Hi,
If I have a class that overrides Equals/GetHashCode and returns same
hashcode based on data members equality for 2 different instances of the
class, VS 2003 designer gives exact same name to the local variable
auto-generated inside the InitializeComponent method. This results in
unbui... more >>
Steal winforms drawing code
Posted by Adrin at 11/21/2004 12:51:40 AM
I'm building a couple of designers and I would like to use the same drawing
that winforms classes use.
I managed to do this:
class ButtonComponent
{
}
class ButtonComponentDesigner
{
Button b = new Button();
// b is synced with the ButtonComponent that we should design
}
When pai... more >>
Properties of Component in PropertyGrid
Posted by Matthias Pieroth at 11/19/2004 8:00:42 PM
Hi NG,
I built a GUI-Builder with C# and use own components like TableRow-Object as
designed-time-components which are derived from Panel. Just like in other
IDEs I show the Properties of a TableRow-Object in a Property-Grid. The
TableRow has the interface ILayoutComponent, an interface I d... more >>
ASP.NET designer
Posted by Adrin at 11/19/2004 2:09:16 AM
Is it possible to host the ASP.NET designer that VS uses?
If not, is there any chance of using the ASP.NET Designers outside VS?
... more >>
Reference & Resource, help needed
Posted by MikeY at 11/16/2004 7:17:20 PM
Being a newbie with Reference/Resource is there a way of embedding the
..resource file within a folder of my application instead of having it in the
main project /executing assembly area. i.e. if I have a folder pertaining to
variables, I would like to have that "variables.resource" file within t... more >>
Designer/properties databinding, how???
Posted by Julie at 11/11/2004 1:10:35 PM
I'm trying to use data bindings through the control designer properties, and
getting
nowhere at light-speed. The online help for data bindings is virtually useless
as a tutorial on the subject, and I haven't been able to locate anything
through Google.
I've set up data bindings manually, and... more >>
Windows Forms Designer - selecting controls
Posted by guy.bradley NO[at]SPAM gmail.com at 11/10/2004 4:46:42 AM
Hi,
Can anyone tell me why existing controls on a form loaded into a
hosted windows form designer do not display the visual "handles" when
selected and yet controls newly added to the form using the designer,
do?
Thanks in advance,
Guy... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I tell the TypeConverter to Dispose or destruct C#.
Posted by gert NO[at]SPAM iscrip.co.za at 11/9/2004 8:47:01 PM
Hi
I have a PropertyGrid that loads one of my objects. The Object has a
TypeConverter that I build to display a list of values. If the grid
closes I would like to do some cleanup.
In the constructor of the TypeConverter I registered an event so that
the TypeConverter is notified when the li... more >>
switching between two cultures
Posted by Ken at 11/9/2004 11:13:07 AM
hi I hope to explain myself very well this time
My SO: Win XP Spanish
My DB: Access 2000 Spanish
My Regional Config: Spanish
I'm the only one saving and retriving data from the DB, I don't have
problems showing data but retrieving data via Select
On my DB Access
----------------------
... more >>
Visual Studio delay in starting application
Posted by mbusfield NO[at]SPAM yahoo.com at 11/9/2004 8:15:27 AM
Hi
I have a problem with Visual Studio 2002. Now and again, when i start
running a VB.NET application, after the build of the exe is complete,
it takes a minute or more to actually run the exe (2min 20s on the
last count).
Also, once the exe has started i notice that the visual studio is not
... more >>
selection on designtime
Posted by Matthias Pieroth at 11/7/2004 9:30:40 PM
Hi NG,
I have a Derived Panel with a ControlDesigner:
[DesignerAttribute(typeof(TableRowDesigner))]
public class TableRow : Panel
{
....
}
public class TableRowDesigner : ControlDesigner
{
TableRow row = null;
private void AddPanel()
{
IDesignerHost dh = (IDes... more >>
custom label not changing appearance
Posted by brycedooley NO[at]SPAM brycedooley.com at 11/3/2004 7:49:19 PM
I have a label control that makes itself bold if it's LinkedField
property is set to a valid control on the form.
However, when I open the project, the LinkedField property of the
label is set but the label doesn't make itself bold. I have to reset
the LinkedField property for this to happen.... more >>
Image resources - how can I rebuild them from files?
Posted by Uri Dor at 11/3/2004 5:42:22 PM
I'm developing an app and using some low-quality bitmaps for desiging my
GUI - each bitmap is placed in an Image property or in an ImageList.
This means the bitmaps are serialized into the .resx file, right?
Can't I add the bitmaps as links to .bmp files in my project, so I could
rebuild all s... more >>
Hashtable property persistance
Posted by Devin Rader at 11/3/2004 10:15:07 AM
Does anyone have an example of persisting a Hashtable property of a control?
Do I need to implement my own CodeDomSerializer, or can I just create a
TypeConvertor and use an InstanceDescriptor, or both?
Not sure where to start.
Thanks!
Devin
... more >>
PropertyGrid and Password Fields.
Posted by Kstoj at 11/3/2004 9:10:18 AM
I would like to implement the password field inside the .NET PropertyGrid
control.
That means if the user types the string value the PropertyGrid displays "*"
but captures actual typed string.
Is there a way to do that?
... more >>
Custom Designer
Posted by Lee at 11/2/2004 4:36:36 PM
I want to design a control that needs to have extra "handles" at design
time. Basically at design time I want my control to have a line coming off
of it that extends beyond the region of my control and ends in a "gripper"
handle (probably only when it is selected in the form designer). I wa... more >>
|