Move Files From Listbox.items(index) To (My.Application.Info.DirectoryPath & "BackUps" )?
Dec 20, 2010Move files from listbox.items(index) to (My.Application.Info.DirectoryPath & "BackUps" )
View 6 RepliesMove files from listbox.items(index) to (My.Application.Info.DirectoryPath & "BackUps" )
View 6 RepliesWhat are the best C# (csharp) equivalents for the following VB (VB.NET, VisualBasic) statements:
My.Application.Info.DirectoryPath
My.Computer.Clipboard
My.Computer.Audio.PlaySystemSound()
My.Application.Shutdown()
I want to know how to get data from textboxes to a listbox i want it to look like this in the listbox
[Code]...
I want to move a selected item up and down on a listview.I thought by getting the index and -1 or +1 would work .But can't find the code to define the index of a row.
View 2 RepliesI'm coding an application in VB express 2005 and want to access a sharepoint and make backups of several files I keep there. How to access a folder in a sharepoint, copy some files in it, and then paste these in a different folder inside the same sharepoint? I am working on a windows XP so can't install Sharepoint Services 3.0, as it requires windows server 2003.
View 4 Repliesprobs a simple answer but my mind is blank atm. I have this code to move all items from listbox3 to listbox1 but it wont move them unless i select 1, then it moves all items.
[Code]...
I can move selected items between my listboxes but how do i move all items from one listbox and add them to another one? if possible I would like to append them to the bottom rather than replacing the items in the other listbox.The coding i use to move specific items is
Dim selectedItems = (From i In ListBox1.SelectedItems).ToArray()
Each selectedItem In selectedItems
ListBox2.Items.Add(selectedItem)
[code].....
iam working in vb 2008 and i am trying to move the selected item in a listbox up or down,
View 3 RepliesI have almost finished my media player. I want two buttons on my form, one to move the selected item in the listbox up and one to move the selected item in the listbox down.
View 4 RepliesI need to know how to save listbox items into ArrayList And restoring these items back from Arraylist into Listbox I tried this code but it returns Null Error Exception
[Code]...
i'm having a little trouble with a listbox. [Code]. i want the button command to run through the listbox items and proceed with given command. it's not listbox1.items.indexof(#), it's something else i'm missing.
View 2 Repliesthe following thread consists of a listbox and a textbox for searching the items in the list..url...i am completely new at this list ( of ... ) thingy, and i cannot find a way to use that first marked answer from jwavila ,to add files from a folder to that list ( of .. ) in order for the app to act like it is searching the files in the folder as it responds to the .addrange items in that above thread.also, i have no problem loading files from a folder in a listbox.. is it possible to load the listbox w/files, then add them to that list ( of .. ), and be able to use the search option as the link above does?
View 3 RepliesI am using VB.NET (version 2008). I have two types of items populating in a listbox (checked listbox). For example: lets say one is type "A" and other is "Type B". Their names maybe same so if the user sees those items in listbox then he won;t be able to determine their type until he click on them and checks out its properties. I wanted that I add each item to listbox and colour them so that blue for example means type "A" is there and red means the other. So this way I will be able to know at a glance that how many item of what type is present. I guess it may not be possible to do that in a standard checkedlistbox. I am also using component factory's krypton controls which enhance the gui of an application. But I dunno if I can progress using that.
View 5 RepliesWe have a button, textbox and a folder browser... We made it so that when you click the button it shows the folder browser dialog.. And you choose your folder/path, then it shows the selected path in textbox.. We are succesful on this.. But now weve added a listbox, And when you selected the path it will do this..
[Code]...
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]
View 18 RepliesI am making a program, obviously, and I require some assistance. I found an explanation on how to read information from a Text file and have modified it for my needs. Here is my (modded) version:
Public Function GetInfo(ByVal playlistname As String) As String
On Error Resume Next
Dim PlaylistInfo As String
[code].....
Several times av been come across of the need of how to create new variables on my application while is running and the next time i will run again the application to be existed in my source code and still be inside.
what excatly i mean is for example i have a listbox with out assigne it in any databound ,or retreive any items from any textbox i just want to insert some items inside
if i go from the designer then i can succesfully add any item i want and they will be there as i declare them.but if i want to to that programmatically i will be able to add them in the listbox but the next time i will run it again it will be lost.until i will select the command again to fill my listbox which is not what i want
in my case i have a datagridview which is running SQL querys and i want if the user selects to save this query i want from some way to save this query string in my listbox . and i want to be there the next time i will run my application with out using any text file or database,
is there any way to that ? i have search before i ask but obviusly my keywords dosen't much with what i was looking for
I have created deployment package for VB.Net appolication and it runs fine. When setup is rnning, I want deployment package to move a file from bin folder to other specific folder. how can I move this file to specific folder.
View 1 RepliesI am extremely new to programming and have been asked to create a simple point of sale receipt application using VB.NET. Here are my tasks. > the application adds items to a sales receipt one at a time using an input text box and an Add to Receipt button(done)each time the Add to Receipt button is pressed, the new item price is added to a list box control which acts as the receipt and the input text box is cleared for the next entry(done)> the application should also contain output labels for subtotal, sales tax (13%), and total that should be updated whenever an item is added to the receipt(not done)> the program should use a constant for the sales tax(done)> the application should be formatted with dollar symbols and two decimal places (for cents)(done)> the application also includes a clear button which when pressed clears everything and allows the user to start a brand new sales receipt.(done)> the application also includes an Exit button that will shut down the application when clicked
[Code]...
how to correlate info from a textbox based on a listbox item selection. For example the user will select an item from the listbox, enter say the length of a song in the textbox say 2:00 for song #1, select say song #2, enter the song time for that song say 3:00, click on song #1 again and have the same textbox display the length of that song and be able to do that until there are no more songs on the list.
View 5 RepliesCan a ToolStripMenuItem do the following with only 1 click?
1) move the selected files from a listbox in a folder "X"
2) launch a Tipar.bat file (Tipar.bar change the extensions of the files that was moved into "X" folder and after that moves them into folder "Y")
3) moves the files from the "Y" folder into another folder. I'm not sure if I made myself clear.
I have three listboxes in an array and on form_load the listboxes initially select the fifth item in each listbox:
Private Sub frmSample_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For i As Integer = 1 To 3
under my project I have the following
However when I use this code.
lblABOUT3.Text = "Version : "
lblABOUT3.Text += My.Application.Info.Version.Major.ToString()
lblABOUT3.Text += "." & My.Application.Info.Version.Minor.ToString
[Code]....
what it does iswhen a user checks an item in the checked list box it transfer it to a listboxso i have a checked list box and a listboxi am planning to put another listboxwhat i would like to be able to do is thatwhen the user checks an item on the checked list box it will transfer the item into the listbox [like the one on my previous thread]and be able to show an messagebox with a textbox [ i read its called an input box ] or another form with a textbox and/or combo box will pop up
View 13 RepliesI need to move my index to new rowThe code I used in 2003 wasdtg is the name of my gridThe code for 2003 is
dtg.UnSelect(dtg.CurrentRowIndex)
dtg.CurrentRowIndex+=1
dtg.Select(dtg.CurrentRowIndex)
[code]....
I want the solution to move to specific control by providing Tab index through coding. Is there any way that i send tab key through coding and cursor move to or focus set to next control?
View 5 RepliesMy technical background has enabled me to learn and code a VB application quickly, but I am not familiar with the "guts" of Microsoft Studio.I want to back up my application in the event of a disc failure, but what needs to be backed up?I see that the directory structure has a in and an obj subdirectory. Do I just need to backup everything below the directory level above these two?
View 1 RepliesIm just going to have to get used to this language for the rest of the semester And smohd, I will get back to you with my problem. That "Me..." control is so random. Not like JAVA Why am I getting an error with totalGrade
[Code]...
I am trying to create a way to use my arrow keys to move around some text boxes. The form has 12 textboxes moving from left to right with 4 in each row. Tab Index will be like this.
0 1 2 3
4 5 6 7
8 9 10 11
In the code I have figured out how to find the current tab index but I am having trouble moving to the next control based on which arrow key is pressed. Here is the code I have so far.
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
'This variable holds the current tab index for the control that has focus.
[Code]....
I commented the area where I haven't been able to figure out how to code it. I have spent a few days working this out and have spent the past 6 hours working on this part.
Just want to ask this. I have a jQuery that move listbox item to another listbox. An its working fine the item was remove. Sample: I remove item in listbox A and it was added to listbox B. But here is now the problem, when I tried to check each item in listbox A, I noticed that all items that was removed was still there. But i can see in my eyes that it was removed. but when I tried to run a code to check each items - all item that was removed was still there.
[Code]...