all groups > dotnet windows forms designtime > recent posts
Reg Composite control in windows appln
Posted by AAA Begum at 4/23/2008 11:46:47 PM
I want to build a Composite Control in Windows Application using
C#.net, Inside it I want to have two labels , two textboxes , one
button, one dropdownlistbox. whenever I click on Button I should get
data from database.
how to achive this functionality?
Thanks in Advance for Ur Help... more >>
User-control with multiple control containers - design-time issue (mimicing the TabControl)
Posted by Olaf Rabbachin at 4/23/2008 9:29:57 AM
Hi everybody,
I'm working on a user-control whose behaviour is identical to the
TabControl. That is, there is an area in which the active sub-container
(i.e. TabPage) can be selected plus an area in which users drop controls at
design time.
Browsing the web I found a couple of articles that... more >>
Re: Need Help to modify designer output code
Posted by v-lliu@online.microsoft.com at 4/22/2008 2:36:20 AM
Hi Schneider,
Thank you for your reply!
I'm sorry but I have to say that there may no automated way to
override/intercept all root designers including pre-existing.
Custom code dom serializer only works on a derived class. For example, Form
A has a custom code dom serializer and Form B ... more >>
Re: Need Help to modify designer output code
Posted by v-lliu@online.microsoft.com at 4/17/2008 10:13:28 AM
Hi Schneider,
Thank you for your reply!
For existing root designers, you need to derive the exiting Forms from the
base Form which is adorned with the custom type codedom serializer. That's
to say, change the base class of the existing Forms from
System.Windows.Forms.Form to MyCustomForm... more >>
Re: Need Help to modify designer output code
Posted by eschneider at 4/17/2008 9:23:39 AM
Thats not what I'm looking for. I can not expect customers to do that, it
must be automated.
I want to override/intercept all root designers including pre-existing.
Is it not possible to replace a Root designer with-in the serialization
manager?
Can I override or replace the serialization m... more >>
All properties and events are grayed out in designer properties wi
Posted by vinokuax at 4/17/2008 7:33:01 AM
I have a form (Form1) that has a DataGridView control on it. I inherited
another form (Form2) from Form1. When I go to change some properties of the
DataGridView control on Form2 I see all DataGridView properties and events
are grayed out in the designer Properties window. Also, I changed the ... more >>
Re: Need Help to modify designer output code
Posted by eschneider at 4/15/2008 9:36:06 AM
That could only work for new Forms or new Root designers.
How can I intercept existing root designers?
Thanks,
Schneider
"Linda Liu[MSFT]" <v-lliu@online.microsoft.com> wrote in message
news:DlrLanrnIHA.4932@TK2MSFTNGHUB02.phx.gbl...
> Hi Schneider,
>
> I got a reply from an expert in... more >>
Re: Need Help to modify designer output code
Posted by v-lliu@online.microsoft.com at 4/15/2008 5:30:35 AM
Hi Schneider,
I got a reply from an expert in the WinForm design time field.
He said that to control the code generation of a root object like a form,
we need to derive from the TypeCodeDomSerializer class to implement the
code generation we like. Then add a DesignerSerializerAttribute to... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Re: Need Help to modify designer output code
Posted by eschneider at 4/14/2008 12:40:36 PM
Any update on this?
Thanks,
Schneider
"eschneider" <eschneider@community.nospam> wrote in message
news:ugLZLv0mIHA.5280@TK2MSFTNGP02.phx.gbl...
> Yes, thats what I'm looking for.
>
> Thanks,
> Schneider
>
>
>
> "Linda Liu[MSFT]" <v-lliu@online.microsoft.com> wrote in message
> n... more >>
Re: PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this?
Posted by Jack Jackson at 4/10/2008 6:54:06 PM
On Thu, 10 Apr 2008 12:26:12 -0700, "DR"
<softwareengineer98037@yahoo.com> wrote:
>PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!
>How come? What can cause this?
>
Why do you keep posting this question? There are answers in one of
the newsgroups to one of th... more >>
Re: Need Help to modify designer output code
Posted by eschneider at 4/10/2008 3:45:20 PM
Yes, thats what I'm looking for.
Thanks,
Schneider
"Linda Liu[MSFT]" <v-lliu@online.microsoft.com> wrote in message
news:%23pBKntumIHA.10116@TK2MSFTNGHUB02.phx.gbl...
> Hi Schneider,
>
> Thank you for your prompt reply!
>
> A custom CodeDomSerializer for a control can only control ... more >>
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this?
Posted by DR at 4/10/2008 12:26:12 PM
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!!
How come? What can cause this?
... more >>
Re: Need Help to modify designer output code
Posted by v-lliu@online.microsoft.com at 4/10/2008 9:15:07 AM
Hi Schneider,
Thank you for your prompt reply!
A custom CodeDomSerializer for a control can only control the generation of
the control initialization code, which don't contain the code that adds the
control to its parent's Controls collection, e.g. a form.
So I also think that we need t... more >>
Re: Designer idea #1?
Posted by v-lliu@online.microsoft.com at 4/9/2008 7:15:14 AM
Hi Shneider,
Thank you for your quick response!
> The thought is I could build a MyForm of type Windows.Form, and it shows
up on the Toolbox.
This is not supported in VS so far.
> When a user clicks on MyForm the designer shows the MyForm much like it
does now, except it's a custom f... more >>
Re: Need Help to modify designer output code
Posted by eschneider at 4/7/2008 10:05:03 AM
Yes, but I think I still need to intercept the Root serializer for the
Form/Panel?
"Linda Liu[MSFT]" <v-lliu@online.microsoft.com> wrote in message
news:J6UeX2HmIHA.9932@TK2MSFTNGHUB02.phx.gbl...
> Hi Schneider,
>
> You need to implement a custom CodeDomSerializer to control the genera... more >>
RE: Need Help to modify designer output code
Posted by v-lliu@online.microsoft.com at 4/7/2008 7:04:10 AM
Hi Schneider,
You need to implement a custom CodeDomSerializer to control the generation
of component initialization code for your custom control/component at
design time. And then associate your custom CodeDomSerializer
implementation with the type of your control/component using a
Desig... more >>
RE: Designer idea #1?
Posted by v-lliu@online.microsoft.com at 4/7/2008 2:12:15 AM
Hi Schneider,
> I would like to see the Form in the control toolbox.
Could you tell me what the "control toolbox" is?
> Why should the IDE decide what form to create.
VS has several item templates, e.g Windows Form, Inherited Form and so on.
It's we that decide what form to create by ... more >>
Need Help to modify designer output code
Posted by schneider at 4/6/2008 11:26:26 PM
Hello,
I'm trying to figure out how to change the lines following " '*** ' of
designer code.
I think I need to hijack the root designer and control designer. Looking for
some examples and/or direction.
below is a sample Form changed by me, to what I would like it to look like.
Thanks,
S... more >>
Re: Designer idea #1?
Posted by schneider at 4/6/2008 11:08:12 PM
"Linda Liu[MSFT]" <v-lliu@online.microsoft.com> wrote in message
news:mq2HUTFmIHA.7196@TK2MSFTNGHUB02.phx.gbl...
> Hi Schneider,
>
>> I would like to see the Form in the control toolbox.
>
> Could you tell me what the "control toolbox" is?
Toolbox where all the controls are: Scroll Bar, ... more >>
Designer idea #1?
Posted by schneider at 4/5/2008 4:48:23 PM
Designer idea #1:
Hello,
I would like to see the Form in the control toolbox. I think there would be
a lot of value. Why should the IDE decide what form to create. I could
create custome Form/Controls with different needs.
I welcome anyones thoughts.
Thanks,
Schneider
... more >>
Re: User Type Property in the designer.
Posted by v-lliu@online.microsoft.com at 4/3/2008 9:44:36 AM
Hi Patricio,
Thank you for your prompt reply and sample project!
The reason why the CustomType property doesn't allow the user to select a
value in the Properties window is that the CustomType type is neither a
control nor a component.
If you derive the class CustomType from the Contro... more >>
Re: User Type Property in the designer.
Posted by Patricio at 4/2/2008 2:03:30 PM
Hello Linda,
Thank you for your answer.
Actually, I think what I want is simpler than that. I just want the
Property Browser to allow the user to connect the User Control property to
one of the Host fields. For known types this works by default.
I am attaching a sample solution to sho... more >>
RE: User Type Property in the designer.
Posted by v-lliu@online.microsoft.com at 4/2/2008 8:07:34 AM
Hi Patricio,
Based on my understanding, you have a user control that contains a public
property of a custom type. When you drag the user control on a form, the
public custom type property is shown in the Properties window but the sub
properties of the custom type are not shown under the cus... more >>
RE: Composite Control Issue
Posted by v-lliu@online.microsoft.com at 4/2/2008 5:03:33 AM
Hi Patricio,
To enable your composite user control to support the same design-time
function as the SplitContainer, you need to author a custom designer for
the composite user control to extend the design-time environment.
In detail, you extend the appearance of your custom design UI by
... more >>
User Type Property in the designer.
Posted by Patricio Vidal at 4/1/2008 8:07:42 PM
Hello,
I have a user control that has a custom type public property. I added de
Browsable attribute so that it appears in the designer. When I drop that
control on another control or form the custom type property is visible but I
can not assigned to one of the container fields. If I use ... more >>
Composite Control Issue
Posted by Patricio Vidal at 4/1/2008 8:03:27 PM
Hello,
I have a composite user control that contains a ListView and a PictureBox
inside a SplitContainer When I drag this user control to another user
control I would like the user to be able to edit the ListView control. How
do I do that? I created a public property in the composite cont... more >>
some new languages
Posted by davidboon28@gmail.com at 3/18/2008 6:39:25 AM
http://comp-languages.blogspot.com
http://computer-language-tutorials.blogspot.com... more >>
Disable event handler generation on double click
Posted by Jarod80 at 3/17/2008 11:18:09 AM
Hi, I'm having a problem with visual studio, it often causes/generate double
click when I normally click on controls. This always cause the creation of
the default event handler for the control and a switch to source view. I
think it's possible to disable this automatic generation but I'm not ... more >>
Updating VS project assemblies after dropping an item from the too
Posted by Robert Dupuy at 3/14/2008 7:52:00 AM
Under Visual Studio, when you drop a toolbox item on a design surface, a
reference to the assembly that contains the dropped control is automatically
added to the Visual Studio project. But the dependency assemblies of this
assembly are not added. I would like to know how to do this. I've alre... more >>
buy ampicillin 500mg buy ampicillin storage penicillin buy ampicillin buy ampicillin 250mg concentration of buy ampicillin antibiotic buy ampicillin b
Posted by Clint Eastwood at 3/12/2008 5:00:35 AM
buy ampicillin 500mg buy ampicillin storage penicillin buy ampicillin
buy ampicillin 250mg concentration of buy ampicillin antibiotic buy
ampicillin buy ampicillin in pregnancy buy ampicillin mode of buy
ampicillin buy ampicillin protocol buy ampicillin resistance buy
ampicillin sublacta... more >>
|