zybernau's Q&A profile
Visual Studio 2008 (Pre-release) Can't get Image Source property to work.
Hi, I don't seem to be able to load images in WPF using the <Image Source="myImage.bmp"/> xaml syntax. I have tried using the images as both resources and content and as neither. I have read everything I can find on the matter and no-one else seems to be having this trouble. This is even happening with sample code that I haven't modified. As an example: When I try to compile the code for the WPF sample called wordgame1 and then click on the design window I get an error message saying "Images\Start.Gif" cannot be assigned to "Source". The offending line is < Image Source = " Images\Start.gif " Height = " 300 " Width = " 300 " HorizontalAlignment = " Cent ...Show All
Software Development for Windows Vista How to create a windows service property sheet
Hi I would like to create a property page that could be merged into an existing property sheet to provide customization inputs for users for a Windows service we are developing. Can anyone point me to an example of how to do this in C++ I am creating a windows service which has dynamic parameters that the user can change. Instead of creating an administration application I would like to include the parameters in a property page and have it merged with the default property pages provided by the windows service control manager. Microsoft does this same sort of thing with their SNMP service in XP. If you look at the properties of this service you will see extra tabbed pages that contain configuration parameters that the u ...Show All
Visual C# Need help with .Split()
I've actually got two situations with this method. The first is with the .Split command. It works with the majority of the names it's passed but a few are not being processed correctly. For instance, the majority of the name fields entering this routine look like this: Holt, James; however, a few look like this: Harden, Jr.,James, which the .Split doesn't process. I've tried several configurations, {' ', ',', '.'} for example and still nothing. The configuration shown below is the last attempt. The second problem I'm encountering is an indexing error. When I click on a name in the Tree, then click on a letter above the name I get this error: "Index was outside the bounds of the array." The tree looks like this when th ...Show All
.NET Development DataSet problem
Hi, I found some really interesting problem and I don't understand it. As you can see in the documentation, DataSet class is a descandant of the IListSource interface. This interface has the System.Collections. IList GetList() member. But if you try to compile this code: DataSet ds=new DataSet(); IList iL= ds.GetList(); you get this error: 'System.Data.DataSet' does not contain a definition for 'GetList' How can this be Hi, As Ilya shown above the IListSource interface can be accessed by casting the dataset to the interface. GetList is not available directly because the Dataset class implements IListSource explicitly. From msdn: A class that implements an interface can ...Show All
Visual Basic need help saving a print image
In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sense to me to make a bitmap from the screen. But how do I create a bitmap from the PrintPage event Ryn, According to your description, I will give you’re a piece of code sample and an article which will help you. The following example prints the file that is specified through the command line to the default printer. ...Show All
Visual Studio Team System Licensing Question
Hi I have read the Licensing document on Team System and it says you do not need CALs for accessing the Team Project Site (WSS) on TFS. So if I host a Web App, hosted on the Server same as TFS, that interacts with TFS for creating Work Items and customizing Workflows etc. and if there are users accessing it from Intranet I don't need CAL for those users! right Please clarify According to Rob Caron's post in this thread, any user who accesses the TFS data in an automated fashion requires a CAL. Hope this helps- Cheers, Adam ...Show All
SQL Server Slow query when run in multiple threads
Hi, I'm trying to stress test my web application, but when I get high load, the queries that used to take 10-20 ms starts taking 500 - 2000+ ms. Or to put it another way, when i run them single threaded i can do about 43000 a minute, when they are run in paralell it drops to about 2500 a minute. What can i do about this There are severeal queries thats affected, but here is one example: update [user] with (ROWLOCK XLOCK) set timestamp = getdate() where userid = 1'' btw: im running sql server 2005 sp 1. The stress test is run on 3 machines total (web, sql and client) the client is simulation 400 users, cliking a page as soon as the last one is loaded, ie there will always be 400 page requests. I'm not ...Show All
Visual Studio 2008 (Pre-release) WCF and C++ integration tool.
Hi, Does anybody know about a reliable (and tested) tool for integration between WCF and C++ Thanks, Dror. You should be able to use the WCF service moniker from C++ clients. Take a look at http://msdn2.microsoft.com/en-us/library/ms733928.aspx for documentation on this. Hope this help, Andy Milligan. ...Show All
SQL Server CLR test script SELECT returns no row data
Hi, The test.sql scripts I write to test CLR stored procedures run successfully, but when I want to display the resulting data in the database with a simple "SELECT * from Employee" I get the result as: Name Address ---- ------- No rows affected. (1 row(s) returned) But not the actual row is displayed whereas I would expect to see something like: Name Address ---- ------- John Doe No rows affected. (1 row(s) returned) I have another database project where doing the same thing displays the row information but there doesn't seem to be a lot different between the two. Why no results in first case Thanks, Bahadir You maybe still have the ...Show All
Visual Studio 2008 (Pre-release) [WPF]C# rotate ellipse
Hello, i have a problem rotating an ellipse. In previous versions of .NET I rotated them using Graphics, but i couldn't find an example, how to do it in WPF. (Only some XAML examples). Maybe the solution is really simple, but it's late here. :-) Thanks. Is there a way, to rotate an Ellipse not using XAML If I am not mistaken (please correct me, if I am), with XAML I can only rotate an ellipse during design time. I want to rotate it during runtime (some C# code). ...Show All
Visual Basic Printing a File
Hello NG, First, I work with VS2003 (Framework 1.1) Got a bit of a problem. I want to print a file on the default printer. This is how I got so far: ' Get the default Printer Dim oPS As New System.Drawing.Printing.PrinterSettings Dim GetDefaultPrinter As String GetDefaultPrinter = oPS.PrinterName Dim pd As New System.Drawing.Printing.PrintDocument pd.PrinterSettings.PrinterName = GetDefaultPrinter pd.DocumentName = [Here document, but HOW ] pd.Print() Please can anyone help a bit. Thanks, Lars Actually, there are two different kind of files (*.txt and *.pdf). These files are extracted from a SQL Database (these Files are stored there in an Image Field) an ...Show All
SQL Server Large number of rows issue
Hi , There is a table with the following structure __________________________________________________________________________________ Date-Time of Operation | Message | details | Reason | Username | IP | MAC-Address __________________________________________________________________________________ A user can fire query based on some condition on columns. The maximum no of rows that should be returned are 1 billion. By default the data returned to the view is sorted on Date-Time. Further user can sort the data in the view on Message, details , reason , username , IP , Mac-Address. Suppose i have a scenerio where the user first gets the 1 billion records, then some records are inserted in the database.Then user sort on IP colu ...Show All
Visual Basic Sort with gridview
Hello, I have been trying to get this to work now for 2 days and I must be missing something cause I don’t think it should be this hard. I have a gridview that I fill without using a datasourceid. All I want to do is be able to sort the columns however the user wants to. I have been able to find C code that helps but no examples with VB. I have got as far as being able to get to the sub gridView_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) but cant get past this point. Can anyone please give me a hint or send me to a good example on the web. Thanks Hi, How do you add the data to the grid manually Is the data in some sort of array that can be sorted If y ...Show All
Software Development for Windows Vista Regarding Windows WorkFlow Samples ...
Deal all Help Desk Demo by Don Esposito I need bit of information on two windows workflow samples. The first one is from MSDN Article "Windows Workflow Foundation" "http://msdn.microsoft.com/msdnmag/issues/06/03/CuttingEdge/ . This article leverage beta 2.2 version of WF. As we have move to RC now urgently need this sample code to run on latest microosft .net 3.0 release. Now can any one help me out here to convert/rewrite the sample code for .NET 3.0 RC. Purchase Order Demo by Don Esposito This Demo was part of article in MSDN by Don Esposito named " Getting Started with Microsoft Windows Workflow Foundation: A Developer Walkthrough " ( http://msdn2.microsoft.com/en-us/library/aa480214.aspx ...Show All
Visual Basic Decimal separator and other strange questions
Hello, everyone, I've found several threads about decimal separator, but I couldn't figure out what to do with that info. I'm new to Visual Basic, but I have some basic knowledge of it, also a basic knowledge of C++ and a very good understanding of Actionscript. My friend has to write a thesis and he asked me to create an application to calculate something that has to do with quaternions. The user has to input 8 values and then the user has to press a button, so that a result is presented in a textbox by using a formula. Everything is going great, but I'm hoping on the good working of my friend. But now I want to make sure, that he can input nothing but numeric characters and that the decimal numbers are placed behind a comma. I have no id ...Show All
