Search results for query: *

  1. L

    ListBox Multi-Select Issue

    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...
  2. L

    ListBox Multi-Select Issue

    John, 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. jmcilhinney, I created a test project and it was working as expected...
  3. L

    ListBox Multi-Select Issue

    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...
  4. L

    ListBox Multi-Select Issue

    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...
  5. L

    ListBox Multi-Select Issue

    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 &...
  6. L

    Question Printing Multiple PDF Files In Order

    Hello, 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...
  7. L

    Resolved Call Web Service

    Thanks John. That works much better and gets what I need done. Lot less code and easier to use.
  8. L

    Resolved Call Web Service

    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 =...
  9. L

    Resolved Call Web Service

    UPDATE: 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...
  10. L

    Resolved Call Web Service

    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)...
  11. L

    Question Losing Focus of Autopostback

    When my textbox postback from the textchange event, the textbox is losing focus even though I have TextBox1.Focus() at the end of the sub. I've tried javascript as well, but it still loses focus after the second time a key is pressed. Could I get help with keeping the focus on the textbox after...
  12. L

    Request.Querystring Problems

    I believe it works in IE, but its not working in Mozilla or Chrome. Is there a way to get this to work?
  13. L

    Request.Querystring Problems

    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...
Back
Top