Mox's Q&A profile
Windows Forms Sample Code: TreeGridView - collapsing/expanding DataGridView
I've just started a blog and the first main post is a sample that I wrote to customize the DataGridView to support collapsing and expanding. I call it a TreeGridView: http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx Let me know what you think! -mark DataGridView Program Manager Microsoft This post is provided "as-is" fair enough.I real ...Show All
Visual Studio Express Editions Registered 5 Times Visual Web Developer Express but no Product Key
Hi Folks, I downloaded Visual Web Developer and have been trying it out, it's great so far. I also downloaded VB Express afterwards . I registered VB and got a Product ID which I copied and pasted like the instructions said. I never got a Product ID for VWD Express. I registerd immediately after installing. I either overlooked the Product ID copy and paste when I first registered or it wasn't available. I have since done the Help > R ...Show All
Visual C++ Mixing Templates and Generics
I think I've raised this questions a couple of times and the first time some three years ago - and have never got a real answer. Why does the language disallow mixing templates and generics. What's wrong with: template < typename T > value struct outer { generic < typename U > void foo(); }; or generic < typename T > ref struct outer { template < typename U > void foo(); }; ...Show All
Windows Forms Icon leak in File Explorer demo?
I believe there is a resource leak in the File Explorer demo available here: http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49#WinForms%20V2%20Demo%20App Specifically, the program uses SHGetFileInfo to get the icons for files and directories, but it never calls DestroyIcon on the retrieved icons. It uses Icon.FromHandle to wrap the retrieved GDI handles in a .NET Icon, but, as documented, FromHandle does not take ownership o ...Show All
Visual Basic Invalid Column Name Error in Server Explorer Table Definition
Running .NET 2005 Beta 2. In Server Explorer, have added connection to SQL Express DB. I can view the Tables in the DB, the data in the tables, but when I go to the table definition, I get the following error: Table 'mytable' could not be loaded. Invalid Column Name 'is_active'. There isn't even a column in the DB with that name, so I'm kinda lost. I don't have any problems connecting to the DB within my VB code or with sqlcmd, ...Show All
SQL Server Changing SQL-command with a script
Hello I want to change the sql-command that is behind a ole db datasource with a script So that first the script is run and that the sql-command is changed Somebody who has any idea You cannot access object or change their properties from Script in SSIS, a somewhat dramatic change from DTS. First choice would be to use an Property Expression on the SqlCommand property, but unfortunately this property has not b ...Show All
SQL Server Error in Creating Stored Procedure from VS 2005
When I create a stored procedure in VS 2005 using C# and deploy it to the server I can't execute it there and here is the error message: Msg 6522, Level 16, State 1, Procedure GetAll, Line 0 A .NET Framework error occurred during execution of user defined routine or aggregate 'GetAll': System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral ...Show All
SQL Server Comma in value within comma separated file
I have a file which contains comma separated columns. One of columns contains names of companies. Sometimes the names of the companies have a comma as part of the name. For those, the value is surrounded by double-quotes. But it seems that SSIS ignores the double quotes and ONLY looks for the column separator. This causes my value to be split in half. Traditionally, I thought parsers that deal with this type of import do not automatically take t ...Show All
Visual Studio Express Editions Data not added to database on INSERT
Hi! It seems as when I run a INSERT query the information get added to the database, but when I close the application down and start it back up the information is gone. I have two pieces of code. The code to insert data to the database looks like this: Using sqlConnection As New Data.SqlClient.SqlConnection(BOCompany.My.Settings.BOCompanyConnectionString) Dim sqlQuery As String sqlQuery = "INSERT INTO CompanyTable ...Show All
Visual Basic Streaming text from a view to a file.
The following code is supposed to place data rows from a SQL Server 2000 view (vwExport) into a text file: G:\doc\Output.txt. The compile error I get is: 'Application.ApplicationDataSetTableAdapters.vwExportTableAdapter' cannot be converted to 'System.Data.DataTable'. Code: Dim strExport As String = "" Dim strExportFile As String = "" Dim x As DataView = New DataView(VwExportTableAdapter) Dim z As Integer Dim y As ...Show All
Visual C# Broken C# videos links
http://msdn.microsoft.com/vcsharp/programming/videos/ I'd like to watch most of them but many links are not found :( Aidas: Thanks for the feedback. I can repro this. I will notify the owner of the C# Dev Center. Michael Blome [MS] Visual C# Documentation Manager ...Show All
Windows Forms PInvoke question
Hi I would like to make a call to the unmanaged code using PInvoke, yet I found that there is a little documentation in the internet which most of them are form microsoft web sites, I hope some one can tell me where to look for i ...Show All
Windows Forms How do i assign this?
let say i wanted to sum up all the price in my database and assing it to a listview table. how do i do it what i did was .... myRS.Open("Select SUM(Price) FROM Store",myDb) how do I assign it to a listview where doe ...Show All
Visual Studio When is VSS 2005 going to be Available to the Public?
Hey all, My company is getting ready to start a new project. We are very interesting in .Net 2.0 and C#/C++ Apps and have several versions of VS 2005 Pro already. However, we also want to have some source control. None of the 3rd party programs are what we are looking for. So when is VSS 2005 going to be released to the public Should we get an MSDN license to use the Beta Version of VSS 2005 Will VSS 2005 Beta work with the release versi ...Show All
Visual C# Unknown Error "-1".
Hi, I just installed Visual C# Express Editions. Everything looks fine but after I tried to create a new project there is a window popping up say " Unknow error "-1". " I also tried to open the project that was copied from another PC. It is able to open but when complie there is the error msg saying that "Error 1 Unable to copy file "obj\Debug\test_print.exe" to "bin\Debug\test_print.exe". Unknown error "-1". test_print" ...Show All
