Search results for query: *

  • Users: Doug
  • Order by date
  1. D

    Add new record in Database using details

    You need to add your data bindings to each control. For each text box, you add your data binding during the form load. "yourTextBox.DataBindings.Add("text", yourBindingSource, "columnName")" Add the appropriate code to your buttons.
  2. D

    Web Page Login Tester Fails When Scheduled

    We eventually got the login tester working using HttpWebRequest. We rewrote the code as a consol application using HttpWebRequest and parsing the response. It was not easy, but we learned a lot about web requests in the process.
  3. D

    Web Page Login Tester Fails When Scheduled

    I did more research. It looks like what we are attempting is not possible. Forms authentication cannot be used in a scheduled task because page redirects are not allowed. I don't understand this entirely, but that seems to be the answer I am finding after significant web searches.
  4. D

    Web Page Login Tester Fails When Scheduled

    My orgainization uses a simple windows form to test if our site is up. The form has a web browser control on it. After it loads, the browser control browsers to the site and logs in. Yes, it uses the document complete event to know when the pages are done loading. It verifies whether the...
  5. D

    Question Communicating with two forms

    I believe you would be best served by learning some of the fundamental programming techniques rather given a quick answer. You will understand how things work better and will develop good programming habits. 4 major principles of Object-Oriented Programming | Raymond Lewallen I recommend you...
  6. D

    Question How do I Drag-Drop multi-selected values from a listbox?

    I changed to a ListView control instead of using a ListBox. The ListView has a ItemDrag event that triggers as soon as a drag is started. It works perfectly for my purposes. ListBox does not have that event.
  7. D

    Question Communicating with two forms

    First, I would recommend you use "Option Strict On". It will save you headaches in the long run. I will give you some generic ways to share data between forms. Each has its advantages and disadvantages: - Use properties and/or methods. Forms are classes. You can use them just like any...
  8. D

    Question How do I Drag-Drop multi-selected values from a listbox?

    I have a form with a datagridview and a listbox on it. I want to be able to select multiple items from the listbox and drag-drop them onto a row on the DGV. I have been able to do it fine with a single string usig the mouse_down event on the listbox. It does not work with a multiple...
  9. D

    Writing to "Application" in Event Log

    I found the problem. Because I registered the event source to the "Repository Server Restart" log first, it kept using that log. I deleted that log and now my code works.
  10. D

    Writing to "Application" in Event Log

    I need to write to the "Application" folder in the Windows Event Log, specifically on Windows Server 2003. We have a scheduled task that checks the Application folder and sends out notification emails. I must write to that folder or else my custom error will not be picked up. I created some...
  11. D

    Question Combine If And Also Statements

    Xor is an operator...
  12. D

    Question Combine If And Also Statements

    That was meant to be an example of using a string and its index to look up characters. You don't need to use Xor or other things in that code.
  13. D

    hiding rows where date column doesn't equal today in DataGridView

    I don't see anything wrong with your code. Sometimes running in debug mode is, well, buggy. Go into the bin\debug folder and run the executable. If it works fine, then I would move on. Another thing you could try is to use an intermediate variable. Sometimes the debugger does not like long...
  14. D

    Question Combine If And Also Statements

    If I am to understand what you are doing, you are giving each letter an interger value then summing them up? There are a number of approaches you can take. I would stay away from using If...Then statements because it would make your code huge. You could put the letters in an array and use the...
  15. D

    Answered How Do I Raise Events From Dynamically Generated List(of class)

    Nevermind. I needed to use addhandler in the subroutine where I created the new object. Everything works perfectly now. Private Sub addCriteriaRow() 'Dynamically creates the SearchCriteriaClass and adds its controls to the form Dim newSearchCriteria AsNewSearchCriteriaClass...
  16. D

    Answered How Do I Raise Events From Dynamically Generated List(of class)

    I am dynamically adding controls to a form. The set of controls are part of a class. Since I can add mutliple instance of the class to the form, I am using List(of ) to contain them. As the last set of controls from the SearchCriteriaClass are "activated" a new instance is created and its...
  17. D

    Question Use Variable to Access Different Properties

    Thank you for the suggestion. I did some searches using those search terms and eventually found the CallByName function. It looks like it will be perfect for my purposes. CallByName Function
  18. D

    Question Use Variable to Access Different Properties

    I am building a simple search application. It will go through files based on conditions that the user selects such as "Last Modified Date > 1/1/2013" etc. I want to allow users to use any of the fileinfo properties on either side of the condition. With 15 properties that can be on either side of...
  19. D

    Question Late Binding Warning With Excel Export and Option Strict

    That fixed it. Thank you JohnH!
  20. D

    Question Late Binding Warning With Excel Export and Option Strict

    I tried adding these lines to the code: objRange = objSheet.Range("A1", Reflection.Missing.Value) objRange = objRange.Resize(aMatrix.ArraySize + 1, aMatrix.ArraySize + 1) It still caused the same warning. I gave up and just put the code in its own class with option strict turned off.
Back
Top