Search results for query: *

  1. G

    Dynamic Webconfig?

    Is it possible to create a webconfig file dynamically? We have a web app that presents a series of menus. We would like those menus to be populated based on username or user group. We can get all this information from a table and it seems easy enough that we coulduse the information in the...
  2. G

    Phone Number Format??

    I have a datagrid that is populated with contact information. The phone number gets populated as 1234567890. I have been unable to find how to format that as (123) 456-7890. Can anyone help???? Thanks!
  3. G

    Looping through components on a form

    I guess what's giving me the most trouble is looping through each instance of the component. I've tried putting: dim arrGuests as ArrayList = New ArrayList dim MyGuest as new Guest For each MyGuest in Form1 arrGuests.Add(MyGuest) Next This gives me an error: Form is a type and not...
  4. G

    Looping through components on a form

    It's kind of cheesy, but I have a "guest" class which I turned into a component. The component holds information about guests that have visited a particular website. There are multiple instances of this component and I want to loop through each of the instances and populate a text file with the...
  5. G

    Looping through components on a form

    I have a form with multiple instances of a component on it. I want to be able to loop through all the components and return the information to an arraylist. Is this possible? Thanks!
  6. G

    ArrayList not populating correctly

    Hey TechGnome, Thanks for the reply! I really appreciate the help! I did what you suggested and moved the Dim out of the sub and into the module level and now the datagrid gets populated after the first guess but then never again. Do I need to move something else into the Module level...
  7. G

    ArrayList not populating correctly

    Or maybe it is but the data just isn't displaying properly. What I'm trying to accomplish is a "guessing game" for my nephew. He enters a number and is prompted as to whether the number is too high, too low or guessed correctly. Each guess along with the number of tries is then put in an...
  8. G

    Listview not refreshing

    That did the trick! Thanks
  9. G

    Listview not refreshing

    After I add, delete or edit values in a listview I want the listview to refresh to reflect the changes. I have tried my.Forms.frmPublications.lvTitles.Refresh but this doesn't work at all. Any help would be greatly appreciated!
  10. G

    Cannot add new row to datatable

    Aha! You're so good. No I was not loading the table into the dataset. I did that and the error is gone. Thanks!
  11. G

    Cannot add new row to datatable

    This is the line of code where I get the new error message: newBookRow = newTitles.Tables("Titles").NewRow()
  12. G

    Cannot add new row to datatable

    When I do that, I get the original error "Object reference not set to an instance of an object." :-(
  13. G

    Cannot add new row to datatable

    I am having problems adding new rows to a datatable. I was getting the error message "Object not set to an instance of an object." The answer seemed quite clear to me; create a new instance of the datarow object. After doing that I now get this error: "System.Data.DatRow.Protected Sub New not...
Back
Top