all groups > dotnet windows forms designtime > november 2005
Problem about Serialized Code of Inherited forms
Posted by Alvaro at 11/30/2005 5:09:04 PM
Working with C# on Visual Studio 2003.
I have a form named "myFormClass" inherited of
System.Windows.Forms.Form, and other form inherited of myFormClass.
It happens that I reopen ; I am going to open a form of the inherited
ones of myFormClass in design and it does not allow it.
Inves... more >>
How to generate code in Form_Load method. NOT in InitializeComponent()
Posted by JacksonYin at 11/30/2005 4:21:34 PM
In VS2005, there is a so personal change about Binding Data.
IDE will gernerate the code about Adapter.Fill(DataSet) automatically. such
as:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void F... more >>
Could not load File or assembly...
Posted by Sebastian Lampka at 11/30/2005 8:38:49 AM
Hi,
In my project, which I develop under VS 2005, I have a form, on which I put
a FlashObject.
Everything is fine so far and works. Then I copied the project to a
different computer and open it with VS 2005 and the designer of this form
shows this exception:
Could not load file or assem... more >>
A too large Rectangle
Posted by Giovanni at 11/29/2005 11:50:22 AM
Hello
I used the following code to draw a rectangle inside another rectangle (2
pixels smaller).
The inside rectangle results 1 pixel larger than the needed rectangle.
I had the same result with DrawPath when I was triyng to draw a
Rounded-Corners rectangle.
This is driving me crazy.
... more >>
Properties get serialized only then the control gets resized
Posted by Montezuma at 11/28/2005 10:35:52 AM
Hi,
this looks like a strange behavior.
I have two properties in my custom control whose relative code gets produced
only when i resize manually (and only manually, i mean with the mouse on the
design surface) the control size.
They won't change their value unless i resize manually the co... more >>
.NET Framework Components
Posted by Graham Robertson at 11/26/2005 10:55:36 PM
I have created a custom control and created and installer that puts it in
the GAC.
However, when I install it and then click choose item from the Visual Studio
Toolbox it is not there.
If I manually add it by browsing for the assembly outside the GAC then it
does appear temporarily.
How d... more >>
Data->Generate Dataset|Preview Data
Posted by Raoul James at 11/24/2005 1:24:06 PM
I am writing an ADO.NET provider for a specialized (non-SQL) data store, and
wanted to support the options in the Data menu, specifically "Generate
Dataset" and "Preview Data". The documentation on these types of features
is near to non-existant, including when you download the VSIP package (... more >>
Newbie needs help with designer and a custom user control.
Posted by Rich at 11/23/2005 4:59:35 PM
Hello,
I posted this in another group and was directed here to post the quesiton.
Seems that there are some smart folks here that can answer this...Here is
the post. Any help would be appreciated.
I have recently started developing Windows Forms from the web and am trying
to do creat... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can't understand this exception at design time
Posted by cadilhac NO[at]SPAM gmail.com at 11/23/2005 5:13:53 AM
Hi,
I'm writing a custom control and I face a strange problem since I have
the latest release of Visual C# express 2005.
When I drag the control from the toolbox to a form, I get this
exception:
Failed to create component. The error message follows:
'System.NullReferenceException: Objec... more >>
My ComboBoxEx is not working
Posted by Carlo at 11/22/2005 12:00:00 AM
Hello
I'm writing an enhanced version of ComboBox (that inherits from
Windows.Forms.ComboBox) that can display images close to the text.
I've replaced the default Item collection (ComboBox.ObjectCollection, that
is a collecion of Object objects) with my own collection
(ImageComboBoxItemCol... more >>
Using UITypeEditors with extended properties
Posted by Mario Vázquez at 11/21/2005 12:00:00 AM
Hi,
I have a component which exposes an extended property. I want to edit this
property using a UITypeEditor. The problem is that when the designer raises
my UITypeEditor sends a reference of the component it's being edited (a
TextBox for example) but not of my component.
How can I receive... more >>
Implement property like Textbox.Lines?
Posted by frank.kintrup NO[at]SPAM gmx.de at 11/19/2005 1:22:48 PM
Hi all,
been searching for a while now, but could not find anything useful.
But since I'm new to .NET and C# maybe I just could not identify if
something was a solution for my problem...
I'm writing a small component which uses a list of name/value pairs.
But I have no idea how to implemen... more >>
Call a verb programmatically
Posted by Montezuma at 11/18/2005 12:00:00 AM
Is it possible?
... more >>
MDI Children Dialog Forms?
Posted by Gordan A Ziza at 11/17/2005 12:00:00 AM
Hello everyone,
We are developing a MDI application and what we would require is the
following:
1. To open a MDI child form as Form1
2. To open another MDI child form as Form2 that would act as a dialog
form for the Form2
3. Form2 must not prevent any other MDI forms from openin... more >>
Intercepting closing DropDown of a ComboBox
Posted by Carlo at 11/16/2005 11:32:10 AM
Good morning
I've not found an event that notify me when drop-down part of a BomboBox is
closed. OnDropDown just notify when the drop-down is displayed, not when it
is closed.
Is there a message in WndProc that can be used to intercept a drop-down
closing?
Thank you very much.
Carl... more >>
Add verbs to root designer
Posted by Juan Ignacio Gelos at 11/16/2005 11:14:39 AM
I've noticed the SqlDataAdapterDesigner adds the verbs "Generate DataSet..."
and "Preview data..." to the ROOT component designer (e.g. if the
SqlDataAdapter is placed on a Form, the Form gets the verbs too).
I actually need to do this for a Component that is a child of a Component
(in the ... more >>
IDesignerHost manually add component
Posted by Lance Johnson at 11/15/2005 7:10:28 PM
I have form setup to perform designing of a form. There's a toolbox that
you can design from and everything. However, one thing I can't figure out
how to do is manually add an item to be designed. Let's say that I want to
add a TextBox to this. How do I go about this? Do I need to use the... more >>
Newbie please help
Posted by cql90 at 11/14/2005 10:24:22 AM
Dear All Pro,
I am new with custom control and I would like to post my question, and I am
pretty sure that you can answer my question within a few minute.
I have a control which derived from System.Windows.Form.TextBox, how can I
override "BorderStyle" of the TextBox' properties? Any help is d... more >>
Use DerignerTransaction for redo/undo
Posted by Wen Tung at 11/14/2005 12:02:56 AM
Hi,
Need help on implementing Redo/Undo using DesignerTransaction.
I can easily do this using command pattern by haveing a UndoManager
listening to events exposed by IComponentChangeService.
But, I can not figure how to do this with DesignerTranction.
Thanks.
Wen
... more >>
System.ComponentModel.Component : IServiceProvider
Posted by Gabriel Lozano-Morán at 11/8/2005 10:34:49 PM
Does anyone know why the System.ComponentModel.Component does not implement
the IServiceProvider interface?
Gabriel Lozano-Morán
... more >>
question about very basic scenario
Posted by Kenny M. at 11/8/2005 9:48:02 AM
I have several records on my DB
Name LastName Age Address StartTime
...
...
...
I need to use that information each moment in my app though the whole day. I
mean every minute or less I need to read info about specific record
I would like to make just one access to the DB when ... more >>
incorporating an image at design time
Posted by Gregory Khrapunovich at 11/8/2005 9:47:29 AM
I am working on the C#/Windows Forms project. Currently I am displaying
images using Bitmap objects that I create at runtime from .jpg files. It
means that I have to distribute all .jpg files with the application. Is
there a way to incorporate .jpg images at design time, so I won't have to
redis... more >>
Hierarchical view of a Form's controls ?
Posted by JezB at 11/7/2005 10:53:05 AM
Is there any way to get a hierarchical view of all a Form's controls? I have
many panels within panels, lots of them with Dock style = Fill, and I'm
finding it very fiddly to select the parent panel of a given control/panel.
I think I must be missing something.
... more >>
Force hidden property to serialize at design-time?
Posted by Özden Irmak at 11/7/2005 12:00:00 AM
Hello,
My component has a string type of property which has set "Browsable"
attribute to false...My custom property page does set/get that property and
I want to force it to be serialized into code in Design-Time...
I tried setting various "DesignerSerializationVisibility" atrribute values... more >>
DevExpress ComboEditBox problem in design time
Posted by InK_ at 11/7/2005 12:00:00 AM
Hi
I have a problem when edit items of ComboEditBox in my custorm form designer
In Visual Studio this property detected as String Collection but in my
designer as Object Collection.
I've looked through reflector on type of that property and i wad really
Object Collection.
But how can Visual St... more >>
A good obfuscator?
Posted by Carlo at 11/4/2005 9:08:25 AM
Good morning
someone used the built-in Dotfuscator Community Edition and can give me some
suggestions and impressions?
Someone knows a good free/opensource obfuscator?
TIA
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications)
carlodevREMOVE@... more >>
A custom IntegerUITypeEditor
Posted by Carlo at 11/4/2005 12:00:00 AM
Hello all,
assume I have this code:
<Editor(GetType(Editors.IntegerUITypeEditor),
GetType(System.Drawing.Design.UITypeEditor))> _
Public Property MyIntegerValue() As Integer
'...
End Property
This means that I have my own personalized IntegerUITypeEditor that inherits
from ... more >>
Form designer cannot respond command
Posted by allen pan at 11/3/2005 12:00:00 AM
I write a simple form designer in vs2005. I can add and edit controls on
this designer. but when I delete a control, it can not repond.
the code like this:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
... more >>
Grouping properties (like Font does)
Posted by A Ratcliffe at 11/2/2005 10:13:42 AM
Just a quick question, I hope.
I'm ending up with a lot of similar property names (because they all relate
to the same area of the control) eg CaptionText, CaptionTextColour,
CaptionBackground, CaptionHasGradient, CaptionGradientStart,
CaptionGradientEnd to name just a few.
I know propertie... more >>
Position label and text in CreateComponentsCore()
Posted by Gabriel Lozano-Morán at 11/2/2005 12:00:00 AM
Hey I hope someone can help me with a clean solution for the following
puzzle:
I have written a custom toolboxitem that overrides the
CreateComponentsCore() operation that returns two objects, a subclassed
label and a subclassed textbox. The purpose is to create a label and a
textbox that rep... more >>
|