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.
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.
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.
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...
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...
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.
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...
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...
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.
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...
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...
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...
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...
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...
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
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...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.