I'm making a program to keep track of my gaming accounts and the characters that the accounts hold. So I made a class called "Accounts", made it a Datasource to a listbox.
[code]...
So this is what I have. What I want to do, is have 2 Listboxes on my form. one Listbox contains the list of accounts, and the other contains the list of character that the selected account holds. I'm wondering how do I do this through Bindingsource? I got the Account class bound to a Listbox's Datasource, now I need to figure out how to put the List(Of Character) to the other Listbox
For each character of this string I want a new character out of the string and then remove the character from the list of characters that still maybe used for other characters. It may not get the same character, you could basically just call this encryption, but it's not what I am making. I don't want to waste my time doing this one hour while VB can do this for me in <1 second.
the coding is to 'Get input string and put its character into List, and replace the character with other.'but having problem putting each character into List and also replacing it,[code]
I am using Visual Basic 2008 Express Edition and I am trying to set a listbox so it starts to scroll when it hits the middle point of what is viewable on my list. I also want to set it so the list is always visible so you when you reach the bottom of the list you can scroll down to the bottom but if you scroll back up once it reaches that middle point it will start to scroll up again.
When I used to use Farpoint controls (w/VB6), there was an option on a listbox to set it to mulit-character search mode. It seems that VB.NET (at least 2005) doesn't have this capability. If I type a "G" and then an "A", it first jumps to the first item that starts with a "G" and then the first item with an "A". I want it to jump to the first item that starts with "GA." What is the easiest way to accomplish this functionality?
I am trying to understand classes in VB 2010. I am a bit confused with displaying information from a list into a listbox.When I run the following code, the word collection appears in my list box. How do I drill down into 'hostnames' to display the info I want.
Im trying to build a list of id's in a textbox. Which works fine in IE and Firefox but not in chrome.
The list that is created is using String.fromCharCode(20) to separate the values. (im using this as the values could be any character so I need to use non writable characters like this and 17)
What happens in Chrome is it seems to remove anything (and including) from the non writable character onwards so if I had
"432@5033"
where @ = the non writable character then it would output "423"
i can currently designing a account book program. I have five listboxs..with list1,list2,list3,list4 and list5.
FOr cost: List1 is the item code and list2 will be the price.. For sold out item : List3 is the item code and list4 will be the price.. For profit : List 5 = list 2's item price - list 4's price
What i wana do is, the item tat sold out will be listed in list3, so then list3 item will be compared to list1. if list1 item contains list3 item, therefore in the same index, list3 item price (list4) will be deducted by list 1 item price(list2) and shown in list 5. here is my code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim totalitem As Integer = list3.Items.Count - 1
How do I write an expression to calculate all characters of each row by my own defined value to each character = all the A and B and C and etc. will be as 2 and all I and J and whatever ... will be 1 so I need an end result of the total.
I am working on a sub that essentially needs to open a text file, and replace all instances of a certain character with a unicode character. I'm trying to do this by reading the original text file byte by byte, converting it to a character, and then either adding that character to a memory stream or writing the unicode character to the memory stream. Then I'm saving the memory stream to the original file.
Dim sDirs() As String Dim i As Integer sDirs = System.IO.Directory.GetDirectories(txtPath.Text) For i = 0 To 5 ListBox1.Items.Add(sDirs(i)) Next Lists the first 6 dirs it finds.
But how can i get the last listed dir into a varible so i can use its location?
I am writing a hangman type game and I am displaying the word to the user in a label as all *'s, but I cannot figure out how to have just one of the *'s changed in the label to the correct letter when the user inputs the correct letter into the text box and clicks the check letter button.Everything else in the program works perfectly, except for this part.[code]When I use the .Replace it changes all of the *'s to the correct selected letter.
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
In my VB.NET application I compare words that are recorded using IPA, many of which have many diacritic marks. In one of the comparisons, I compare the words character by character. But when I iterate over the characters, the diacritic marks come out as separate characters (as I would expect since this is unicode)However, a u character is different than a u plus an accent for the purposes of this program and needs to be distinguished.
I'm trying to get a listbox to populate a list of processes that are neither running nor in the "blocked" list. This code is in a timer, so it also checks if the process is already in the list.
For Each proc In Process.GetProcesses Dim allowed As Boolean = True For Each item In Blked.Items
[Code]....
It is strange because this is populating the list, but adding the same process over and over again, even though I seem to have the checks in there.
So I am trying to code something in vb.net 2010 which will have a list box. For example:
1) Apple
2) Pizza
3) Juice
How would I display Line number 2 or any other to the user - I tried doing it with a label box like this Label1.Text = ListBox1.Text(2) - does not work.
i'm trying to make a clipboard saver, which i code in a tray application. The problem is when i'm going to tray, the list only saves the last copied item. How do i get this list to save when in tray?
My code is:
Option Explicit On Public Class PopupForm Private Sub PopupForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load[code].....
I would like to receive gmail account emails and list them in a listbox. I found lots of articles for C#, but nothing for Visual Basic. Does anyone know the way I could receive an email ?
Okay here is my problem, I want to create an application that will have a search bar, let's say in the example that this textbox is called textbox1it will search out in a directory in realtime (with a timer or other solution) for a matching folder with what you are typing in the textbox1and then I want the folder names ONLY to be showed in listbox1