I have a datagridview control in a tab page. Data on the dgv is populated by the datasource in the Windows VB.Net application and the datasource reloads itself on that tab page "on enter" event . There are several tab pages in the main form and I designed an "Exit" button in the main form to close the application completely. Problem is system crashed (not happen regularly but randomly, most likely after I sorted/filtered the column in the dgv or clicked on a row in dgv, but not always. ) when the focus is on the tab page with the datagridview control and exit out of the application. It pops up a datagridview error dialogue saying: "System.Windows.IndexOutOfRange....blah, blah, blah at System.Windows.Forms.CurrencyManager.get_Item(Int32 index)...blah, blah" What is this exception? What have I done wrong in the application exit, it is just a simple line of code as follows: Private Sub btn_Exit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Exit.Click Me.Close() End Sub Thanks
Hello: The DBA here changed the sa password and now a .exe program that users double-click on in order to run a SQL 2000 DTS package gives the response "Login failed for user sa". In looking at the app.config file, the sa user ID and password are encrypted. (The sa password used to be "sa"!) Anyway, how can I encrypt the new sa password into this app.config file. The code is below: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="LogFileDirectory" value="c:\jcrepwin_Mulch\log\"/> <add key="SQLServer" value="LBSQL01"/> <add key="DTSPackage" value="XFER Transactions_MULCH"/> <add key="USER" value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAPUE5rk/gIEOeRPHLTmUviwQAAAACAAAAAAADZgAAqAAAABAAAACZvuGrxlyOIFqIAA56PCQfAAAAAASAAACgAAAAEAAAAFNaL/Xb3yweQOJgin+/zIAIAAAA4IlN3L5DuBEUAAAAatjuryGf7l0VrRZuvXreq7CyQ6M="/> <add key="PWD" value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAPUE5rk/gIEOeRPHLTmUviwQAAAACAAAAAAADZgAAqAAAABAAAACZvuGrxlyOIFqIAA56PCQfAAAAAASAAACgAAAAEAAAAFNaL/Xb3yweQOJgin+/zIAIAAAA4IlN3L5DuBEUAAAAatjuryGf7l0VrRZuvXreq7CyQ6M="/> </appSettings> </configuration> Thanks! SQL Programmer (it's just a name)