how can I display the music from the listbox using My.Settings.?? I'll give you the code for displaying images to a listbox. So that you can help me to find the way if I want to display MP3's in a listbox to use for my MP3
I try to use this: Dim theFolders() As String = Directory.GetDirectories("\mainmusikabba") Try For Each file As String In theFolders ListBox1.Items.Add(Path.GetFileName(file)) Next Catch End Try But what I get is the name on a folder, not the files? And if I can then I want this name to become a link, I don't know if I can this in a listbox?
I am having trouble getting the Fiction.txt File to display. I don't receive any errors the program just does not seem to react. I think the problem lies in the creation of Fiction.txt.[code]....
I was wondering if this was possible, if so can you point me in the right direction? "Display the progress of loading a txt file into a listbox with ProgressBar".I am basically loading a file (blah.txt) which contains several strings each on their own line:[code]I would like to display the progress of the listbox loading within a progress bar.
I am reading a txt file and displaying the contents into a listbox but it generates an empty listbox item at the bottom of the listbox. I am splitting the textfile each time it finds a new line in the txt file; .Split(vbNewLine) The problem there is always a blank line in the txt file at the end and so generates a blank list item. How can I remove this blank list item from the listbox? Is it best to try to remove the blank line from the txt file first or the empty list item from the listbox after the file has been read?
1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...
2. I'm not actually saving them when I think I am.
Regarding 2. - do I need to invoke
Is this all I need? And if so, why are my user.configs empty?
I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.
I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?
Is it possible to select an item in one listbox and then display the data of another listbox with the same indexed position? I am planning a project and this is something I would like to attempt but I haven't figured out how to do it.[code..]
I tried doing the above code but instead of displaying the listbox text the message box just returned false.
I was wondering if you guys could help me. I have a web browser made, and now i'm working on coding my favourites system. It is working well, and adds the URL to My.Settings.FavList
My problem is once you've added a favourite then load up the favourites form, it appears. But if you don't add anything, and load up the form, nothing appears. Below I have attached my coding, I hope you guys will be able to help. Also i'm still learning VB, and almost all of this coding was done through me learning myself. So yeah, there may be parts wrong. Form1 - This code is to add the favourite. I don't think anything is wrong with this part.
[Code]...
I know it has something to do with the Favourites_Load, i'm just not sure what to put in. I have literally tried everything. The thing is, I bet it's something simple, and this is a noobie question.
In fact I noticed that my application won't display correctly on DPI settings other than 96 DPI.Well, this is a critical problem for me, I don't know how can I disregard it and show my application normally without problem?
what i am trying todo is get a listbox to display the contents of an XML file. The problem is at the start of the code when i try to load the xml file.
I am working on a media player, and I would like to setup a local playlist feature. I am using a single ListBox and its "Display-" and "Value-Member" properties. The display is the song's Artist and Name, and the value is the song's file path (i.e 'C:UsersUSERMusicetc.').To write the file path to the .txt file, I believe I can use the following code:[code]
I'm trying to create a favorite box in my web browser using this code in Favorites.vb
Public Class favorites Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
[Code]....
Now I have it so when you click the add button it will put the URL in the string FavList, and place the URL in Listbox1 however I have no idea how to save it, and load it.
So the next time the user opens it, it will have the URL in the string and URL box, so when they click the URL in listbox1 it will redirect the WebBrowser. I think it works like that already I just need to know how to save it, and load it.
I made a favourites feature on a webbrowser I made, however it can only add favourites and not remove them. Even when I remove them from the Listbox using[code]...
So, I have created this program and I want it to save the items that can be added into the list box with the My.Settings codes.(So every time I open the program the items will be there)
I have an automotive application that works well during the day, but at night the screen is WAY to bright. I saw somewhere (a long time ago) a way to alter the display brilliance.
I am trying to be able to add everything within a listbox to a program setting that can be re loaded when its opened up again, I have the part to load them upon opening, but I don't know how to make it add all the items within the listbox to the setting, so it has something to load.
This is to load them on startup: For Each item As String In My.Settings.logs log.Items.Add(item.ToString) Next
I'm trying to do the following: Store items from ComboBox in My.Settings (datatype doesn't matter). Retrieve these items to populate a ComboBox on formload. Also display these items (1 item per line) in TextBox, where I can edit and save the edits to both My.Settings and the ComboBox.
my homework question is to display the selected items from a listbox (multi-extended) in a label. I need to display all the selected names in a label. the simplest most uncluttered way of doing this. This is what I've got but it doesn't work.
I am starting to learn reading and writing to textfiles. One quick problem. My code here
'Read is the variable that will read the kp.txt file" Dim read As IO.StreamReader read = IO.File.OpenText("C:2/kp.txt"[code].....
however when it is read into the listbox those 3 words appear on one line in listbox How can i make it so that each line of the textfile is placed in each line on the listbox?
I'm looking for a way to specify the location for the User.config file that is used for storing the My.Settings object. It appears that this is not possible. The problem for me is, I don't want to be responsible for creating several different files on the users computer that really have no use and are difficult to find and clean once an update is released. For most users, this is not a serious problem, as many will probably never update the software, and most will probably only go through a couple of updates. On my system, there are config files for every build of the application, and the same to a lesser extent will be true for my beta testers.
I can understand that MS wants to make sure that no two applications will use the same location for storing application data, but a simple [UserData] [CompanyName][ApplicationName] for storing application data will probably suffice for 99.9999 percent of the legitimate applications in the world. Bogging a user's system down with erroneous files, no matter how small, is an unnecessary drain on system resources and a potential source of problems for the user. It's bad enough that most programs leave bits and pieces of themselves all over a user's system after De-installation - this to me seems only to exaggerate this problem.
Is the only way to get around this problem to write a whole new Settings Class? Is there a way to change the location of the UserConfig file to a more friendly (and more predictable) location that I am not finding for myself? It would seem that having at least the OPTION to specify a location for the User.Config file would be OBVIOUS and easy to implement, so why did they leave this out?
I can't get anything to display on the list box that I created named "depreciationListBox" I have been working on this project for a while and I am quite stumped.
Private Sub displayButton_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles displayButton.Click Dim cost As Double Dim life As Double = CDbl(lifeListBox.SelectedItem) Dim period As Double [Code] ..... [URL]