CodeTyro's Q&A profile
Visual Studio 2008 (Pre-release) inheriting from itemscontrol - not able to bind to itemssource
I have a situation where I want to wrap a (custom)panel with some stuff (scrollviewer, track and some buttons). Therefore I created a new class that inherits from ItemsControl. In it, I use a style to set my panel as the itemshost. However, when I use this usercontrol, the itemssource is always null! < cft:TijdslijnVisualisatie Grid.Column = " 0 " Grid.Row = " 1 " DataContext = " {Binding ElementName=Comp ...Show All
Visual Studio Express Editions App_Data directory
Hello,I want to set as |DataDirectory| another folder instead of the default App_Data is it possible to do that and if yes how many thanks in advance Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39 ...Show All
Windows Forms Row Colouring in DataGridView
Hi, I have a requirement in which I have to set the background color of a row based on a particular cell value. The code is something like this Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting If DataGridView1.Columns(e.ColumnIndex).Name = "RISK_TYPE" Then &nb ...Show All
Visual Studio 2008 (Pre-release) XML serialization and cloning...
In message http://groups.google.com/group/microsoft.public.windows.developer.winfx.avalon/msg/f385306eb9c073a8 Nick Kramer discusses some options wrt serializing Visuals to XAML. He mentions various callbacks that might enable serialization of events, but I cant seem to find these callbacks in recent versions of the framework. Elsewhere in these groups, others have suggested that serializing to XAML and back again is a good way to clone a Visual ...Show All
Visual Studio Team System Report "Remaining Work" does not show all Work Items
Hi everybody, we are using Beta 3 Refresh for controlling our project. Now i got a problem with the "Remaining Work" Report. Our current iteration (started today) has 92 Work Items (80 Tasks and 12 Features (our new own Work Item Type). Every of this Work Items is assigned to the Iteration Path OurProject\Release 2\Iteration 8. When I run the report "Remaining Work" with the following parameters the report just ...Show All
Visual Studio Render Report without ReportViewer, Footer does not print
Hello, I am printing out a report without using the built in print function for the ReportViewer. When I render the report myself and have it print, everything works fine except the footer does not print. However, when I use the print button on the ReportViewer, the reports prints everything correctly including the footer. Why is the footer not being printed when I use the following code Here is my code I am using to Render the re ...Show All
SQL Server Cannot create a connection to data source
When I log onto my test report services 2005 I can run this report fine after deploying it using IE on the reportserver. However when I go back to my own PC, I get this error when trying to access the report from my PC browser: An error has occurred during report processing. Cannot create a connection to data source 'MBNATEST'. For more information about this error navigate to the report server on the local server machine, or enable re ...Show All
Visual Studio changing the sql query of the crystal reports programmatically
this has been eating me up lately. suppose i designed a report which selects all the fields of 'Credit' Table in Xtreme sample database. now i can easily display the data columns using a query embedded in the report. but say i want to cutomize the report and say i want to display the credit amount of customer with Id=1 or say display all the customers with credit amount greater than $500. how can i do this without using paramter fields. can i ch ...Show All
SQL Server NTEXT Data Type Problem
Depends on how you process them. If you can, I would recommend upgrading to SQL Server 2005 as soon as it comes out (and now develop using the CTP version). How do you process it If you use OpenXML, I would recommend the ugly work-around of writing an ADO app that gets the XML through the stream interface and pass it back as a parameter to a stored proc that then applies the T-SQL logic. You then use ...Show All
Visual C++ LVM_INSERTITEM NOT WORKING
Hi, I'm working on a COM using C++ but I'm getting an error message when I try to insert an item. Can't I use this message with a dialog Thanks. _bstr_t contextName(bstr); LPCWSTR lpcContext = contextName; ::MessageBox(NULL, lpcContext, L "lpcContext; Unity - PopulateCheckedListBox" , MB_OK); const char * contexts = contextName. operator const char *(); lResult = SendDlgItemMessage(hwndDlg, IDC_LIST_CONT ...Show All
Windows Forms Update DataGrid
hi, i hope i am in the right place to ask question. i using VB.net n SQL and my question is: i able to fill my datagrid with my table.. but it seems i got trouble updating a new entry, or when i want to delete a entry; becau ...Show All
Visual Studio How can I programmatically tell if a tool property was explicitly specified?
After loading a project ( VCProject ) and the VCCLCompilerTool for a configuration, how can I tell programmatically if a particular property (such as WarningLevel ) was explicitly specified in the project I need to know if the value I’m look at is the default or an explicit override. Thanks if a property returns a value that is not directly set, but is an inherited value then it returns S_FALSE in ...Show All
Windows Forms web deployement of a winform containing an activex
If I am certain, winforms allow to develop a vb.net app and make it usable over the internet with no alteration of the code (No Touch Deployment). Let's suppose one of my winforms contains an ActiveX (a graphical control). What would happen when&nbs ...Show All
SQL Server create user only with permissions, to select, insert, update, delete, and exec sps
Hello, I recently view a webcast of sql injection, and at this moment I created a user, and give dbo to this user, and this same user, is the one I have in the connection string of my web application, I want to create a user to prevent sql injection attacks, I mean that user wont be able to drop or create objects, only select views, tables, exec insert,update, deletes and exec stored procedures. Is any easy way to do this A database role a ...Show All
.NET Development What happens underneath the BulkCopy Object of ADO.NET 2.0
Hi , Does someknow how does new Bulkcopy work in ADO.NET 2.0 What happens underneath because of which the performance gets better with BulkCopy Regards, Anjana There are a number of reasons why bulk-copy is faster. Here is a summary: No per-row statement execution. When you do multiple inserts without bulk-copy, each insert is a statement in itself (regardless of whether it's batched together with other statements). W ...Show All
