Search results for query: *

  1. C

    Controlling Number of Backgroundworkers

    Thanks for the suggestion. I'm looking at Tasks and think they may be a solution to my problem. I'm struggling to figure out the logic that would allow me to control the number of tasks running concurrently and starting new tasks when previous ones have completed.
  2. C

    Controlling Number of Backgroundworkers

    I have an application which queries a number MySQL databases, up to 9 depending on the user's selection. The databases all sit on the same server. Because the application can make many many calls to the server, I'm trying to speed things up by creating multiple concurrent connections to the...
  3. C

    DataGridView Error On Column Resize

    You're right John, e.RowIndex is -1 in debugger. I solved it by putting my code within an If statement were e.RowIndex > -1 and it seems to be working fine. Thanks for your help
  4. C

    DataGridView Error On Column Resize

    My mistake John, there are 8 columns in my dataGridView, not 6.
  5. C

    DataGridView Error On Column Resize

    Folks, I'm new to this game and struggling to figure out why this error is occurring and how I should solve it. At first the problem seemed intermittent, but I've now figured out how to replicate it over and over. I have a datagridview control with six columns, two if which are...
  6. C

    Unwanted Threading

    I'm writing a windows forms application for viewing forums. I have a user, thread and post class. The user class contains an arraylist of threads (threads the user has created) and in turn the threads class contains an arraylist of posts (posts in the thread). In order to get the threads and...
  7. C

    Delay in Adding Item To Listbox

    Thanks very much. Only a small application, first option worked a charm (refresh listbox).
  8. C

    Delay in Adding Item To Listbox

    Folks, I have a form which contains a listbox, which I'm using to display a running log to the user. The application retrieves data from a database and then processes it. What should happen is when the user clicks on the button to set the application running I add an item to the listbox stating...
  9. C

    Trying to Remove new line in string

    Ha! myString.replace(vbLf,"") did it.
  10. C

    Trying to Remove new line in string

    Also tried myString.replace(vbCrLF,"") with no success.
  11. C

    Trying to Remove new line in string

    Beginners Question ***************** I'm having some trouble removing a new line from a string. I've tried regex.replace(myString, "\r\n","") and regex.replace(mySTring, environment.newline, "") but neither work. Every time I debug.Print the string it appears on two lines The string itself is...
  12. C

    RequiredFieldValidator not Stopping Form Submission

    Solved it. For those who may be encountering the same issue here's my solution. The requiredfieldvalidators, and the controls they related to, were placed into a table. On close inspection, the tags of the table (<tr><td> etc) were badly formed. When I ensured that the tags were in the right...
  13. C

    RequiredFieldValidator not Stopping Form Submission

    This is odd, my requiredfieldvalidator have suddenly stopped working. I have four relating to various controls (3x dropdownlists and 1 x textbox). Up until recently if the initial value were not changed when the submit button was clicked, the red error messages would appear the the routine...
  14. C

    Update Panel Problem

    Well, based on my descriptions above. If the user selects "Add another type" from the ddl, then I want the whole page to refresh in order that the invisible panel becomes visible. Then once the user has added another type in the textbox on the invisible panel and clicked the submit button (again...
  15. C

    Update Panel Problem

    Sorry, the invisible panel is not in the same update panel as the ddl.Essentially my page has three columns. The ddl and the updatepanel on which it sits are in the middle column. When the user selects "Add another type" from the ddl, the invisible panel should appear in the right hand column...
  16. C

    Update Panel Problem

    Hi, I have a form with a drop down list that is bound from a database. The last option in the ddl is "Add another Type", in order that the user can add to the list. My idea was to have a panel which is invisible. If the user chooses "Add another type" the panel becomes visible. They enter the...
  17. C

    RegularExpressionValidator Problems

    Further to the above, just to illuminate the issue further. If I type a word into tbAudience and tab away from it, the vlidator fires and I see the failure message. If I then click the submit button, this message disappears even though there are other controls on the page that have failed...
  18. C

    RegularExpressionValidator Problems

    Hi, I have a form on an aspx page with several controls. I have one textbox which is invisible by default, but becomes visible (on postback) if the user chooses a particular value from a dropdownlist. The textbox (tbAudience) can only contain a whole number. I have two validators pointing at...
  19. C

    Question Iterating Through DictionaryEntries Adding Keys and Values to a Table

    Thanks for your suggestion John. In a moment of clarity I figured out a way to do this. It's similar in principle to your suggestion, but I used an arraylist and tested to see if it contained two elements. If it did, I sent the two dictionary Entry objects to another another routine, which...
  20. C

    Question Iterating Through DictionaryEntries Adding Keys and Values to a Table

    I have a little project, where I want to display various pieces of information on web page. Part of the information is the capabilites of the user's browser. So far, the following code has grabbed all of the capabilities and displayed then onscreen, albeit in a crude form Dim bc As...
Back
Top