Prashanth Gajra's Q&A profile
Windows Forms Suggestions on what to do?
Hello everyone, My disk space has been getting low recently and so I decided to write a program to list files/folders above 300 megs in a listbox. Unfortunately, I have no idea what kind of controls I'd want to use in C# and I don't want to use VB as I'm trying to learn C#, so this should be a good project. Any ideas There was a very slight difference occasionally with the MSIL created by vb.net and c# in 1.0/1.1 (see here fo ...Show All
Visual Studio 2008 (Pre-release) RunOnUIThread - Callback Contract
Hello, I'm build an application using WCF. I have a service contract which is declared with a callback contract. The service is running inside console applcation using NetTcpBinding. The client is a Windows Forms application which create a duplex channel to the service. After I call to the method Login on the service the service keep a callback proxy (from OperationContext.Current.GetCallbackChannel). When an event occure the serv ...Show All
Visual Studio Team System custom rule to identify com objects...
Hi, My query is : can we write a fxcop custom rule to find out whether or not a com dll is being referenced and used in my dotnet assembly using introspection engine. If so, how to implement that rule. To be more specific, how to identify a com referenced object in my c# class and check whether this object is disposed properly. any valid pointers Thanks, Vijay Hi, Thanks for your response. ...Show All
Windows Forms Adding nodes to a treeview dynamically
Hi I have a main Form with a treeView...and some nodes which are populated from a database....I have an Add New Node Form with an add method that adds a new node to the database...Obviously I have to reload from the database before I ...Show All
Visual C# Can I add flashing button gif image file to ListView?
My question is simple, can I attach gif image file which able to animate. I want to attach a flashing LED button image to the ListView and animate as flashing LED in different colour, only 2 colours will do. Had looked on here & google not able to find a article or any forum. First, attached flashing gif file to it but it did not shows flashing only static one colour. Then I tried to use alternate images by switching images' indexes, it w ...Show All
SQL Server MDX problem in AS2005
When executing the following MDX statements I get an error with AS2005 although the query seems to be valid, at least AS2000 has no problems with it. CREATE SET [Sales].[Y1] AS '{[Product].[All Products].[Drink]}' CREATE MEMBER [Sales].[Product].[X] AS 'Sum([Sales].[Y1])' SELECT Order({[Product].[X], [Y1]}, [Measures].[Unit Sales]) ON AXIS(0) FROM [Sales] I create a set, a calculated member as the sum of this set, and then query ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Editboxes
Using the sampleFramework, Is there a way to keep the caret with in the Editbox, I have tried a ton of seting and code with no luck, I even tried to add a scroll bar to the Editbox and failed badly. No I meant the c# I just used the : to mean look in the FocusText() method in the EditBox class. Sorry if I confused anyone. THe c++ example of UI works perfectly, the caret positioning error is only in c#. David ha ...Show All
Windows Live Developer Forums Log in messenger contactlist on website
Hello, I would like the possibility for visitors of my website to log in and check they're MSN contactlist. I have looked everywhere for a tutorial or scripts that are alike, bud haven't found nothing. Does somewone know if it is possible Maybee you can point me in the right direction Thanks in advance, Barton You could sign in to Messenger by coding your own bot in php/perl/c. A php to log in example made ...Show All
Windows Forms How to run a function from a MDIi Child in a MDI Parent
Hello all, I have one problem, I want to execute a function I have in my MDI Parent from a MDI Child that is owned by the MDI Parent, and I just cand find a way to do it. If you coi~uld help me, I would apreciate. Thanks in& ...Show All
SQL Server import from Excel error
While attempting to import data from Excel using SSMS and the import/export wizard, I received the following error: TITLE: SQL Server Import and Export Wizard An error occurred which the SQL Server Integration Services Wizard was not prepared to handle. ADDITIONAL INFORMATION: Exception has been thrown by the target of an invocation. (mscorlib) The connection type "EXCEL" specified for connection manager "{11CD789E-0DC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX April 2006 SDK
i've created a DX3D app that works fine on my computer with the SDK installed buf if i try install on another computer i get errors, i've tried on other computers so it's not just mine, also i used the publish wizard and installed on a clean Win2003, it installed .net and dx fine but the app still errors, i also compiled on an x64 Windows XP and still the same error i'm using Windows 2003 Service Pack1, VS.net 2005 Pro, .net framework 2. ...Show All
Visual Studio Team System how to replace a project while retaining history
I have included in my solution an 3rd-party project, so that I can easily step into it and also make some modifications. When they release a new version, there are newly added files and removed files. What is the best practice for replacing the project in my solution What I would want to do is check out everything, overwrite the new files and check in, however, that would leave removed files on my disk (not a real big problem) and also not ...Show All
Windows Forms How do add an item to a databound combobox
Hi All, I have a combobox which is databound to a dataset. When I call addnew it clears the selection but doesnt add my text. I end up a the original items in the list but an extra blank entry that is linked to the new entry. Dan ...Show All
SQL Server ODBC connection to SQL 2005 Express
I am attempting to setup a SQL Server 2005 Express database as a backend to an Access MDB, and need to establish an ODBC data source for the backend database. On two different systems (Windows XP Pro and Windows 2003 SBS), I get an error that says I cannot connect to the SQL Server. I get a message that says: Connection failed: SQL State 08001 SQL Server Error: 2 [Microsoft][SQL Native Client]Named Pipes Provider: Could not open a connection ...Show All
Visual Studio Team System Official data about overhead and performances of Team Foundation Server
Hello everybody, beg your pardon for cross-posting. I'd like to know if there's any official available data about overhead introduced by TFS (e.g., to store 10 MB of source files, how many MB of metadata are required ), and about performance improvements in check-out files over VSS. Buck has a blog entry <http://blogs.msdn.com/buckh/archive/2006/02/22/tfs_size_estimation.aspx > on determining space requirem ...Show All
