Hello,
I using a satellite assembly to hold all the localization resources in a Visual Basic 2008 application.
How can I list the available languages that exists for the application?
"CultureInfo.Ge tCultures" retrieves all available cultures in the OS, I only need the list of the ones I have created.
Thank you.
User Profile
Collapse
-
Enumerate installed cultures in satellite assembly
-
How to pass a LINQ query to a Sub and filter it?
Hello, I have a LINQ query:
And I want to pass it to a function to filter it, like this:Code:Dim Db = New MyDataContext Dim Qry = From cust in Db.Customers Select cust.ID, cust.Name
How can I pass "MyField"...Code:FilterQuery(Qry, ID) ... Sub FilterQuery(ByVal MyQry as iQueryable, MyField as ???) MyQry = MyQry.Where(MyField = "somevalue") End Sub
-
Thanks a lot... that made it! -
Tlhintoq, tThank you very much for you input, I have tried:
Dim ComboList As List(Of Combobox) = Nothing
For i etc...
Dim cbo As New ComboBox()
ComboList.Add(c bo)
Next
but I get an error "Object reference not set to an instance of an object".
There is still something I am missing...Leave a comment:
-
How to pass a collection of comboboxes to a Sub?
Hello everyone,
I would like too generate a number of comboboxes at runtime and then pass them to a Sub, like this:
...Code:For i = 0 to maxnumber Dim cbo As New ComboBox() cbo.Name = "cbo" & i etc... Next etc... Myroutine("collection of comboboxes") Sub Myroutine(ByVal "collection of comboboxes") ...do something with the comboboxes...
No activity results to display
Show More
Leave a comment: