Jason W. Martin's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DrawText
I am using Font.DrawText to display my 2D Text. But how can I display it vertically Thanks, Jim If your goal is something like this : H e l l o then you could call the font.DrawText method once for every character of your string in a loop, modifying the y coordinate accordingly. So many draw calls would cause a great loss of performance, so you should consider wrapping this loop of draw calls in a single pair of sprite .Begin and sprite .End method calls and pass sprite as the first parameter to font.DrawText so batching of draw calls could occur. ...Show All
Visual Studio Two Help Collections provide duplicate content
I've got SQL Server 2005, MSDN 2005 and VS.NET 2005 installed on the same machine. Therefore, I've got the SQL Books Online in two places - in MS.VSIPCC.v80 and MS.MSDN.v80. The symptom is similar to that seen when installing VS.NET 2003 and MSDN - you would typically de-select one of the collections from inside the viewer launched from VS.NET. What's the process now Thanks! Here's a solution for you from the SQL team: === If you install Business Intelligence Development Studio, SQL Server 2005 Books Online, and the MSDN Library, two copies of Books Online appear in the table of contents ...Show All
Visual Studio Tools for Office Remote synchronization in Project Elixir
Does anyone know how MS is doing remote synchronization in its Project Elixir http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/OtlkLOBCRM.asp Source code is not available for the remote synchronization part of their sample & it doesnt sound like it would be using the Smart Client Offline Application Block either. Wonder if it is a custom built synchronization engine that checks for network availability and then transmits messages that were placed in a queue similar to the Offline App Block or if it just flags rows in the local SQLExpress tables as dirty & then submits all dirty rows in a dataset. A ...Show All
Visual Studio Declaratively determining if an action runs, or a item template unfolds
Is it possible to declaratively determine if an action runs, or a template unfolds I would like to be able to use a boolean argument (populated from a wizard) to decide if a common action is run or not, without resorting to code. Is this possible Thanks I couldn't resolve the interface IConfigurable to any library in the GAT/X, .NET, but would these two bases be an alternative Microsoft.Practices.Common. IAttributesConfigurable Microsoft.Practices.RecipeFramework. ConfigurableAction ...Show All
Visual Studio 2008 (Pre-release) Warning msg box annoyance
Hi guys, Please, limit the --------------------------- This is an unsupported version of Microsoft Visual C# 3.0. As such many features may not work as expected. --------------------------- appearance to one time per install. It is very annoying Yes, however with a beta/ctp, then PSS can always tell what's going on by checking the VS version number in the "about" box. However, if you change the C# language service, then VS's version number will still be RTM and it's possible that neither the user nor PSS will know that this is an unsupported configuration. ...Show All
SQL Server Building OLAP Cubes
Hi, In spite of my bad english, i hope you'll understand my question =) I've to build an olap data cube which contains 3 data table... But i couldnt find any document about it. I've heard Adodb, Adomd and Mdx concepts but i have no idea about tehem, i ll be grateful if you help me... I have a similiar problem which i hope someone can help me with. What i would like to know is how to create a Cube from a programming perspective (not using the various wizards provided) For a relational database, i create a connection to the database and then execute SQL commands on it using the SqlCommand ...Show All
Visual Studio Express Editions reference and importing
What is the difference between adding REFERENCE and IMPORT statement in our project Can someone explain me. hi, what i know about this , you cant use(using) without adding reference to the name space , there are some references will be added by default to your project the IDE will add those references as soon as you create your project you can use those namespaces. ok example system.Drawing reference is added by default to your windows application but not added to your console applications . so you can use System.Drawing in windows application but you can't in console application unless you add reference to that name ...Show All
Visual Basic c# or vb.net
Have the same question posted in c# forum. I want to hear the vb.net people. What is going on. When c# first came out M$ was pushing users to move to that. Now I see an article that show that you can now translate c# to vb.net. http://msdn.microsoft.com/vbasic/default.aspx pull=/msdnmag/issues/06/02/PasteAs/default.aspx why does it seem like vb.net is being pushed so much more in the 2005 version. I just decided to move to c# from vb.net because of the following. 1.forced declaration of variables 2. told it was better language for businesses (reguardless that vb can do the same) 3. was told ...Show All
Visual Studio 2008 (Pre-release) Reusing Window Objects
Quick question: I have a XAML/C# Window object which is a WPF dialog box. When I want to show the dialog I call the ShowDialog function. Then when the user presses Ok, Cancel, Escape, or presses the Close Button the window disappears, and ShowDialog returns the dialog result. Is it then possible to resuse this object to show the dialog more times, without creating a new fresh object. It seems that once Close has been called, the window is in "dead" state. The reason I ask is because doing this will be a simple way to persist the user's dialog choices - I don't care about WPF's state, I just care about maintaing my ...Show All
SQL Server Bulk Copy Program
Hi, can anyone show me a link to a bcp return values table please I have tried googling, but rather than getting info on lookup tables, I'm just getting articles on how to use it :( tia, hi, yes, probided that the text file is delimited such as CSV or (comma separated values) and then importing them to their corresponding fields in the table. But, if you are up to loading the the entire text file as a single BLOb (binary large object) this is not the tool. regards, joey ...Show All
Visual C# key press help
How can i know if SHIFT+L keys are pressed i know how to capture just 1 key but how do i capture combinations Thanks Hi In the KeyDown event of your control you can use the Shift property of the KeyEventArgs to determine if Shift was pressed and used in conjunction with the KeyCode property to determine the key pressed will then tell you whether Shift+L was pressed: if(e.Shift == true && e.KeyCode == Keys.L) { MessageBox.Show("Shift and L were pressed"); } HTH ...Show All
.NET Development ASP.Net 2.0 Context.User not set in AuthenticateRequest
Been using the following code in a VS2003 site for years upon using it in VS2005... Checking Context.User.IsInRole before leaving the event gives me one value, one debugger step more, in the Page_Load event of the page, and Context.User.IsInRole gives something completely different. It appears to me that the following code is no longer updating Context.User. Any ideas rprince@radiaInteractive.com protected void Application_AuthenticateRequest(Object sender, EventArgs e) { if (Request.IsAuthenticated) { // Get user roles string[] roles = ((System.Web.Security.FormsIdentity) Context.User.Identity).Ticket.UserData.Split(';'); // Create ...Show All
.NET Development TreeView Control Customization help
I am trying to customize the TreeView control in asp.net 2.0 within VS2005 Beta 2. I have successfully been able to add different custom images to the parent node non-selected, parent node selected, and child node non-selected. However, when i can not seem to get the child node selected image to change properly. I do not know if i am simply trying to change it incorrectly or if it is not possible, or if it simply is not working. Could you please help me out. The goal is for a simple image to change colors after it is selected. I.E. parent node goes from blue to grey when selected and the same for the child nodes, only different images. From ...Show All
SQL Server Render RS Report to Excel and changes Sheet Names
I am wondering if anyone knows how to change the sheet names in Excel when exporting a report from Reporting Services 2005. In other words, I have a report with approximately 5 page breaks built in. When I render the report to Excel, it creates the 5 sheets as I expect, but it names them "Sheet1", "Sheet2", "Sheet3" etc... Is there a way to specify the name of the sheets I am currently using a different table in my report for each sheet, but I am open to structuring this differently if needed. Since there's no good workaround yet, I just used Document Map instead ie. Creating a ...Show All
Visual C++ Visual C++: serial communication and MFC
Where can I find a good example of serial communication in Visual C++ and MFC. http://www.naughter.com/serialport.html ...Show All
