I have figured out the solution:
In the following code: The bolded line is what was causing the problem. Thanks for the help.
If ascan_listbox_iteam(sIndex) > -1 Then
For i As Integer = 0 To selected_arr.Count - 1 Step 1...
That did work, but the thing that worries me about that is most users are not going to know to do that.
Most users are going to release the shift key before dragging, as I always have so I don't think this is reliable.
I created a test project and it was working as expected...
I'm capturing the list of selected items because when using drag and drop, all of the selected items are lost.
With my method, I can use the list to re-select the items before the drop occurs, which works just fine other than the problem with the selected items.
Maybe there is a better way to...
I tried JuggaloBrotha's and Ian's code and it was giving the same results as the GetSelected function.
I was using it in the MouseUp event, which I believe that takes place after SelectedIndexChanged event.
I did try the code in the SelectedIndexChanged event and still giving the same results...
When I use Shift+Click to select multiple items in a listbox, the following code is not recognizing the selected items between the first selected index and the last selected index as being selected:
For i As Integer = 0 To listSongs.Items.Count - 1 Step 1
MessageBox.Show("Index of " & i &...
I'm trying print multiple PDF files using the following code:
Dim startInfo As New ProcessStartInfo
startInfo.FileName = fileToPrint
startInfo.Verb = "print"
startInfo.Arguments = ""
startInfo.UseShellExecute = True
startInfo.CreateNoWindow = False
Dim report As Process = New...
Ok, I figured out the name part.
Dim postData As String = rtnString should be Dim postData As String = "txtString=" & rtnString where txtString is the parameter of the web service.
I also had to change objRequest.ContentType = "text/plain" to objRequest.ContentType =...
I am calling the web service. I was getting an internal error 500 message because the web service is looking for a variable being name "txtString".
Now that I found this out, in the HttpWebRequest method, how can I set the variable name of the string that is being passed into the web...
I'm trying to send a string from an XML to a ASP.NET web service, which will then convert that string to XML and saves it locally. I have everything working except for when I try to call the web service by the code below, I get the following error:
The remote server returned an error: (500)...
Could I get help with keeping the focus on the textbox after...
I'm using request.Querystring to redirect the user back to the original page after logging in. The querystring redirects them back to the orginal page, but the login session is not updating, so it redirects back to the login page. I tried a link that will go to that page, and when the link is...