473,783 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Command Pattern and Serialisation

I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The commands,
however, are deserialised at runtime, so the idea of passing a receiver in
the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each command
in a macro could require a different receiver.

Does anyone have an thoughts, or example of how this can be implemented,
ideally in VB.NET, but otherwise in any language?

TIA

Charles
Nov 21 '05 #1
8 1715
I was hoping that someone might have some views on this. It would be nice to
at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the commands, or
success and failure of commands. It might be that a subcommand (within a
macro) fails and the user needs to be prompted whether to continue. Would
this be best accommodated using an event, in the style of the Observer
pattern, or is there a better established method? And what if the Execute
method returns a value, would that be passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be implemented,
ideally in VB.NET, but otherwise in any language?

TIA

Charles

Nov 21 '05 #2
Charles,
I've left this thread unread, hoping to find time to give it some thought.

What do you mean by "passing a receiver" in? Is there going to be a single
receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization or a
singleton to "set" the receiver? It may mean you will need to implement
ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be nice
to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the commands,
or success and failure of commands. It might be that a subcommand (within
a macro) fails and the user needs to be prompted whether to continue.
Would this be best accommodated using an event, in the style of the
Observer pattern, or is there a better established method? And what if the
Execute method returns a value, would that be passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be implemented,
ideally in VB.NET, but otherwise in any language?

TIA

Charles


Nov 21 '05 #3
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot provide
the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only require
one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise the
receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from a
list, and then set the task running. The task here is composed of a number
of steps, or commands, which are defined in the xml file. A trivial command
would be Wait, where the task sleeps for x milliseconds, defined in the
file. The user can change the number of milliseconds just by editing the
file. A less trivial command might be TransmitCharact er [out of the serial
port]. In this case, the response has to be tested, and if it is not the
expected response the user needs to be alerted and asked whether to
continue. Again, the user can edit the file and change the character to
transmit, and the response. The commands may even be re-ordered, or others
added. These commands make up the task, and success or failure of the task
will be determined by success or failure of the individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some thought.

What do you mean by "passing a receiver" in? Is there going to be a single
receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization or
a singleton to "set" the receiver? It may mean you will need to implement
ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be nice
to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the commands,
or success and failure of commands. It might be that a subcommand (within
a macro) fails and the user needs to be prompted whether to continue.
Would this be best accommodated using an event, in the style of the
Observer pattern, or is there a better established method? And what if
the Execute method returns a value, would that be passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be
implemented, ideally in VB.NET, but otherwise in any language?

TIA

Charles



Nov 21 '05 #4
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot provide
the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only require
one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise the
receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from a
list, and then set the task running. The task here is composed of a number
of steps, or commands, which are defined in the xml file. A trivial command
would be Wait, where the task sleeps for x milliseconds, defined in the
file. The user can change the number of milliseconds just by editing the
file. A less trivial command might be TransmitCharact er [out of the serial
port]. In this case, the response has to be tested, and if it is not the
expected response the user needs to be alerted and asked whether to
continue. Again, the user can edit the file and change the character to
transmit, and the response. The commands may even be re-ordered, or others
added. These commands make up the task, and success or failure of the task
will be determined by success or failure of the individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some thought.

What do you mean by "passing a receiver" in? Is there going to be a single
receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization or
a singleton to "set" the receiver? It may mean you will need to implement
ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be nice
to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the commands,
or success and failure of commands. It might be that a subcommand (within
a macro) fails and the user needs to be prompted whether to continue.
Would this be best accommodated using an event, in the style of the
Observer pattern, or is there a better established method? And what if
the Execute method returns a value, would that be passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from my
base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be
implemented, ideally in VB.NET, but otherwise in any language?

TIA

Charles



Nov 21 '05 #5
Charles,
If you are you using XmlSerializer, then the StreamingContex t will not work,
it is only used by the SOAP & Binary Serializers.

Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?

Again I have not given this a lot of thought yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:OZ******** ******@TK2MSFTN GP12.phx.gbl...
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot provide
the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only
require one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise
the receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from
a list, and then set the task running. The task here is composed of a
number of steps, or commands, which are defined in the xml file. A trivial
command would be Wait, where the task sleeps for x milliseconds, defined
in the file. The user can change the number of milliseconds just by
editing the file. A less trivial command might be TransmitCharact er [out
of the serial port]. In this case, the response has to be tested, and if
it is not the expected response the user needs to be alerted and asked
whether to continue. Again, the user can edit the file and change the
character to transmit, and the response. The commands may even be
re-ordered, or others added. These commands make up the task, and success
or failure of the task will be determined by success or failure of the
individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some
thought.

What do you mean by "passing a receiver" in? Is there going to be a
single receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization
or a singleton to "set" the receiver? It may mean you will need to
implement ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be nice
to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the
commands, or success and failure of commands. It might be that a
subcommand (within a macro) fails and the user needs to be prompted
whether to continue. Would this be best accommodated using an event, in
the style of the Observer pattern, or is there a better established
method? And what if the Execute method returns a value, would that be
passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from
my base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be
implemented, ideally in VB.NET, but otherwise in any language?

TIA

Charles



Nov 21 '05 #6
Charles,
If you are you using XmlSerializer, then the StreamingContex t will not work,
it is only used by the SOAP & Binary Serializers.

Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?

Again I have not given this a lot of thought yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:OZ******** ******@TK2MSFTN GP12.phx.gbl...
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot provide
the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only
require one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise
the receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from
a list, and then set the task running. The task here is composed of a
number of steps, or commands, which are defined in the xml file. A trivial
command would be Wait, where the task sleeps for x milliseconds, defined
in the file. The user can change the number of milliseconds just by
editing the file. A less trivial command might be TransmitCharact er [out
of the serial port]. In this case, the response has to be tested, and if
it is not the expected response the user needs to be alerted and asked
whether to continue. Again, the user can edit the file and change the
character to transmit, and the response. The commands may even be
re-ordered, or others added. These commands make up the task, and success
or failure of the task will be determined by success or failure of the
individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some
thought.

What do you mean by "passing a receiver" in? Is there going to be a
single receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization
or a singleton to "set" the receiver? It may mean you will need to
implement ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be nice
to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the
commands, or success and failure of commands. It might be that a
subcommand (within a macro) fails and the user needs to be prompted
whether to continue. Would this be best accommodated using an event, in
the style of the Observer pattern, or is there a better established
method? And what if the Execute method returns a value, would that be
passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
I am implementing the command pattern in VB.NET, where the commands have
been serialised. That is, I have several classes that all inherit from
my base Command class, that implements ICommand (standard stuff). The
commands, however, are deserialised at runtime, so the idea of passing a
receiver in the constructor does not work in this case.

In addition, I am implementing the MacroCommand extension, and each
command in a macro could require a different receiver.

Does anyone have any thoughts, or example of how this can be
implemented, ideally in VB.NET, but otherwise in any language?

TIA

Charles



Nov 21 '05 #7
Hi Jay
Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?
Yes, I have. The problem with that (although I may end up doing it this way)
is that commands within a macro command may have different receivers, and so
the macro must now have access to all the receivers so that it can pass the
correct one. Furthermore, the macro must 'know' which command requires which
receiver.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Charles,
If you are you using XmlSerializer, then the StreamingContex t will not
work, it is only used by the SOAP & Binary Serializers.

Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?

Again I have not given this a lot of thought yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:OZ******** ******@TK2MSFTN GP12.phx.gbl...
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot
provide the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only
require one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise
the receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from
a list, and then set the task running. The task here is composed of a
number of steps, or commands, which are defined in the xml file. A
trivial command would be Wait, where the task sleeps for x milliseconds,
defined in the file. The user can change the number of milliseconds just
by editing the file. A less trivial command might be TransmitCharact er
[out of the serial port]. In this case, the response has to be tested,
and if it is not the expected response the user needs to be alerted and
asked whether to continue. Again, the user can edit the file and change
the character to transmit, and the response. The commands may even be
re-ordered, or others added. These commands make up the task, and success
or failure of the task will be determined by success or failure of the
individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some
thought.

What do you mean by "passing a receiver" in? Is there going to be a
single receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization
or a singleton to "set" the receiver? It may mean you will need to
implement ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be
nice to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the
commands, or success and failure of commands. It might be that a
subcommand (within a macro) fails and the user needs to be prompted
whether to continue. Would this be best accommodated using an event, in
the style of the Observer pattern, or is there a better established
method? And what if the Execute method returns a value, would that be
passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
>I am implementing the command pattern in VB.NET, where the commands
>have been serialised. That is, I have several classes that all inherit
>from my base Command class, that implements ICommand (standard stuff).
>The commands, however, are deserialised at runtime, so the idea of
>passing a receiver in the constructor does not work in this case.
>
> In addition, I am implementing the MacroCommand extension, and each
> command in a macro could require a different receiver.
>
> Does anyone have any thoughts, or example of how this can be
> implemented, ideally in VB.NET, but otherwise in any language?
>
> TIA
>
> Charles
>
>



Nov 21 '05 #8
Hi Jay
Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?
Yes, I have. The problem with that (although I may end up doing it this way)
is that commands within a macro command may have different receivers, and so
the macro must now have access to all the receivers so that it can pass the
correct one. Furthermore, the macro must 'know' which command requires which
receiver.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Charles,
If you are you using XmlSerializer, then the StreamingContex t will not
work, it is only used by the SOAP & Binary Serializers.

Have you considered making the receiver a parameter to the Command.Execute
method, instead of a property of the Command object?

Again I have not given this a lot of thought yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:OZ******** ******@TK2MSFTN GP12.phx.gbl...
Hi Jay

I appreciate your response. If I understand the pattern correctly, it is
usual to provide a reference to the receiver when the object is created.
Because I am deserialising the commands from an xml file, I cannot
provide the receiver at the time the object is created.

There are three receivers, and any one command will (probably) only
require one of these candidate receivers.

I'm not familiar with the StreamingContex t, but I could not deserialise
the receivers if that is what you mean.

I am loathe to use a singleton in this case because it is really just a
global by another name. I am wondering if there is a technique within the
pattern for setting the receiver at a time other than at object creation.

What is going to happen, in practice, is the user will select a task from
a list, and then set the task running. The task here is composed of a
number of steps, or commands, which are defined in the xml file. A
trivial command would be Wait, where the task sleeps for x milliseconds,
defined in the file. The user can change the number of milliseconds just
by editing the file. A less trivial command might be TransmitCharact er
[out of the serial port]. In this case, the response has to be tested,
and if it is not the expected response the user needs to be alerted and
asked whether to continue. Again, the user can edit the file and change
the character to transmit, and the response. The commands may even be
re-ordered, or others added. These commands make up the task, and success
or failure of the task will be determined by success or failure of the
individual commands.

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl...
Charles,
I've left this thread unread, hoping to find time to give it some
thought.

What do you mean by "passing a receiver" in? Is there going to be a
single receiver or multiple?

What kind of serialization?

Can you use either the StreamingContex t in System.Runtime. Serialization
or a singleton to "set" the receiver? It may mean you will need to
implement ISerializable.

Just remember I have not really taken the time to think about this yet.

Hope this helps
Jay

"Charles Law" <bl***@nowhere. com> wrote in message
news:ep******** ******@TK2MSFTN GP15.phx.gbl...
I was hoping that someone might have some views on this. It would be
nice to at least discuss possibilities for the way forward.

Another problem I am facing is how to handle responses from the
commands, or success and failure of commands. It might be that a
subcommand (within a macro) fails and the user needs to be prompted
whether to continue. Would this be best accommodated using an event, in
the style of the Observer pattern, or is there a better established
method? And what if the Execute method returns a value, would that be
passed on the same way?

Thanks anyone.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eO******** ******@TK2MSFTN GP15.phx.gbl...
>I am implementing the command pattern in VB.NET, where the commands
>have been serialised. That is, I have several classes that all inherit
>from my base Command class, that implements ICommand (standard stuff).
>The commands, however, are deserialised at runtime, so the idea of
>passing a receiver in the constructor does not work in this case.
>
> In addition, I am implementing the MacroCommand extension, and each
> command in a macro could require a different receiver.
>
> Does anyone have any thoughts, or example of how this can be
> implemented, ideally in VB.NET, but otherwise in any language?
>
> TIA
>
> Charles
>
>



Nov 21 '05 #9

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

Similar topics

1
2561
by: TEK | last post by:
Hello I'm wondering if anyone out there might give some input/suggestions/viewpoints around the Command pattern. In my case, the number one priority for using the pattern is undo support. Some now, a lot more in the future. I think I have a pretty good understanding about how the command pattern is tought to work, however during implementation I'm htting a couple of quite large design considerations that I'm not sure I have the answare...
1
4661
by: TEK | last post by:
Hello I'm wondering if anyone out there might give some input/suggestions/viewpoints around the Command pattern. In my case, the number one priority for using the pattern is undo support. Some now, a lot more in the future. I think I have a pretty good understanding about how the command pattern is tought to work, however during implementation I'm htting a couple of quite large design considerations that I'm not sure I have the answare...
1
309
by: TEK | last post by:
Hello I'm wondering if anyone out there might give some input/suggestions/viewpoints around the Command pattern. In my case, the number one priority for using the pattern is undo support. Some now, a lot more in the future. I think I have a pretty good understanding about how the command pattern is tought to work, however during implementation I'm htting a couple of quite large design considerations that I'm not sure I have the answare...
2
1337
by: Greg | last post by:
I have a bizarre situation in which serialisation is failing routinely under a specific condition, and I'm wondering if the details ring a bell with anyone here. I have 2 classes that my application serialises before closing down. One of these classes contains a string field which contains a path to a file. This is populated from the contents of a text box, which in turn is populated using an OpenFileFialog object. Under normal usage,...
0
9643
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...
1
10083
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
9946
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
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
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
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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
3645
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.