I need to create a collection that should have named indexes. e.g.: IN typical collection such as ArrayList :
Dim al as ArrayList = New ArrayList() al.Add("10") al.Add("20")
to access first element i have to use "0" in al(0)...such I need to create a collection that has Named indexes instead of Numerical zero based indexes. such as: assume the collectio object is col1. to access the value element "RegoNo", i should use the collection object as col1("RegoNo") or similar technique Is this possible to do?
Is there a way to create a collection of collections? e.g. I created a collection ListOf(Lines) After I add all my lines to it, I want to store this colleciton in another listOf(Collections). The reason I want to do this is because i want to create several separate collections of lines and I'll need to loop through them all to look for a certain line and I thought this would be a good approach if it's possible.
I am a newbee at this but I have a general question about datasets.Most of the help I have read and the videos that I have watched when a dataset is created it is created for a given table.Take the northwinds database.When a dataset is created in vb2008 in the video it creates a dataset for the Customer table and a seperarte dataset for the Orders table and a serperate dataset for the OrderHdr/OrderDtl.Is it better to do it this way or is it better to create one dataset named NorthDataSet and have all of the tables defined in it?What are the pros and cons to doing it both ways.Is there something I can read to help me decide which way to go?I have a large project that is being changed from VB6 and ACCESS to VB2008 and Sql Server.The database has around 300 tables in it.
I need to create 3 folders (named as In,Proc,Error) in C:Ram directory. First I need to check for folder existence in directory. If any of them not present need to create missing folder. If all missed need to create all 3. Could anyone suggest a simple looping code in VB.NET for this requirement .
I'm trying to make a very simple audio tag editor. The idea is that the user can select as many audio files as he likes from a ListView, and a PropertyGrid will then display their tags + their values.When multiple files are selected, I want the property grid to display the values of the tags that all files have in common, and display empty values for tags that the files do not have in common.As an example, look at the properties list in your Visual Studio IDE when you select multiple controls (of the same type for this matter). Select a few Button controls, for example, and notice that the properties whose values are the same (often things like Font, ForeColor, etc) are displayed. Also notice that the values for properties that are not the same (Text, Name, etc) are empty.
What's really the point in using the former?It's hard to use linq if I used the former. I have to convert that to an array first which is difficult because there is no (asarray) function.I think I would change all of my code that's using System.
Collections.Specialized.StringCollection to System.Collections.Generic.List(Of String)
I just want a program compiled in Visual Basic 2008. which can just submit a form of only one field. the form is already uploaded to the server but i don't want to go to that url every time to do so.What I want here, just to open application and fill that field and submit. Is this possible in visual basic 2008?Also let me know how to create a button that can rapidly submit the form repeatly untill the second button named cancel is pressed. field name of that form is "msisdn" and the action on submit button is post method and url in target is url...
I've been searching for hours trying to make a Button event that removes all the text between two indexes in a list box. The two indexes are #FIRSTNAMES# and #LASTNAMES#... I have a code but it's WAAAY too confusing and it does not work. If anyone knows a way to do this, please let me know. I'll post my code just in case you don't know another way. I haven't gotten to the remove part, I'm still just trying to display the text between the indexes into a message box. I took most of it from Google pages... I really want an easier way, because I know there is one, but never the less I just need progress.
A very basic problem, sorry but I am new to .NET! I have a blank form that I populate say with 8 PictureBoxes (it doesn't matter what the control is, I've just picked one at random)In VB6 if I want to change any property of these controls, its very simple, because I can index the control eg:
For i = 0 To 7 MyPic(i).BorderStyle = 1 Next
How can this this be done simply in VB for any control in general?
I have some problem doing my practice in vb .net, what im trying to do is to array or do indexes my textbox, for an example i have 5 textbox,i would like to do like vb classic version, like this:
I have some problem doing my practice in vb .net, what im trying to do is to array or do indexes my textbox, for an example i have 5 textbox,i would like to do like vb classic version, like this:
i'm having trouble getting indexes of found matches in array. I have array of 100,000+ entries with numbers, and some of them occur more than once in array. I'd like to get every index of found matching element in array.I'm struggling with:
Dim ID() As String 'then I ReDim Preserve this ID() to needed length, and fill it with values
I have two arrays (array1 and array2)with double type data. I want to sort array1 to ascending order, and array2 with corresponding to the array1 indexes. Is this possible? Example below,
Here is the code Dim xR() As DataRow = xT.Select("TS='" & TS & "'") Dim qRow As DataRow If xR.Length = 1 Then qRow = xR(0) [Code] .....
Sometimes(not always) I get that internal index is corrupted. I read somewhere that frequent updates to in memory datatable, can produce error like that and that only real solution is to create dataview from time to time, and by doing that datatable rebuild it's indexes...is that for real....I have changed my code and now I'm creating dataview and disposing it right away...so far so good. but I was wandering is thatfact....does datatble rebuilds it's indexes when you create dataview...and if not when are they rebuild.
I am running a index search on a string in a rich textbox, i have a list of keywords which need to be a different color in this textbox. how do i run a search on a string in vb2005 and get a list of indexes where the text matched my search?
Just like the title says; I want to use something like Mid(stringName, startIndex,[integerLength]), but instead of the third argument taking a string length, I want it to take the end character index. So in an example like this: alphabet = "ABCDEFG" partial = *method I want to use*(alphabet, 2, 4) 'partial would equal "BC"
Imagine there is a very large html file with of course lots of html tags. I cannot load the entire file into memory. My intention is to extract all indexes for this <p> and this </p> strings. How should I achieve it?
Now This Array is populated with decimal values and i just want to get the index values of the highest and lowest scores.i.e. if the [[scores(3) = 90]] and [[scores(7) = 90]] are equal and highest scores, i want 3 and 7 as integers in return..and same for the lowest scores..I retrieved data from a text file and stored it in Classes.. now i want to relate the above Array and these Classes..
Dim Student1 As New Student
There are total 20 of these classes.. Student2.vName, Student3,vName.. etc etc
For example, After i get the highest score indexes from scores(19) array i would like to get the name of the related person from Student*.vName Class (If i get 3 and 7 index i the related names would be Student4.vName and Student7.vName consequently)?
I've used visual basic in office before, but when it comes to writing applications in Visual Studio, my knowledge is fairly limited. I'm unsure on how to set up a connection in my application to connect with a dBase IV database that uses indexes (not sure if it matters if it has indexes or not). I will need to both read and write to this database.
I am developing an application in VB2008. I initially starting using Office 2003. But later found out that I need to develop it using Office 2000 automation instead.
The problem is when I developed it using Office 2003 I was able to reference the bookmarks by name like this:
Code: Dim data As New DataObject data.SetData(DataFormats.Rtf, pubrtfContent) Clipboard.Clear()
[Code]....
Why would just changing the references in the application cause the bookmarks to be referenced by numeric value only, instead of name? And how I can I get the bookmarks to be able to be referenced by name in Office 2000? Obviously I am doing something wrong, but can't figure out what.
Btw, when I try and reference a bookmark with the name in with the Office 2000 references I get this error: Conversion from string "Judgement" to type 'Integer' is not valid.
I have a class project that I have been working on for a while, and I can't figure out how to add each cost from lstCosts together to show a total cost of the selected workshops in lblTotalCost. Using the current loop that I have, it only adds the last cost in lstCosts. Is there a way to add the indexes together?
Code: Public Class Form1 ' The registration fee for each workshop Const intSTRESS As Integer = 595 ' handling stress Const intMANAGEMENT As Integer = 695 ' time management Const intSKILLS As Integer = 995 ' supervision skills [Code] .....
I'm building a virtual blackjack game and I'm having difficulty assigning values to the cards. I've set up picture boxes for the dealer's cards and the player's cards, and i've linked those picture boxes to an ImageList that contains all of the cards (+ the picture of the back of the card, since you only see one of the dealer's cards to start out with). When you hit the "Deal" button, I have the following code so far:
Private Sub btnDeal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeal.Click Me.btnHit.Visible = True Me.btnHit.Enabled = True
I have a section at the top that has labels saying: "Dealer's Showing ______", "You're Showing ________"how to assign values to the indexes/items of the imagelist? For example, items 0-3 have a value of "2", items 4-7 has a value of "3", and so forth...
I am using a select case loop to perform different tasks, one of the tasks the loop is doing is putting 1d arrays together into 3d arrays. But, when i come to print the 3d array only the 3rd "line" in the array is complete. Is there a way to pass variables created in a select case out of the select case?
Here is some code to try and explain better: Select Case Int() Case Is = 13
i have to convert a visual basic 6 program to the visual basic 2008. i used the wizard that is provided to upgrade but that just doesn't work. It comes up with many errors. most of them are End of statement expected and Number of indexes exceeds the number of dimensions of the indexed array. I really don't know what to do with them and i have to fix them in order for it to run.