Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in program VBA excel. Kindly guide me. Pin
Tim Carmichael7-Sep-14 5:59
Tim Carmichael7-Sep-14 5:59 
GeneralRe: Problem in program VBA excel. Kindly guide me. Pin
Member 110635317-Sep-14 18:27
Member 110635317-Sep-14 18:27 
GeneralRe: Problem in program VBA excel. Kindly guide me. Pin
Chris Quinn8-Sep-14 4:30
Chris Quinn8-Sep-14 4:30 
QuestionGet Attributes of External Assemblies Pin
Dominick Marciano4-Sep-14 15:09
professionalDominick Marciano4-Sep-14 15:09 
AnswerRe: Get Attributes of External Assemblies Pin
Richard Deeming5-Sep-14 1:46
mveRichard Deeming5-Sep-14 1:46 
GeneralRe: Get Attributes of External Assemblies Pin
Dominick Marciano12-Sep-14 6:36
professionalDominick Marciano12-Sep-14 6:36 
QuestionSynchronization of camera and shell orientation Windows 8.1 Surface Pin
Member 110572154-Sep-14 3:33
Member 110572154-Sep-14 3:33 
QuestionCopy selected listview item to a textbox VB.NET Pin
Pete_1233-Sep-14 5:49
Pete_1233-Sep-14 5:49 
Hi, I'm working on a small project , I'm trying to copy a selected list view item to a textbox this will then use the text in the textbox to create a text file with the name as the textbox text. here is the code I have so far:

SQL
If e.Button = Windows.Forms.MouseButtons.Left AndAlso e.Clicks = 1 Then
            For Each selectedItem In selectedItems
                REM ---lsvRQLiveFeed.Items.Remove(selectedItem)
                REM ---lstDJFeed.Items.Add(selectedItem)
                txtITEM.Text = lsvRQLiveFeed.SelectedItems(0).Text

                My.Computer.FileSystem.WriteAllText("C:\Users\Pete\Desktop\DJ Sync\DJ Sync\test\REQUEST\" + txtITEM.Text, +"." + ".txt", False)

            Next



however I seem to get an error with the following line:
txtITEM.Text = lsvRQLiveFeed.SelectedItems(0).Text


InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index


is there any solution I have been working for a while on this issue and I'm struggling to find a solution ?

Any help with this greatly appreciated.

Regards

Pete
AnswerRe: Copy selected listview item to a textbox VB.NET Pin
Eddy Vluggen3-Sep-14 7:14
professionalEddy Vluggen3-Sep-14 7:14 
QuestionRe: Copy selected listview item to a textbox VB.NET Pin
Pete_1234-Sep-14 7:01
Pete_1234-Sep-14 7:01 
AnswerRe: Copy selected listview item to a textbox VB.NET Pin
Eddy Vluggen4-Sep-14 8:15
professionalEddy Vluggen4-Sep-14 8:15 
AnswerRe: Copy selected listview item to a textbox VB.NET Pin
Tino Fourie24-Sep-14 6:49
Tino Fourie24-Sep-14 6:49 
Questionstring to byte, having trouble with line feed characters Pin
jkirkerx1-Sep-14 10:15
professionaljkirkerx1-Sep-14 10:15 
AnswerRe: string to byte, having trouble with line feed characters Pin
Dave Kreskowiak1-Sep-14 11:19
mveDave Kreskowiak1-Sep-14 11:19 
GeneralRe: string to byte, having trouble with line feed characters Pin
jkirkerx1-Sep-14 12:09
professionaljkirkerx1-Sep-14 12:09 
QuestionHow to use own collections in application settings in VB.NET? Pin
ponchofiesta31-Aug-14 21:35
ponchofiesta31-Aug-14 21:35 
AnswerRe: How to use own collections in application settings in VB.NET? Pin
Eddy Vluggen1-Sep-14 0:27
professionalEddy Vluggen1-Sep-14 0:27 
Questionwav to mp3 Pin
Ali Asgar29-Aug-14 4:52
Ali Asgar29-Aug-14 4:52 
AnswerRe: wav to mp3 Pin
Dave Kreskowiak29-Aug-14 5:05
mveDave Kreskowiak29-Aug-14 5:05 
GeneralRe: wav to mp3 Pin
Tim Carmichael29-Aug-14 6:28
Tim Carmichael29-Aug-14 6:28 
QuestionRe: wav to mp3 Pin
ZurdoDev29-Aug-14 5:38
professionalZurdoDev29-Aug-14 5:38 
QuestionVB6: error- report writer does not support multidimensional hierarchy Pin
Member 1102617826-Aug-14 3:20
Member 1102617826-Aug-14 3:20 
AnswerRe: VB6: error- report writer does not support multidimensional hierarchy Pin
Chris Quinn26-Aug-14 22:12
Chris Quinn26-Aug-14 22:12 
QuestionMessage Closed Pin
25-Aug-14 1:15
Jashan12325-Aug-14 1:15 
SuggestionRe: Algorithms to Visual Basic Code Pin
Tim Carmichael25-Aug-14 1:58
Tim Carmichael25-Aug-14 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.