473,491 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

'FindStringExact' is not a member of 'System.Web.UI.WebControls.ListBox'.

Dim index As Integer = lbSysteem.FindStringExact(strSysteem)

basicly i want to return the value but as the examples show on the MSDN
library, nothings wrong with the code?
if FindStringExact isnt a member of Listbox then from what is it?

thx in advance,

Richard
Nov 18 '05 #1
6 2453
Hi Richard

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 18 '05 #2
I found a way around it, by just looping throu the listbox control althrou
the FindStringExact would make it much easier and less code, my problem is
solved. It is only used in the "System.Windows.Forms" which isnt in my .NET
Framework or I ever heared of it. I am just going to find some more info
about it so I wont have the problem again in the future.

Thx for your help anyway.

Richard
"Gary Chang" <v-******@online.microsoft.com> schreef in bericht
news:Cs**************@cpmsftngxa10.phx.gbl...
Hi Richard

Currently I am looking for somebody who could help you on it. We will reply here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights. --------------------

Nov 18 '05 #3
"Richard" <ri*****@nospam.com> wrote in message
news:40**********************@newsreader.eweka.nl. ..
Dim index As Integer = lbSysteem.FindStringExact(strSysteem)

basicly i want to return the value but as the examples show on the MSDN
library, nothings wrong with the code?
if FindStringExact isnt a member of Listbox then from what is it?


FindStringExact is a member of System.Windows.Forms.ListBox, not of
System.Web.UI.WebControls.ListBox.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #4
Hi Richard,

In addition to loop through the DropDownList or ListBox WebControl's Items
collection to find a certain item via text, we can also make use of the
DropDownList/ListBox 's Items Collection, it's an instance of the
System.Web.UI.ListItemCollection class which has the following two methods:

#ListItemCollection.FindByText Method
http://msdn.microsoft.com/library/en...WebUIWebContro
lsListItemCollectionClassFindByTextTopic.asp?frame =true

#ListItemCollection.FindByValue Method
http://msdn.microsoft.com/library/en...WebUIWebContro
lsListItemCollectionClassFindByValueTopic.asp?fram e=true

I believe they'll be helpful to you. Thank.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Hi Richard,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6
I did it throu an other way by looping throu al records, i am unclear if
this is the best way but it worked for me.

Dim intID As Integer
Dim iLoop as Integer
Dim dt as DataTable = ddlDataSet.Tables("tbl_Filiaal")
For iLoop = 0 to dt.Rows.Count - 1
If F_ID = dt.Rows(iLoop)("F_ID").ToString() then
intID = iLoop
exit for
End If
Next iLoop
lbFiliaal.SelectedIndex = intID

and sorry for my late answer.

thx for your help

Richard

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> schreef in bericht
news:eR**************@cpmsftngxa10.phx.gbl...
Hi Richard,

Have you had a chance to check out the suggestions in my last reply or have you got any further ideas on this issue? If you have anything unclear or if there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #7

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

Similar topics

0
2227
by: Eric Diana | last post by:
I am trying to place an strings into an array of strings I am declaring as Dim Fields() As String I have another variable im doing the same thing with and it works. Public Shared Operations()...
1
1840
by: Jason Wood | last post by:
I have an ASP C# web form that contains a System.Web.UI.WebControls.ListBox. I would like to set the tabs in this list box so that I can align columns of data. I can not find a way to get a handle...
2
2555
by: Troy | last post by:
I have been trying for 2 weeks to figure out how to implement a table as a member variable that the user can setup with the property designer with no luck. The code below adds the table to the...
6
5986
by: rdi | last post by:
I've got a combo-box of the drop-down style (not drop-down-list). The first item is "NHPI-Forms". If I type "NHPI-Forms" into the combo-box that string is supposedly not listed in the combo-box. ...
2
2640
by: Sean Carey | last post by:
I converted a C# Upload app to VB.NET and am down to one error and was hoping someone could help me with te error. I would greatly appreciate help from anyone. Here is the error: ...
0
1040
by: GentOfTheLake | last post by:
Why won't the webcontrols version of the listbox work with this: DirectoryInfo di = new DirectoryInfo(); FileInfo fi = di.GetFiles(); ListBox lb = new ListBox(); lb.AddRange(fi); The forms...
2
1290
by: Andy B | last post by:
I have a masterPage code file that looks like below file. For some reason I keep getting compile error 1519: invalid token '{' in property or member definition. I know it has something to do with...
17
19990
DjPal
by: DjPal | last post by:
Hello, I am trying to move multiple items from one list box to another, i have tried the following code, but the output so far just gives me "{collection}" in the other list box. private void...
0
7118
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
6980
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
7157
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
7192
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...
1
6862
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
7364
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
5452
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,...
0
3087
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...
0
1397
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 ...

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.