On changing the index of the combo box giving the following exception Invalid operation Exception: List that this enumerator is bound to has been modified. An enumerator can only be used if the list does not change. why this exception is coming pls help me!
kalaveer
Posts
-
Invalid operation Exception on selectedindexchange event of combo box in C# -
Retrieving the COM class factory for component with CLSID failed due to the following error: 80004005.why the Exception Retrieving the COM class factory for component with CLSID failed due to the following error: 80004005. occurs how to resolve this.
-
Format of the initialization string does not conform to specification starting at index 0 in my connection establishing statement .Hurry! problem has gone!!! There was a very little mistake in the connection string path of the database is wrongly mensioned. Correcting the path solved the issue.
-
Format of the initialization string does not conform to specification starting at index 0 in my connection establishing statement .Hi, Does anybody knows why this unhandled exception occurs and how to resolve this. "Format of the initialization string does not conform to specification starting at index 0" in my oledb connection string Thanks in advance.:)
-
how to know the datatype of a field in a database?how that helps?:confused:
-
how to know the datatype of a field in a database?hi, in the sql we have user_tab_coloumns to know the datatype of a field in a table by properly querying but my problem is i am using an oledbconnection in C# to connect to an access database and i want to know the datatype of a field of a table in that perticular database how to do that? pls help me. thanx in advance.
-
Problem with for each statementHow to do so.
-
Problem with for each statementBut while debugging fileids contents are the string values of that perticual field contents which i queried using oledb command.
-
Problem with for each statementEven this is not working by the way my ReturnFileIdentifiers code would be below string[] ReturnFileIdentifiers() { using (OleDbConnection connection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\Warehouses_older\\Sample1_cat61.mdb")) { OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT MD_Metadata.FileIdentifier FROM MD_Metadata", connection); DataTable FileIDs = new DataTable(); adapter.Fill(FileIDs); string[] fileids = new string[FileIDs.Rows.Count]; for (int i = 0; i < FileIDs.Rows.Count; i++) fileids[i] = FileIDs.Rows[0].ToString(); return fileids; } }
-
Problem with for each statementYes it is returning all the strings properly.
-
Problem with for each statementi am using foreach statement to read all the strings in a string array but while reading all the time it is showing System.Data.DataRow in the string identifier here is code which is giving the above specified problem: string[] fileidentifiers = ReturnFileIdentifiers(); foreach (string identifier in fileidentifiers) if (identifier == fileidentifier)
-
why my file not opened [modified]i have the xml declaraion in 2 files but one file is able open properly in the browser on double clicking but other giving me the below error Switch from current encoding to specified encoding not supported. Error processing resource 'file:///C:/Documents and Setti... Can any body tell me where could be the problem thanx in advance. -- modified at 4:57 Monday 30th April, 2007
-
i hope this question can be asked hereCan u pls tell me what happens if we ignore the token name in the macro ex: #define dfg Thanks in advance.
-
might be simple question but pls replywhat is the meaning of following declaration typedef void _TY; Thanks, kalaveer.
-
what care we must take to modify the registry entries?Actually i want to modify my registry entry to someother but some where i read that it is the sensitive area if a small problem occurs then the entire system wont work. So please suggest what are the things i need to change i want to modify the registry entry of my component. Thanx, Kalaveer.:rose:
-
Unable to get the problem.Hi i am trying to change a component code a little bit to display some statusbar messages etc. By the way the component is devoloped in VB so i did a small change initially to the code like changed the cursor style and code to display some status message after that i did "make DLL" then that worked well on registering the newly created dll. But after that i included a single statement to setfocus to someother control and again i did the makedll this time on registering the dll the component is not at all activating so i removed the statement which i included (i.e to setfocus of some control)again i created the new dll using make dll but unfortunately the new dll(which is like the previous worked one ) not activating the component. What could be the problem why its happening so. Please help me. Thanks in advance.
-
Doubt regarding classlilbrary.Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?:confused:
-
how to override the priority of an eventhi in my application initially one button event occurs due to that it executes some function during that function execution if i press any character on the keyboad my keypress event should execute instead of completing the button pressed event code. how can i do that please help thanks in advance.
-
why my datareader object of oledb in C# not properly readingi am trying to read a memo field of database using oledb datareader after executing the query like below datareader.GetValue(0).ToString() which only reading the first 255 chars in the memo field how could i read the whole contents at a time please help.
-
How to handle unhandled exceptionsis there any way to handle the unhandled exceptions generated to display user define messages instead of breaking the execution.