Search results for query: *

  1. C

    Question Best practice for Exception Handling

    Hi everyone, I'd hoped I'd explained myself OK, and the query seems a reasonable one; does anyone have a view? Thanks
  2. C

    Question Best practice for Exception Handling

    Hello all, I was hoping for some advice or suggested reading for Exception Handling, specifically how errors should 'bubble up' from their source to root of the application. At the moment I'm working on a windows service which carries out a check, then an action, before sleeping for a time...
  3. C

    How do I get started?

    I'll leave the coding bit for the moment, since you know what's going on with that one. SQL DB's are, in the background just files (data and log). These are hosted by the SQL Server instance and made available to external users (applications or people using management tools). The SQL instance...
  4. C

    How do I get started?

    I found the key to starting out was initially having an idea you really wanted to see through. While struggling through issues and bugs not having a final goal can really sap the enthusiasm. Sounds like you have something of a plan, so on a technical side, I would say: (only my opinions, many...
  5. C

    Question Share data between forms (as opposed to passing data)

    Thank you for the advice jmcilhinney, this solution worked very well for me. This is a useful piece of information, and not something I had found in my searches up until now. Cheers
  6. C

    Question Share data between forms (as opposed to passing data)

    Quite a few threads on passing data from one form to another, but I'm struggling to work out how to share data between the two - back and forth. For example: Class1 is a class with 10 string properties Form1 has 10 labels ("Label1", "Label2" etc) and a [Configure] button. Form2 has 10...
  7. C

    Incrementing time, but not 'Now'

    Thanks for the post cjard, I was missing the now.date aspect in my thinking. Cheers!
  8. C

    Incrementing time, but not 'Now'

    Hi Guys, I hope you can help me with this simple little problem that I just can't get around! It's driving me nuts, as I sure there is an easy way to do it. I'm looking to output in some way (messagebox, textbox, listbox etc) times starting from 8am all the way to 9pm in set increments (30, 15...
  9. C

    Question Combobox FindString and Selected Index

    Well after about 2 days of working on it, I think I've sorted it. I needed to use the .Text value and not any of the .Selected... items. Very odd. Hope this thread is of use to someone!
  10. C

    Question Combobox FindString and Selected Index

    Hello all! I'm using a combox Findstring function to return the index location of an item in the list. The search string is created from a Database query that all works correctly. I then set the SelectedIndex to the value found. Dim SearchString as String =...
  11. C

    Question Stop an application looking like it has crashed?

    I agree, in the end I moved away from the new progress window and used a listbox built into the main form itself. The background worker was very easy to work with once I understood the concept (especially getting around the fact that the Worker cannot nativly access elements on the main form)...
  12. C

    Question Stop an application looking like it has crashed?

    Thanks for the point in the right direction John, I didn't know my terminology! For anyone who stubles accross this thread I would highly recommend this tutorial as a great one to start. Nice and slow, but clearly showing how it works allowing the user to take the lessons learnt and use then in...
  13. C

    Question Stop an application looking like it has crashed?

    Hello all, I have a vb app that accesses a network drive and deletes some folders if certain things are true. At the moment if one of the folders is very large or there is a network delay the app seems to freeze and looks like it has crashed. I already have a "progress form" popup which has a...
  14. C

    Question How to close an application?

    Thanks John, I'll give that a go.
  15. C

    Question How to close an application?

    Thanks John, do you mean have the Login form being called on the Main Form OnLoad function? I did give something like this a go. Not having the complier in front of me I had something like this. // Inside the Main form OnLoad function login.visable = true me.visable = false // Then on the...
  16. C

    Question How to close an application?

    Hello, I have two forms, Login and Main. The VB project is set to load Login first. If the user's credentials are correct I call the main form with Main.Visable = True and hide the Login form with Me.visable = false While this works, if I close down the Main form using the normal X button, the...
  17. C

    Question CheckedListBox with a DataSource

    Thanks for the advice MattP. The first post was a cut down version of my project in total. The aim of the form is to load the list with items from the database, then allow the user to check or uncheck some items. A button click will then take the collection of items and set the 'Active' flag...
  18. C

    Question CheckedListBox with a DataSource

    Hello all, I'm working on a small problem with regard to the CheckedListBox and mapping to a data source I have a database with three fields 'Name' - The description of the item, a string and quite short 'ID' - A unique ID, auto incremented by the database 'Active' - A 1 or a 0 to show if that...
  19. C

    Question Activate, Deactivate, then reactivate a ListBox DataSource

    Beacause this is so odd, and to test you would need a MySql db, I have taken a video of what happens. It shows my form, the checkbox and listbox, along with the button press that displays the Count of the list box Its a small avi of about 40 seconds, with the problem plain to see at about 20...
  20. C

    Question Activate, Deactivate, then reactivate a ListBox DataSource

    Thanks for your reply, here is some code to help explain it all (I hope) Legend- cbAddSource - Checkbox lbSource - Listbox that needs populating txtAddSource - textbox that is not really important to this example Checkbox 'Checkbox to see if Add Source has been selected Private Sub...
Back
Top