Basilica's Q&A profile
Windows Forms DataGridView issue
I have been using the DataGridView in Windows forms 2.0 (beta 2) and have observed inconsistent behaviour. In a recent project I am binding a DataGridView to a DatSet (Using the MS Oracle Data provider). The DataSet is being created manually in code. The DataGridView is populated correctly with the data, but I cannot set the column properties. For example, I cannot change the column headers or make other columns invisible (the respective properties that I set are being ignored). If I generate the same functionality using the design time tools, i.e. drag a DataTable onto an empty form from the Data Sources window, So that a DataGrid ...Show All
Visual Studio Team System Chinese characters become "?" after using TFS source control
After using source control, I found chinese characters in source code become " " How to fix this problem Thanks! That shouldn't happen. What encoding are your files What does TFS think the encoding is (look in the Properties dialog or 'tf prop') ...Show All
Visual Studio 2008 (Pre-release) List
I followed the code from one of the LINQ lesson showing how to retrieve information from the List object as follow: ...... List products = GetProductList(); ........ static List GetProductList() { List productList = new List { { ProductID = 1 , ProductName = "Chai" , Category = "Beverages" , UnitPrice = 18.0000M , UnitsInStock = 39 }, ..... } } The compiler returns an error saying that "Error 1 Using the generic type 'System.Collections.Generic.List<T>' requires '1' type arguments" I understand what a generic is, but I'm clueless what&nbs ...Show All
Windows Forms changing ip address
Hi, I am building a windows application that works as an administrative tool. In this application I want to give user option to change the ip adress of the system. The OS is Windows XP. there would be some kind of checkbox or drop down ot some textbox where user can specify the new IP adress. How can I change the ip address of th ...Show All
Windows Forms Creating and using user.config
I'm tring to open-read-write to my user.config file through a new installation of clickonce, using the ConfigurationManager. When trying to save the the file I get the following error. After looking into this, the path giving by config.FilePath = "4.31.2174.13041\user.config" path and the user.config aren't there. I'm not sure if the configurationManager is suppost to create user.config automatical or not. Any help would be great. Code: public void saveConfig(string key, string value) { Configuration config = ConfigurationManager.OpenExeConfiguration ConfigurationUserLevel.PerUserRoamin ...Show All
Visual Studio Tools for Office SELECT Statement against Excel file?
How can I run sql statement against excel file. I am using office 2003 and want to run retrieve information from a column in excel file. SELECT DISTINCT Code FROM Excel_File_name Is this possible Thanks You can do this with MS Query. See Data, Import External Data, New Database Query. With Advanced Filter you can get unique rows as well. ...Show All
Windows Forms Nested forms
Oh, Great Knowledgeable ones.... I need a form that looks kind of like this: Feb-06 NSBIR-2 LM-1 TAC-1 Pay Rate Pay Type % Allocated for Month Normal Hours % allocation Hours Allocated Pay % allocation Hours Allocated Pay % allocation Hours Allocated Pay Employee 1 28000 Salary Over Allocated 176 6% 10.56 140.00 60% 105.6 1,400.00 20% 35.2 466.67 Employee 2 50 Hourly Fully Allocated 176 0% 0 ...Show All
Visual Basic Managing data operations from a DB.
Hi everyone! Hope you can help me. This is my situation: I’ve already made the connection with a DB in Visual Basic Express. At this point I can display data with a simple SELECT query. My problem is that I want to make other kind of queries (SUM, AVG) and then I would like to put the result in a ListBox or something similar. I’ve tried at the properties control with DataBindings and it works in the QueryPreview, but it doesn't when I run the application. What am I doing wrong Am I missing some procedure Believe me, I’ve spent a lot of time trying to solve this and I FEEL STUPID! Any help will be thankfulfulful :) :) :) Hi Ya ...Show All
SQL Server SQL Server CE 2.0 to SQL Server 2005 Express
Hi All, I was wondering if it is physically possible to have an SQL Server CE 2.0 [or 3.0] connect to SQL Server 2005 Express Edition via RDA. And if it is, is this an officially supported scenario by Microsoft I haven't been able to find any official info on this issue. Is this documented somewhere on some MS pages Regarding synchronization I could only find out that Merge Replication works with SQL Server 2005 Express Edition with it being only a subscriber but I found nothing about Remote Data Access synchronization with a SQL Server CE 2.0 or 3.0 Thanks, Marius RDA and Merge Replicati ...Show All
Visual Studio Express Editions Compatiblity
Is it possible to build a project and compile it using Visual C++ 2005 express edtion and then be able to save the project and work on it on a school computer that has Visual studio 2003 Maybe I am just missing the settings to set so that it is backward compatible, but for the life of me I have not been able to figuare it out. No, this is not a supported scenario. VC2005 will convert older projects but the other way won't work. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio 2008 (Pre-release) Visual inheritance planned ?
Hi all, Is Visual Inheritance (like Windows Forms) a planned feature of the VS2005 WPF implementation Thank you. you won't get them done in the same way as it was done for WinForms, will ya :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error in installing Pre-things...
Hello guys! After done some programming and felt myself as I COULD jump into another little subject without leaving Programming totally alone I came here to test the XNA Build... I had to install many things firstly... It didn't detact my two versions of Visual Studio Express C#/C++. This is the one that is given me errors: Microsoft Visual Studio 2005 Premier Partner Edition Installer As its installing... And I cannot see anything while it do that I get: Error 1311.Source file not found : C:\Documents and Settings\Adminstrator\Desktop\_1519_RTL_x86_enu_VSCC_Help_Collection.cab. Verify that the file exists and that you ha ...Show All
Visual Studio Tools for Office Intercepting Word's message pump
Hi; I am working on intercepting Word's message pump to determine when the user clicks on a menu so I can enable/disable items in the drop down menu. (I'll post the code once I get it working.) I am intercepting the pump using NativeWindow. And I can get the OpusApp windo handle. But here is where I am hitting a problem. The OpusApp window gets no specific messages as the menu is first clicked. It gets a WM_PARENTNOTIFY (WM_LBUTTONDOWN) when it is clicked with the mouse - but that message is fired a lot. And it gets a WM_ENTERIDLE if it's poped up with ALT-T (Tools menu) but that fires after the menu is displayed. I then looked at the menu c ...Show All
Windows Forms Cache Problems SQLDataSource
I have placed a GridView and SQLDataSource control in a web user control. The SQLDataSource is bound to a parameterized stored procedure. Consequently, the web user control is placed into a WebPartZone. On the SQLDataSource, I have set the following properties: EnableCaching = True, and set the SQLCacheDependency = CommandNotification. I have also enabled the Service Broker on my SQL Server 2005 database. I also call the SqlClient.SqlDependency.Start and SqlClient.SqlDependency.Stop Dependency in the Global.asax file in the Application_Start and Application_End event. As far as I know, my SQL Select commands (stored proc.'s) are compliant ...Show All
Visual C# How to find Configuration Details...
Hi , I am new to C#, I don’t know this is valid question. I have one project , which contains thousands of lines of code. I want to know, what are all the configuration details referred or saved by that project. For example what are all the xml, flat file, database or registry used by particular project. Is it possible to this in any tool or addins. Thanks. Jeeno. You could use FileMon, RegMon and TCPView. All of them are available at www.sysinternals.com for free. ...Show All
