Answer Questions
mikey1476 VS 2005: "Key not valid for use in specified state"
Hi all- I'm running VS 2005 final release version. I have a solution with two projects in it; an ASP.NET website in C# and a VB project which is my data access layer. Yesterday, this code was working fine. I can compile and run the solution, and all the code works. But when I try to access or add a new datasource through the VS 2005 Data Sources Explorer, I get a popup which says: "An unexpected error has occurred. Error messag ...Show All
Pardaillan WindowsSearchSafeFilter.exe takes all available CPU cycles
Anyone seen this before After I install WDS, this process will take over all available CPU cycles, stopping me from using my system. I have disabled my On-Access AntiVirus scanning and it did not help the issue. Thanks in advance. Hi, any news on this issue It started happening to me a week ago (after a few months of WDS usage) and it practically renders my computer unusable every now and then (takes 10 ...Show All
Andranik Khachatryan Class View Add Method / Property Wizard
Hello! This is my first time using Visual C# IDE, - Express edition. I would like to find out if the C# Express edition Wizards (or are they called templates) are available I see where one can add the code, but this is the error after typing in the code. The build fails as expected Error 1 Expected class, delegate, enum, interface, or struct ... public long Add( long val1, long val2) { } public ...Show All
Joey.Net can a managed dll call from C++
Hi i made a dll in C# so its managed... my question is can that dll be called from C++ Pascal or other languages but can all languages call COMs` how about other languages like Java Cobol PASCAL C C++ FORTRAN All .NET languages can call COM. The .NET framework deals with all the COM stuff for you. You can expose the managed DLL as a COM object and run it from C++ that way. The managed DLL would publish a COM i ...Show All
david sette global variable
Hi friends i want to create global variable that can be used anywhere in the project. what i am doing is am creating a connection to a sql server and i want to use that connection thru out my project whenever i want data from sql server. how can i do that any ideas where should declare that variable !!! Thanks Hi, Is the file that you downloaded called " Enterprise Library - August 2005 CTP.zip " This works with VS2005 Beta 2. Also ...Show All
SSISNewUser Form Background
Ok. I know I have asked this question before, but I found myself working on another task so I need to ask again. What I want is for my forms background image to exceed the form borders, so that the background image is seen and not the form. For example, Windows Media player, notice its soft bevel edges. Like the background image is covering the form. Can someone explain throughly on how to do something like that Thank you. I've followed th ...Show All
Ravindra Agrawal Simple question.
I have been writting c# for a year, but I suddenly want to clarify a simple question in my mind. It is a well-known fact that System.Object is the universal base class of all types. So, System.Object is a reference type, right How can value types(like int, decimal) be dervied from Object Thanks To quote the documentation for ValueType as an answer: ValueType overrides the virtual methods from Object with more appropriate impl ...Show All
MikeBur concurrency violation
Why public void MoveUp( int ID) { OpenConnection(); DataAdapter da = connection.GetDataAdapter(); string SQL = string .Empty; SQL += "Select..." DataTable tbl = connection.GetDataTable(da, SQL); //my lib, no problem executes SQL and return result in datatable // 2 righe di risultato if (tbl.Rows.Count == 2) { // swapping int temp = Convert .ToInt32(tbl.Rows[0][ "Ordine&q ...Show All
Joel Bennett width % and px
I have my datagrid (ewb app) with 1 column not visible, then a column, then other columns of width=10px,10px,20px,20px. Datagrid is in <div style="OVERFLOW-Y: auto; WIDTH: 100%; HEIGHT: 100%;"> which is in a table... I want size 2nd column to fill remaining part. How Thx My table (100% width) has datagrid in the first row... then i have to size datagrid column... Pls could you post it I can't join it! Thx ...Show All
GreenStone90 IS Word Control exists ?
Is there a "word Control" I mean : in that control we can edit the real WINWORD document. Hi, Take a look at the DSO Framer ActiveX Control. This should help you: http://bbs.hidotnet.com/ShowPost.aspx PostID=712 Regards, Vikram ...Show All
agilegroup Process.GetProcesses() and user privilege
I have a VS 2003 C# application that works fine in most environments. It has recently been installed in a corporate environment (WinXP / Server 2003) where the user workstations are pretty well 'tightened-down' from a security point-of-view. The application makes use of the Process.GetProcesses() and it appears that the application throws an exception when this is called due to insufficient privilege. So my question is -- from a security perspec ...Show All
bluemaple Asyncronous socket server with windows service
Hello, I've made a component that creates a socket server that should accept any socket. My first attemp was to use this component in a standard windows application - that worked fine. In the second attemp I use the same component in a windows service, at first I thought it worked well - but today I noticed that it only accepted sockets from my own computer! I switched to the first application and checked if it accepted foreign connection, it di ...Show All
DmVa XML
Is there anyway for a DataGridView to read an XML file and display it Try this post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=155336&SiteID=1 Also, there is a Windows Forms Data Controls and Databinding forum that is great for questions like this. Thanks, Karen ...Show All
Kered Issue with COM Port Access (serial port emulation)
I'm developing an interface for a handheld barcode reader, and I'm having trouble with accessing the COM port with Visual Studio 2005. The device has a USB connection, but comes with drivers to emulate a serial port. Whenever I try to access the device with System.IO.Ports, I get the error: "The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name: portName" Is Visual Studio acces ...Show All
BruceWALT When and how the instance of a singleton object will be disposed..?
using System namespace DesignPattern { class Connection { private static Connection instance; private Connection() { } public static Connection GetInstance() { if (instance == null ) { instance = new Connection(); return instance; } else return instance; } } } Now this is a singleton class .So every consumer of this class will get an single inst ...Show All
