473,412 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

How make this code more generic?

From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As
String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case
statement with all the states for each field that has a different name. I
did it this way only because I knew it would work but I would really like to
pass the name of the field involved by value in the Sub routine definition
but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As
FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?


Nov 20 '05 #1
13 1244
e
You've got it just about right I think, you just need a for each that cycles
through all your fields? Go with your second version of PopulateWithStates
you've got down there, and call it with something like this...?

Dim aFieldObject as FieldObject

For Each aFieldObject in <myForm.SomeObject.FieldsCollection>
PopulateWithStates(aFieldObject)
Next

....

Sub PopulateWithStates(byVal theFiledObject as FieldObject)

theFiledObject.Add("CA") etc.....

End Sub

"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case
statement with all the states for each field that has a different name. I
did it this way only because I knew it would work but I would really like to pass the name of the field involved by value in the Sub routine definition
but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?

Nov 20 '05 #2
Woody,
One question, do all fields get all states, or do different fields get
different sets of states. Assuming that all fields get all states:
Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As FieldObject) You're close.

How about passing in the list box or combo box itself (independent of the
form), this of course requires overloading (read duplication of code). Public Sub PopulateWithStates(ByVal list As ComboBox)
Public Sub PopulateWithStates(ByVal list As ListBox)
Then you just pass in this listbox or combobox on the form.

PopulateWithStates(MyForm.lstStates)
PopulateWithStates(MyForm.cboStates)

Alternatively you could pass in the collection that the Items property
represents:
Public Sub PopulateWithStates(ByVal list As IList)
PopulateWithStates(MyForm.lstStates.Items)
PopulateWithStates(MyForm.cboStates.Items)

I like this last one as long as the control you are populating supports an
Items property that implements IList you can fill it with values.

Of course another even easier method is to have PopulateWithStates return a
"new" list of states, that you simply assign to the control's DataSource
property.

MyForm.lstStates.DataSource = PopulateWithStates()
MyForm.cboStates.DataSource = PopulateWithStates()

The reason I say it needs to be a "new" list (a new Array or new ArrayList
for example). A shared list will not work, as the binding process will
notice they are the same and keep both lists in sync. Cloning a shared array
would be good.

I prefer the last one, setting the DataSource property to the list I want
displayed.

Hope this helps
Jay
"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl... From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case
statement with all the states for each field that has a different name. I
did it this way only because I knew it would work but I would really like to pass the name of the field involved by value in the Sub routine definition
but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?

Nov 20 '05 #3
Hiya Woody,

Public Sub PopulateWithStates _
(ByVal myform As Form1, ByVal sListBox As String)
Dim oControl As ListBox
Dim oListBox As ListBox
For Each oControl In myform.Controls
If oControl.Name = sListBox Then
oListBox = DirectCast (oControl, ListBox)
Exit For
End If
Next
If oListBox Is Nothing Then _
Return

oListBox.Items.Clear
oListBox.Items.AddRange (New String() _
{"CA", "WA", "FL"})
End Sub

Regards,
Fergus
Nov 20 '05 #4
Thank your for responding.

I think we are mis-communicating. I call this function with a statment
inside my form like this:

Module1.PopulateWithStates(Me, "txtST")

I am passing the name of the field that I want to populate to the
subroutine.

I'm hoping to write something like the following in the actual subroutine:

Public Sub PopulateWithStatesB(ByVal myform As Contracts, ByVal FieldName As
Object)
myform.FieldName.Items.Clear()
myform.FieldName.Items.Add("-")
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
myform.txtST.Items.Add("AZ")
... other 52 states
End Sub

I would like, if possible, for the subroutine to understand that when I say
FieldName I mean the text field on myForm called txtST. The reason I am
doing things this way is because I have several different fields on the form
that need to be populated with states but I would like to write the code for
adding states only once. When I use the code above I get a squiqqly under
MyForm.FieldName stating that FieldName is not a member of the form called
(in this case) contracts.

Am I making since?



"e" <e@e.com> wrote in message news:8p********************@speakeasy.net...
You've got it just about right I think, you just need a for each that cycles through all your fields? Go with your second version of PopulateWithStates you've got down there, and call it with something like this...?

Dim aFieldObject as FieldObject

For Each aFieldObject in <myForm.SomeObject.FieldsCollection>
PopulateWithStates(aFieldObject)
Next

...

Sub PopulateWithStates(byVal theFiledObject as FieldObject)

theFiledObject.Add("CA") etc.....

End Sub

"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As
String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case statement with all the states for each field that has a different name. I did it this way only because I knew it would work but I would really like to
pass the name of the field involved by value in the Sub routine

definition but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName

As
FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?


Nov 20 '05 #5
Woody,
I am passing the name of the field that I want to populate to the
subroutine. As my other post suggested, why pass the name of the field, when you can
pass the control itself?
Am I making since? Yes, you are making sense.

Hope this helps
Jay

"Woody Splawn" <wo***@splawns.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Thank your for responding.

I think we are mis-communicating. I call this function with a statment
inside my form like this:

Module1.PopulateWithStates(Me, "txtST")

I am passing the name of the field that I want to populate to the
subroutine.

I'm hoping to write something like the following in the actual subroutine:

Public Sub PopulateWithStatesB(ByVal myform As Contracts, ByVal FieldName As Object)
myform.FieldName.Items.Clear()
myform.FieldName.Items.Add("-")
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
myform.txtST.Items.Add("AZ")
... other 52 states
End Sub

I would like, if possible, for the subroutine to understand that when I say FieldName I mean the text field on myForm called txtST. The reason I am
doing things this way is because I have several different fields on the form that need to be populated with states but I would like to write the code for adding states only once. When I use the code above I get a squiqqly under
MyForm.FieldName stating that FieldName is not a member of the form called
(in this case) contracts.

Am I making since?



"e" <e@e.com> wrote in message news:8p********************@speakeasy.net...
You've got it just about right I think, you just need a for each that

cycles
through all your fields? Go with your second version of

PopulateWithStates
you've got down there, and call it with something like this...?

Dim aFieldObject as FieldObject

For Each aFieldObject in <myForm.SomeObject.FieldsCollection>
PopulateWithStates(aFieldObject)
Next

...

Sub PopulateWithStates(byVal theFiledObject as FieldObject)

theFiledObject.Add("CA") etc.....

End Sub

"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal
FieldName
As
String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case statement with all the states for each field that has a different
name. I did it this way only because I knew it would work but I would really like
to
pass the name of the field involved by value in the Sub routine

definition but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal

FieldName As
FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?



Nov 20 '05 #6
e
I'm a little foggy on what type of control we're talking about here, but the
premise should be the same no matter what the control type is, so I guess it
doesn't matter - is there a specific reason you have to pass the object name
as a literal string? If you just pass the control object itself, you should
be good to go. You don't have to use a for-each; if it's just for a few
specific ones, you can just send them by hand:

Module1.PopulateAnObjectWithStates(txtSt)
Module1.PopulateAnObjectWithStates(txtSomethingEls e)
..... other ones you want to populate with states just like that

....

Public Sub PopulateAnObjectWithStates(ByVal obj As System.Object)
obj.Items.Clear()
obj.Items.Add("-")
obj.Items.Add("CA")
obj.Items.Add("WA")
obj.Items.Add("AZ")
... other 52 states
End Sub
I don't think passing the form would be necessary, it will change the object
directly.
"Woody Splawn" <wo***@splawns.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thank your for responding.

I think we are mis-communicating. I call this function with a statment
inside my form like this:

Module1.PopulateWithStates(Me, "txtST")

I am passing the name of the field that I want to populate to the
subroutine.

I'm hoping to write something like the following in the actual subroutine:

Public Sub PopulateWithStatesB(ByVal myform As Contracts, ByVal FieldName As Object)
myform.FieldName.Items.Clear()
myform.FieldName.Items.Add("-")
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
myform.txtST.Items.Add("AZ")
... other 52 states
End Sub

I would like, if possible, for the subroutine to understand that when I say FieldName I mean the text field on myForm called txtST. The reason I am
doing things this way is because I have several different fields on the form that need to be populated with states but I would like to write the code for adding states only once. When I use the code above I get a squiqqly under
MyForm.FieldName stating that FieldName is not a member of the form called
(in this case) contracts.

Am I making since?



"e" <e@e.com> wrote in message news:8p********************@speakeasy.net...
You've got it just about right I think, you just need a for each that

cycles
through all your fields? Go with your second version of

PopulateWithStates
you've got down there, and call it with something like this...?

Dim aFieldObject as FieldObject

For Each aFieldObject in <myForm.SomeObject.FieldsCollection>
PopulateWithStates(aFieldObject)
Next

...

Sub PopulateWithStates(byVal theFiledObject as FieldObject)

theFiledObject.Add("CA") etc.....

End Sub

"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
From a Winform I am calling the sub routine that follows in a module

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal
FieldName
As
String)
Select Case FieldName
Case "txtST"
myform.txtST.Items.Clear()
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
End Select
End Sub

This works but what I would really like to do is not have to write a case statement with all the states for each field that has a different
name. I did it this way only because I knew it would work but I would really like
to
pass the name of the field involved by value in the Sub routine

definition but I don't know how. Something like

Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal

FieldName As
FieldObject)

MyForm.FieldObject.Items.clear()
myForm.FieldObject.Add("CA") etc.....

Could someone advise me on how to do this?



Nov 20 '05 #7
Cor
Hi Fergus,

I see always examples form you telling how to use a collection class.
And now we have to my idea the standard example for it and you come with
this, I am perplex.

This is the basic example I thougth from that collection class.
properties
"CA", "Calfornia", "Timezone" or whatever
"WA", "Wasington", ................
"FL", "Florida", ......................

Or am I wrong

That you can just bind to the controls or whatever way you want to use it.

This was your answer
\\\
oListBox.Items.AddRange (New String() _
{"CA", "WA", "FL"})
End Sub
///

I say of course nothing, because two reasons, I get the idea I never
understand Woody and this I called your stuff and I don't want to make you
laughing to much about me.
:-)
Cor
Nov 20 '05 #8
Hi Woody,

It seems you want to addressing WinForm Controls by Name.
You need to maintain a HashTable for the relationship between the index and
the name.
So that you can get the index from its name, and then by using the
form.controls(index) to access the control.

http://groups.google.com/groups?q=Fi...&lr=&ie=UTF-8&
oe=UTF-8&selm=u72StMXiBHA.1552%40tkmsftngp02&rnum=1
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
From: "Woody Splawn" <wo***@splawns.com>
References: <eM**************@TK2MSFTNGP12.phx.gbl> <8p********************@speakeasy.net>Subject: Re: How make this code more generic?
Date: Mon, 13 Oct 2003 16:26:36 -0700
Lines: 103
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#A**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: 168.158-60-66-fuji-dsl.static.surewest.net 66.60.158.168
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146441
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Thank your for responding.

I think we are mis-communicating. I call this function with a statment
inside my form like this:

Module1.PopulateWithStates(Me, "txtST")

I am passing the name of the field that I want to populate to the
subroutine.

I'm hoping to write something like the following in the actual subroutine:

Public Sub PopulateWithStatesB(ByVal myform As Contracts, ByVal FieldName AsObject)
myform.FieldName.Items.Clear()
myform.FieldName.Items.Add("-")
myform.txtST.Items.Add("CA")
myform.txtST.Items.Add("WA")
myform.txtST.Items.Add("AZ")
... other 52 states
End Sub

I would like, if possible, for the subroutine to understand that when I say
FieldName I mean the text field on myForm called txtST. The reason I am
doing things this way is because I have several different fields on the formthat need to be populated with states but I would like to write the code foradding states only once. When I use the code above I get a squiqqly under
MyForm.FieldName stating that FieldName is not a member of the form called
(in this case) contracts.

Am I making since?



"e" <e@e.com> wrote in message news:8p********************@speakeasy.net...
You've got it just about right I think, you just need a for each that

cycles
through all your fields? Go with your second version of

PopulateWithStates
you've got down there, and call it with something like this...?

Dim aFieldObject as FieldObject

For Each aFieldObject in <myForm.SomeObject.FieldsCollection>
PopulateWithStates(aFieldObject)
Next

...

Sub PopulateWithStates(byVal theFiledObject as FieldObject)

theFiledObject.Add("CA") etc.....

End Sub

"Woody Splawn" <wo***@splawns.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
> From a Winform I am calling the sub routine that follows in a module
>
> Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal
FieldName
As
> String)
> Select Case FieldName
> Case "txtST"
> myform.txtST.Items.Clear()
> myform.txtST.Items.Add("CA")
> myform.txtST.Items.Add("WA")
> End Select
> End Sub
>
> This works but what I would really like to do is not have to write acase > statement with all the states for each field that has a different name.I > did it this way only because I knew it would work but I would reallylike
to
> pass the name of the field involved by value in the Sub routine

definition > but I don't know how. Something like
>
> Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal

FieldName As
> FieldObject)
>
> MyForm.FieldObject.Items.clear()
> myForm.FieldObject.Add("CA") etc.....
>
> Could someone advise me on how to do this?
>
>
>
>




Nov 20 '05 #9
Hi Cor,

No worries, mate - it's a case of 'horses for courses'. ;-)

In this situation Woody just wants to stick some strings into a ListBox -
so there's no need for anything more than an array of strings. If there <had
been> associated items, then, yes, I would have added objects, as in the other
similar queries.

[Can't understand why Woody hasn't seen the code, though.]

Regards,
Fergus
Nov 20 '05 #10
"Fergus Cooney" <fi******@tesco.net> wrote in news:#Sjs1$dkDHA.2328
@TK2MSFTNGP10.phx.gbl:
Hiya Woody,

Public Sub PopulateWithStates _
(ByVal myform As Form1, ByVal sListBox As String)
Dim oControl As ListBox
Dim oListBox As ListBox
For Each oControl In myform.Controls
If oControl.Name = sListBox Then
oListBox = DirectCast (oControl, ListBox)
Exit For
End If
Next
If oListBox Is Nothing Then _
Return

oListBox.Items.Clear
oListBox.Items.AddRange (New String() _
{"CA", "WA", "FL"})
End Sub

Regards,
Fergus


Shouldn't the second line be:

Dim oControl As Control '????

The For Each will puke on any control that's not a ListBox

Chris
Nov 20 '05 #11
Hi Chris,

ROFL, uurgh puke all over my For Each loop.

Doh! Yes, of course, it should be Control.

I tested it on a Form containing nothing but listboxes. No puke there -
but only because I was feeding it vanilla icecream rather than 10 pints of
lager and five straight whiskies followed by chicken vindaloo and a double
kebab.

Regards,
Fergus
Nov 20 '05 #12
Thank you. This worked for me.

Public Sub PopulateWithStates(ByVal FieldName As System.Object)
FieldName.items.Clear()
FieldName.Items.Add("CA") etc....
This was simple and straight forward and something I understand. Some of
the other solutions were frankly over my head but thank you to those that
responded.

Woody
Nov 20 '05 #13
Hi Woody,

Did my suggestion works for you?
If you have any related question, please feel free to let me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
X-Tomcat-ID: 218518442
References: <eM**************@TK2MSFTNGP12.phx.gbl> <8p********************@speakeasy.net>
<#A**************@TK2MSFTNGP12.phx.gbl>MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: v-******@online.microsoft.com (Peter Huang [MSFT])
Organization: Microsoft
Date: Tue, 14 Oct 2003 08:57:29 GMT
Subject: Re: How make this code more generic?
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
Message-ID: <kY**************@cpmsftngxa06.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
Lines: 114
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146484
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Woody,

It seems you want to addressing WinForm Controls by Name.
You need to maintain a HashTable for the relationship between the index andthe name.
So that you can get the index from its name, and then by using the
form.controls(index) to access the control.

http://groups.google.com/groups?q=Fi...N&lr=&ie=UTF-8 &oe=UTF-8&selm=u72StMXiBHA.1552%40tkmsftngp02&rnum=1
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------


Nov 20 '05 #14

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

Similar topics

4
by: Sammy | last post by:
Hello all Is there a good online resource that discusses C++ equivalents for windows code? Not a simple subject of course... but perhaps a good place to start with the simpler parts. Thx :o)
9
by: Justin Shen | last post by:
you can define two class with same name but having different generic parameters in one assembly. As below: class Gen<T> { } class Gen<T1,T2> { }
1
by: shapper | last post by:
Hello, I created a user control (.ascx) with a property as follows: Private _Messages As Generic.List(Of String) Public Property Messages() As Generic.List(Of String) Get Return _Messages...
0
by: shapper | last post by:
Hello, I want to create an ordered list where each list item can have various controls: <ol> <li>textbox, label, ...</li> ... </ol>
7
by: =?Utf-8?B?QWxleGFuZGVy?= | last post by:
Hi! I want to learn C# in the near future. But for now, I would be more than happy if someone could translate this short c# source code into c++. (I searched the web for c++ equivalents but after...
4
by: =?Utf-8?B?SGF5U2VlZA==?= | last post by:
Is there some way to use Generics in dynamic code using the Type.GetType("MyClassName") as an argument? List<Type.GetType("MyClassName") oList = new List<Type.GetType("MyClassName") > ...
37
by: Hilton | last post by:
Hi, for (int i = 0; i < list.Count; i++) has a hidden performance hit; i.e. list.Count gets evaluated each time, so we write something like: int listCount = list.Count; for (int i = 0; i <...
3
by: Christof Warlich | last post by:
Hi, I just need a specialization for only one member function of a template class with _many_ members. Do I really have to duplicate the source code for all the members, i.e. for those that do...
10
by: lpinho | last post by:
Hi all, I have a class (named for the example myObject) that can be of several types (int, string, float, etc), instead of using a object to define it's type I used a generic. public class...
12
by: Howard Swope | last post by:
This problem has been bugging me for a while. I have created a collection class and implemented it in a C# library. If I inherit from this class in another C# assembly and it works, but if I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.