473,887 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make custom control act like container for other controls

Hello

i have made a custom control. i have placed a panel on it. I want this
panel to behave just like the normal panel. The problem i was having is
that the panel on my custom control doesnt accept other controls. The
control i drag drop on it becomes the child of my custom control's
parent form and not the child of my custom control. Then i added this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line does). Now
when i drag drop a control (say text box) onto the panel of my custom
control, the newly added control goes behind the custom control. It
becomes the child of my Custom control but i am unable to bring it to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that accepts other
control on design time (through drag drop) and behaves like ordinary
user control.

Regards
Rizwan

Jan 4 '07
15 6545
Another thing i have found out is that the custom control resizes
itself at compile time. Even with resizing, it should work fine because
of anchor.
I can assign positions to control under resize event. but ofcourse this
is not a good way.

//Rizwan

ri***********@g mail.com wrote:
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing some
simple code that reproduces the issue you are having. I can keep guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** *************@5 1g2000cwl.googl egroups.com...
Hi Dave
>
yes you are right, i shouldnt have created new thread.
>
i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.
>
i try to make clear what is the problem now.
>
I place my custom control over the form. i compile it, everything works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.
>
now here comes the problem. I place my custom control over the form. i
compile it, everything works fine. i resize my custom control (make it
smaller), place control from toolbox over my custom control, recompile
it. The checkbox and image (which i mentioned in earlier posts) become
hidden (they are not deleted, they become hidden).
>
Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.
>
Regards
//Rizwan
>
Dave Sexton wrote:
>Hi Rizwan,
>>
>I'm curious to know whether the controls are being removed or simply
>hidden.
>>
>You may want to post some code as I mentioned in your other thread
>otherwise
>it's going to be difficult, if not impossible, to help.
>>
>--
>Dave Sexton
>http://davesexton.com/blog
>>
><ri*********** @gmail.comwrote in message
>news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hi Dave
>
lot of thanks for replying.
>
by template control i mean the controls which are added in its default
state, for example , the maximize minimze image, It is there in the
default state, and user can not change it in design time.
>
Disappearing controls: The controls (only default controls) disappear
when i compile the application. When i add my custom control to a form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as soon
as i compile the application (after adding control from toolbar), the
controls (only default controls) disappear. And ofcourse when i run the
application they are not visible too.
>
i have two default controls on custom control, one is check box and
other is picture box. I add these controls during the desiging of the
custom control (not the design time of form). I set the picture for
picture control and check the checkbox in the constructor of the custom
control. After building the code, my custom control is ready for use
with two default controls on it. Please note that there is also a group
box used as line seperator (it is also a default control). but this
group box doesnt disappear. on compile time
>
i hope the situation is clear now :)
>
Regards
Rizwan
>
Dave Sexton wrote:
>Hi Rizwan,
>>
>I don't really understand the problem.
>>
>By "template" do you mean your custom control in its default state
>when
>it's
>first added to a Form?
>>
>Are the disappearing controls disappearing in the designer, at runtime
>or
>both?
>>
>Are you adding the disappearing controls to your custom control in its
>constructor or upon some event such as Load? Are they even being
>added
>by
>the custom control itself?
>>
>--
>Dave Sexton
>http://davesexton.com/blog
>>
><ri*********** @gmail.comwrote in message
>news:11******* *************** @51g2000cwl.goo glegroups.com.. .
Hello
>
i have now removed panel from my custom control. The control added
by
drag drop is now becoming the child of my custom control but When i
compile the application after dropping a control say text box on my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom control
too.
The property picture boxes (which i specify at the design time)
remains
intact while those (check box and picture box) which are the part of
template disappear.
>
I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong now?
>
Regards
//Rizwan
>
>
Dave Sexton wrote:
>Hi Rizwan,
>>
>To support drag & drap in the designer for your custom control you
>can
>inherit from ContainerContro l instead of Control or use the
>DesignerAttrib ute as you have illustrated.
>>
>However, you won't be able to drag & drop controls into a Panel
>that
>is
>within your control. Drag & drop support doesn't go that "deep".
>>
>--
>Dave Sexton
>http://davesexton.com/blog
>>
><ri*********** @gmail.comwrote in message
>news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hello
>
i have made a custom control. i have placed a panel on it. I want
this
panel to behave just like the normal panel. The problem i was
having
is
that the panel on my custom control doesnt accept other controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line does).
Now
when i drag drop a control (say text box) onto the panel of my
custom
control, the newly added control goes behind the custom control.
It
becomes the child of my Custom control but i am unable to bring
it
to
front. Also my custom control becomes distorted.
>
To summarize all. I want to have a custom control that accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.
>
Regards
Rizwan
>
>
>
>
Jan 8 '07 #11
Hi,

I was able to reproduce the problem:

1. Create a UserControl
2. Add a CheckBox
3. Change the class to derive from ContainerContro l in code
4. Build.
5. Create a Form
6. Add the custom control to the Form
7. Add a TextBox to the custom control in the Form designer
8. Build and run.

Controls defined in the custom control disappear at runtime and in the
designer; however, controls added to the custom conrol in the Form persist.

This behavior appears to be the fault of the ContainerContro l's designer. A
workaround is to derive your control from Panel instead.

HTH

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
>Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing some
simple code that reproduces the issue you are having. I can keep
guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* **************@ 51g2000cwl.goog legroups.com...
Hi Dave

yes you are right, i shouldnt have created new thread.

i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.

i try to make clear what is the problem now.

I place my custom control over the form. i compile it, everything works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.

now here comes the problem. I place my custom control over the form. i
compile it, everything works fine. i resize my custom control (make it
smaller), place control from toolbox over my custom control, recompile
it. The checkbox and image (which i mentioned in earlier posts) become
hidden (they are not deleted, they become hidden).

Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.

Regards
//Rizwan

Dave Sexton wrote:
Hi Rizwan,

I'm curious to know whether the controls are being removed or simply
hidden.

You may want to post some code as I mentioned in your other thread
otherwise
it's going to be difficult, if not impossible, to help.

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hi Dave

lot of thanks for replying.

by template control i mean the controls which are added in its
default
state, for example , the maximize minimze image, It is there in the
default state, and user can not change it in design time.

Disappearing controls: The controls (only default controls)
disappear
when i compile the application. When i add my custom control to a
form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as
soon
as i compile the application (after adding control from toolbar),
the
controls (only default controls) disappear. And ofcourse when i run
the
application they are not visible too.

i have two default controls on custom control, one is check box and
other is picture box. I add these controls during the desiging of
the
custom control (not the design time of form). I set the picture for
picture control and check the checkbox in the constructor of the
custom
control. After building the code, my custom control is ready for use
with two default controls on it. Please note that there is also a
group
box used as line seperator (it is also a default control). but this
group box doesnt disappear. on compile time

i hope the situation is clear now :)

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

I don't really understand the problem.

By "template" do you mean your custom control in its default state
when
it's
first added to a Form?

Are the disappearing controls disappearing in the designer, at
runtime
or
both?

Are you adding the disappearing controls to your custom control in
its
constructor or upon some event such as Load? Are they even being
added
by
the custom control itself?

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @51g2000cwl.goo glegroups.com.. .
Hello

i have now removed panel from my custom control. The control
added
by
drag drop is now becoming the child of my custom control but When
i
compile the application after dropping a control say text box on
my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom control
too.
The property picture boxes (which i specify at the design time)
remains
intact while those (check box and picture box) which are the part
of
template disappear.

I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong
now?

Regards
//Rizwan
Dave Sexton wrote:
Hi Rizwan,

To support drag & drap in the designer for your custom control
you
can
inherit from ContainerContro l instead of Control or use the
DesignerAttrib ute as you have illustrated.

However, you won't be able to drag & drop controls into a Panel
that
is
within your control. Drag & drop support doesn't go that
"deep".

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hello

i have made a custom control. i have placed a panel on it. I
want
this
panel to behave just like the normal panel. The problem i was
having
is
that the panel on my custom control doesnt accept other
controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i
added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line
does).
Now
when i drag drop a control (say text box) onto the panel of my
custom
control, the newly added control goes behind the custom
control.
It
becomes the child of my Custom control but i am unable to
bring
it
to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.

Regards
Rizwan


Jan 9 '07 #12
Hi

the steps you mentioned dont talk about the resizing of custom control
on the Form in Form Designer. Control defined in the custom control
only disappear if i resize the custom control (make is smaller).

If i strickly follow steps you mentioend (without resizing) then
everything works fine.

Add this step between 8 and 9. i.e. Decrease the size of custom control
such that the control defined on custom control lies out side the
boundry of new size.

i have already tried driving my custom control from panel too, it
doesnt work.

Regards
Rizwan

Dave Sexton wrote:
Hi,

I was able to reproduce the problem:

1. Create a UserControl
2. Add a CheckBox
3. Change the class to derive from ContainerContro l in code
4. Build.
5. Create a Form
6. Add the custom control to the Form
7. Add a TextBox to the custom control in the Form designer
8. Build and run.

Controls defined in the custom control disappear at runtime and in the
designer; however, controls added to the custom conrol in the Form persist.

This behavior appears to be the fault of the ContainerContro l's designer. A
workaround is to derive your control from Panel instead.

HTH

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing some
simple code that reproduces the issue you are having. I can keep
guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** *************@5 1g2000cwl.googl egroups.com...
Hi Dave

yes you are right, i shouldnt have created new thread.

i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.

i try to make clear what is the problem now.

I place my custom control over the form. i compile it, everything works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.

now here comes the problem. I place my custom control over the form. i
compile it, everything works fine. i resize my custom control (make it
smaller), place control from toolbox over my custom control, recompile
it. The checkbox and image (which i mentioned in earlier posts) become
hidden (they are not deleted, they become hidden).

Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.

Regards
//Rizwan

Dave Sexton wrote:
Hi Rizwan,

I'm curious to know whether the controls are being removed or simply
hidden.

You may want to post some code as I mentioned in your other thread
otherwise
it's going to be difficult, if not impossible, to help.

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
Hi Dave

lot of thanks for replying.

by template control i mean the controls which are added in its
default
state, for example , the maximize minimze image, It is there in the
default state, and user can not change it in design time.

Disappearing controls: The controls (only default controls)
disappear
when i compile the application. When i add my custom control to a
form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as
soon
as i compile the application (after adding control from toolbar),
the
controls (only default controls) disappear. And ofcourse when i run
the
application they are not visible too.

i have two default controls on custom control, one is check box and
other is picture box. I add these controls during the desiging of
the
custom control (not the design time of form). I set the picture for
picture control and check the checkbox in the constructor of the
custom
control. After building the code, my custom control is ready for use
with two default controls on it. Please note that there is also a
group
box used as line seperator (it is also a default control). but this
group box doesnt disappear. on compile time

i hope the situation is clear now :)

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

I don't really understand the problem.

By "template" do you mean your custom control in its default state
when
it's
first added to a Form?

Are the disappearing controls disappearing in the designer, at
runtime
or
both?

Are you adding the disappearing controls to your custom control in
its
constructor or upon some event such as Load? Are they even being
added
by
the custom control itself?

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ 51g2000cwl.goog legroups.com...
Hello

i have now removed panel from my custom control. The control
added
by
drag drop is now becoming the child of my custom control but When
i
compile the application after dropping a control say text box on
my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom control
too.
The property picture boxes (which i specify at the design time)
remains
intact while those (check box and picture box) which are the part
of
template disappear.

I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong
now?

Regards
//Rizwan
Dave Sexton wrote:
Hi Rizwan,

To support drag & drap in the designer for your custom control
you
can
inherit from ContainerContro l instead of Control or use the
DesignerAttribu te as you have illustrated.

However, you won't be able to drag & drop controls into a Panel
that
is
within your control. Drag & drop support doesn't go that
"deep".

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
Hello

i have made a custom control. i have placed a panel on it. I
want
this
panel to behave just like the normal panel. The problem i was
having
is
that the panel on my custom control doesnt accept other
controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i
added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line
does).
Now
when i drag drop a control (say text box) onto the panel of my
custom
control, the newly added control goes behind the custom
control.
It
becomes the child of my Custom control but i am unable to
bring
it
to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.

Regards
Rizwan


Jan 9 '07 #13
Hi

download 'short complete' program from here
http://download.yousendit.com/09615D3C279284F9

thanks
//Rizwan

Dave Sexton wrote:
Hi,

I was able to reproduce the problem:

1. Create a UserControl
2. Add a CheckBox
3. Change the class to derive from ContainerContro l in code
4. Build.
5. Create a Form
6. Add the custom control to the Form
7. Add a TextBox to the custom control in the Form designer
8. Build and run.

Controls defined in the custom control disappear at runtime and in the
designer; however, controls added to the custom conrol in the Form persist.

This behavior appears to be the fault of the ContainerContro l's designer. A
workaround is to derive your control from Panel instead.

HTH

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing some
simple code that reproduces the issue you are having. I can keep
guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** *************@5 1g2000cwl.googl egroups.com...
Hi Dave

yes you are right, i shouldnt have created new thread.

i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.

i try to make clear what is the problem now.

I place my custom control over the form. i compile it, everything works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.

now here comes the problem. I place my custom control over the form. i
compile it, everything works fine. i resize my custom control (make it
smaller), place control from toolbox over my custom control, recompile
it. The checkbox and image (which i mentioned in earlier posts) become
hidden (they are not deleted, they become hidden).

Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.

Regards
//Rizwan

Dave Sexton wrote:
Hi Rizwan,

I'm curious to know whether the controls are being removed or simply
hidden.

You may want to post some code as I mentioned in your other thread
otherwise
it's going to be difficult, if not impossible, to help.

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
Hi Dave

lot of thanks for replying.

by template control i mean the controls which are added in its
default
state, for example , the maximize minimze image, It is there in the
default state, and user can not change it in design time.

Disappearing controls: The controls (only default controls)
disappear
when i compile the application. When i add my custom control to a
form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as
soon
as i compile the application (after adding control from toolbar),
the
controls (only default controls) disappear. And ofcourse when i run
the
application they are not visible too.

i have two default controls on custom control, one is check box and
other is picture box. I add these controls during the desiging of
the
custom control (not the design time of form). I set the picture for
picture control and check the checkbox in the constructor of the
custom
control. After building the code, my custom control is ready for use
with two default controls on it. Please note that there is also a
group
box used as line seperator (it is also a default control). but this
group box doesnt disappear. on compile time

i hope the situation is clear now :)

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

I don't really understand the problem.

By "template" do you mean your custom control in its default state
when
it's
first added to a Form?

Are the disappearing controls disappearing in the designer, at
runtime
or
both?

Are you adding the disappearing controls to your custom control in
its
constructor or upon some event such as Load? Are they even being
added
by
the custom control itself?

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ 51g2000cwl.goog legroups.com...
Hello

i have now removed panel from my custom control. The control
added
by
drag drop is now becoming the child of my custom control but When
i
compile the application after dropping a control say text box on
my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom control
too.
The property picture boxes (which i specify at the design time)
remains
intact while those (check box and picture box) which are the part
of
template disappear.

I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong
now?

Regards
//Rizwan
Dave Sexton wrote:
Hi Rizwan,

To support drag & drap in the designer for your custom control
you
can
inherit from ContainerContro l instead of Control or use the
DesignerAttribu te as you have illustrated.

However, you won't be able to drag & drop controls into a Panel
that
is
within your control. Drag & drop support doesn't go that
"deep".

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
Hello

i have made a custom control. i have placed a panel on it. I
want
this
panel to behave just like the normal panel. The problem i was
having
is
that the panel on my custom control doesnt accept other
controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i
added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line
does).
Now
when i drag drop a control (say text box) onto the panel of my
custom
control, the newly added control goes behind the custom
control.
It
becomes the child of my Custom control but i am unable to
bring
it
to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.

Regards
Rizwan


Jan 9 '07 #14
Hi,

That's strange. The steps I gave behaved exactly as I mentioned. No
resizing was required and deriving from Panel solved the problem. I'll take
a look at your code from your adjacent post and get back to you.

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** **************@ i15g2000cwa.goo glegroups.com.. .
Hi

the steps you mentioned dont talk about the resizing of custom control
on the Form in Form Designer. Control defined in the custom control
only disappear if i resize the custom control (make is smaller).

If i strickly follow steps you mentioend (without resizing) then
everything works fine.

Add this step between 8 and 9. i.e. Decrease the size of custom control
such that the control defined on custom control lies out side the
boundry of new size.

i have already tried driving my custom control from panel too, it
doesnt work.

Regards
Rizwan

Dave Sexton wrote:
>Hi,

I was able to reproduce the problem:

1. Create a UserControl
2. Add a CheckBox
3. Change the class to derive from ContainerContro l in code
4. Build.
5. Create a Form
6. Add the custom control to the Form
7. Add a TextBox to the custom control in the Form designer
8. Build and run.

Controls defined in the custom control disappear at runtime and in the
designer; however, controls added to the custom conrol in the Form
persist.

This behavior appears to be the fault of the ContainerContro l's designer.
A
workaround is to derive your control from Panel instead.

HTH

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @q40g2000cwq.go oglegroups.com. ..
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing
some
simple code that reproduces the issue you are having. I can keep
guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* **************@ 51g2000cwl.goog legroups.com...
Hi Dave

yes you are right, i shouldnt have created new thread.

i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.

i try to make clear what is the problem now.

I place my custom control over the form. i compile it, everything
works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.

now here comes the problem. I place my custom control over the form.
i
compile it, everything works fine. i resize my custom control (make
it
smaller), place control from toolbox over my custom control,
recompile
it. The checkbox and image (which i mentioned in earlier posts)
become
hidden (they are not deleted, they become hidden).

Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.

Regards
//Rizwan

Dave Sexton wrote:
Hi Rizwan,

I'm curious to know whether the controls are being removed or
simply
hidden.

You may want to post some code as I mentioned in your other thread
otherwise
it's going to be difficult, if not impossible, to help.

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hi Dave

lot of thanks for replying.

by template control i mean the controls which are added in its
default
state, for example , the maximize minimze image, It is there in
the
default state, and user can not change it in design time.

Disappearing controls: The controls (only default controls)
disappear
when i compile the application. When i add my custom control to a
form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as
soon
as i compile the application (after adding control from toolbar),
the
controls (only default controls) disappear. And ofcourse when i
run
the
application they are not visible too.

i have two default controls on custom control, one is check box
and
other is picture box. I add these controls during the desiging of
the
custom control (not the design time of form). I set the picture
for
picture control and check the checkbox in the constructor of the
custom
control. After building the code, my custom control is ready for
use
with two default controls on it. Please note that there is also a
group
box used as line seperator (it is also a default control). but
this
group box doesnt disappear. on compile time

i hope the situation is clear now :)

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

I don't really understand the problem.

By "template" do you mean your custom control in its default
state
when
it's
first added to a Form?

Are the disappearing controls disappearing in the designer, at
runtime
or
both?

Are you adding the disappearing controls to your custom control
in
its
constructor or upon some event such as Load? Are they even
being
added
by
the custom control itself?

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @51g2000cwl.goo glegroups.com.. .
Hello

i have now removed panel from my custom control. The control
added
by
drag drop is now becoming the child of my custom control but
When
i
compile the application after dropping a control say text box
on
my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom
control
too.
The property picture boxes (which i specify at the design
time)
remains
intact while those (check box and picture box) which are the
part
of
template disappear.

I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong
now?

Regards
//Rizwan
Dave Sexton wrote:
Hi Rizwan,

To support drag & drap in the designer for your custom
control
you
can
inherit from ContainerContro l instead of Control or use the
DesignerAttrib ute as you have illustrated.

However, you won't be able to drag & drop controls into a
Panel
that
is
within your control. Drag & drop support doesn't go that
"deep".

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hello

i have made a custom control. i have placed a panel on it.
I
want
this
panel to behave just like the normal panel. The problem i
was
having
is
that the panel on my custom control doesnt accept other
controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i
added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line
does).
Now
when i drag drop a control (say text box) onto the panel of
my
custom
control, the newly added control goes behind the custom
control.
It
becomes the child of my Custom control but i am unable to
bring
it
to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that
accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.

Regards
Rizwan



Jan 10 '07 #15
Hi,

I tried a bunch of things with your source code but I can't reproduce the
problem, not even with resizing the control as you've suggested. It's
strange since your code derives from ContainerContro l, as I originally
suggested, and it seems to work just fine but it didn't work when I tested
it with an even simpler program (just the control and a TextBox). I tried
adding a control to your user control in the Form from the toolbox, dragging
the button into your control, resizing it in all different directions,
closing and reopening the Form designer and closing and reopening the
UserControl designer. I also tried deriving from Panel, which worked for me
in my testing and worked in your program as well.

It seems like a designer bug to me, especially because this behavior is
unpredictable. You may want to file a bug report with Microsoft. Do some
research to make sure it's not already submitted first:

https://connect.microsoft.com/site/s...1.0&siteid=210

For now, try coding it without designer support and see if that helps.

GL

--
Dave Sexton
http://davesexton.com/blog

<ri***********@ gmail.comwrote in message
news:11******** *************@3 8g2000cwa.googl egroups.com...
Hi

download 'short complete' program from here
http://download.yousendit.com/09615D3C279284F9

thanks
//Rizwan

Dave Sexton wrote:
>Hi,

I was able to reproduce the problem:

1. Create a UserControl
2. Add a CheckBox
3. Change the class to derive from ContainerContro l in code
4. Build.
5. Create a Form
6. Add the custom control to the Form
7. Add a TextBox to the custom control in the Form designer
8. Build and run.

Controls defined in the custom control disappear at runtime and in the
designer; however, controls added to the custom conrol in the Form
persist.

This behavior appears to be the fault of the ContainerContro l's designer.
A
workaround is to derive your control from Panel instead.

HTH

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @q40g2000cwq.go oglegroups.com. ..
Hi Dave

Ok it seems like i know the problem now :) but not the solution. I am
going to re write the problem in relation to 'short but complete
program' that i have created. Code is appended at the end.

I have a custom control, which contains only one default control i.e.
check box. This checkbox is added into the template of custom control
and act as default control of my custom control. The checkbox is placed
to top right corner of custom control and is anchor is set to top right
corner too.

I add my custom control to a form and compile it. Now i resize (making
it smaller) from the top right corner towards centre. As the anchor of
the checkbox is set to top right, therefore it moves with the top right
corner. I compile the program. The custom box is now displayed smaller
in size with checkbox attached to top right corner. Everything is fine.

Now i repeat the same procedure after placing a control say Button from
toolbox on my custom control. When i am resizing the custom control
(making it smaller, moving from top right corner to centre) the
checkbox moves with the top right corner. Everything looks fine before
compiling. But when i compile the application, the checkbox is gone
(not displayed). I think it looses its anchor. when i again resize the
custom control (making it bigger enough to be at least of original size
by dragging the top right corner to the angle of 45 degree) the
checkbox is dispalyed again. Same happens with all default controls of
custom box.

My question now is that, why the toolbox control make default controls
of custom control loose their anchor? or is this really the anchor
problem or something else...

i am placing the code of two classes. i dont know whether this code is
enough or not.

///////////////////////////////////////
namespace tempPrj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
}
}
///////////////////////////////////////

///////////////////////////////////////
namespace tempPrj
{
public partial class UserControl2 : ContainerContro l
{
public UserControl2()
{
InitializeCompo nent();
checkBox1.Check ed = true;
}
}
}
///////////////////////////////////////

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

At this point I doubt anyone will be able to help you without seeing
some
simple code that reproduces the issue you are having. I can keep
guessing,
but we probably won't get anywhere with it :)

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* **************@ 51g2000cwl.goog legroups.com...
Hi Dave

yes you are right, i shouldnt have created new thread.

i read ur reply in new thread. i created simple application to
replicate the error. what i found now is the hiding of controls is
because of the change in size of custom control.

i try to make clear what is the problem now.

I place my custom control over the form. i compile it, everything
works
fine. i resize my custom control (make it smaller), recompile it.
everything works fine.

now here comes the problem. I place my custom control over the form.
i
compile it, everything works fine. i resize my custom control (make
it
smaller), place control from toolbox over my custom control,
recompile
it. The checkbox and image (which i mentioned in earlier posts)
become
hidden (they are not deleted, they become hidden).

Now i am wondering what the control from toolbox does to my custom
control. The resizing (making smaller in size) works fine without
adding the control from toolbox.

Regards
//Rizwan

Dave Sexton wrote:
Hi Rizwan,

I'm curious to know whether the controls are being removed or
simply
hidden.

You may want to post some code as I mentioned in your other thread
otherwise
it's going to be difficult, if not impossible, to help.

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hi Dave

lot of thanks for replying.

by template control i mean the controls which are added in its
default
state, for example , the maximize minimze image, It is there in
the
default state, and user can not change it in design time.

Disappearing controls: The controls (only default controls)
disappear
when i compile the application. When i add my custom control to a
form,
every thing is fine. i compiel the code, works fine. when i add
control from toolbar by drag drop, everything works fine. But as
soon
as i compile the application (after adding control from toolbar),
the
controls (only default controls) disappear. And ofcourse when i
run
the
application they are not visible too.

i have two default controls on custom control, one is check box
and
other is picture box. I add these controls during the desiging of
the
custom control (not the design time of form). I set the picture
for
picture control and check the checkbox in the constructor of the
custom
control. After building the code, my custom control is ready for
use
with two default controls on it. Please note that there is also a
group
box used as line seperator (it is also a default control). but
this
group box doesnt disappear. on compile time

i hope the situation is clear now :)

Regards
Rizwan

Dave Sexton wrote:
Hi Rizwan,

I don't really understand the problem.

By "template" do you mean your custom control in its default
state
when
it's
first added to a Form?

Are the disappearing controls disappearing in the designer, at
runtime
or
both?

Are you adding the disappearing controls to your custom control
in
its
constructor or upon some event such as Load? Are they even
being
added
by
the custom control itself?

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @51g2000cwl.goo glegroups.com.. .
Hello

i have now removed panel from my custom control. The control
added
by
drag drop is now becoming the child of my custom control but
When
i
compile the application after dropping a control say text box
on
my
custom control, the controls present on the template of custom
control
disappear.
i have two controls defined in the template, a checkbox and an
image.
There are two picture boxes as the property of the custom
control
too.
The property picture boxes (which i specify at the design
time)
remains
intact while those (check box and picture box) which are the
part
of
template disappear.

I have tried by setting designer property and inheriting from
ContainerContro l, same problem with both. what is going wrong
now?

Regards
//Rizwan
Dave Sexton wrote:
Hi Rizwan,

To support drag & drap in the designer for your custom
control
you
can
inherit from ContainerContro l instead of Control or use the
DesignerAttrib ute as you have illustrated.

However, you won't be able to drag & drop controls into a
Panel
that
is
within your control. Drag & drop support doesn't go that
"deep".

--
Dave Sexton
http://davesexton.com/blog

<ri*********** @gmail.comwrote in message
news:11******* *************** @v33g2000cwv.go oglegroups.com. ..
Hello

i have made a custom control. i have placed a panel on it.
I
want
this
panel to behave just like the normal panel. The problem i
was
having
is
that the panel on my custom control doesnt accept other
controls.
The
control i drag drop on it becomes the child of my custom
control's
parent form and not the child of my custom control. Then i
added
this
line
"[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Windows. Forms.Design")]"
before my custom control class (i dont know what this line
does).
Now
when i drag drop a control (say text box) onto the panel of
my
custom
control, the newly added control goes behind the custom
control.
It
becomes the child of my Custom control but i am unable to
bring
it
to
front. Also my custom control becomes distorted.

To summarize all. I want to have a custom control that
accepts
other
control on design time (through drag drop) and behaves like
ordinary
user control.

Regards
Rizwan



Jan 10 '07 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2233
by: Juan Romero | last post by:
Hey guys, I am working on a web custom control that basically draws a table (ASP Table) with a few child controls in the cells. I have a command button inside one of these cells. The problem I am running into is that I cannot get the click event of this object handled. I have tried wiring the event with "AddHandler" among other things and that seems not to work neither.
7
3355
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid, theres a requirement to show a drop down menu list (this is a control I downloaded online) in one of the columns. For the purposes of this question, Ive implemented the drop down menu as a drop down list instead. Ive got all this working at this...
9
4700
by: Jaybuffet | last post by:
my aspx has something like this <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <mycontrol:ctl id="ctlId" obj='<%# Container.DataItem %>' showItem="true"/> </ItemTemplate> /asp:Repeater> The DataSource for this Repeater is a CollectionBase of objects and is
7
3329
by: aviad | last post by:
I am writing a Form application I need it to fit both resolution of 1600*1200 and 800*600 (and any other resolution that might jump in) the application is meant for regular PCs another question is what the difference between the Dock and Anchor properties? i tried to use them (mutual exclusive of course) but with no success
0
1569
by: LaptopHeaven | last post by:
I am having some trouble. How would one load a custom UserControl fro within a class which impements the ITemplate interface. Currently I have the following: public class SmallProductViewTemplate : ITemplate { public void InstantiateIn(Control container) { HyperLink productImage = new HyperLink();
11
3297
by: Nick Gilbert | last post by:
Hi, How can I create a custom control which will wrap its content in a header and footer? eg: Is it possible to create a .NET user control which can surround other controls? eg: <my:RoundedCornerBox id=foo runat=server>
1
2235
by: mnuckols | last post by:
I am trying to create a custom container control for Windows Forms using C#.NET 2.0. My problem is that I want only part of the control to allow other controls to be placed on it at design time. A similar example to what I'm trying to accomplish is a Tab Control. The tab pages of a tab control allow child controls to be added to the page region, but not to the tab. Does anyone know how to accomplish this?
4
2502
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried unsuccessfully in creating the whole pane as a user control and have succeeded in adding the pane and then dynamically adding the content which is a user control to the pane, dynamically within the page. However I would like to have a single pane...
16
4025
by: pupilstuff | last post by:
hi guys i just want to perform custom paging in which at the footer of the grid view ,there must be a pager 'pervious/next with numeric' this is what i did in aspx page <asp:GridView ID="TableGridView" OnPageIndexChanging="TableGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False"
0
9957
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9799
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10877
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10434
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7143
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4633
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4239
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.