Tadwick's Q&A profile
Visual Studio 2008 (Pre-release) Bug - PrintVisual doesn't obey margins in printer page setup?
Hi, I am trying to print a visaul element using PrintVisual. One problem I noticed is that PrintVisual doesn't obey the Margins in the print page set up. Here is my code to print a simple grid visual Point ptGrid = new Point (0, 0); text.Arrange( new Rect (ptGrid, newGrid.DesiredSize)); If my printer page set up has a margin setup, the lef top part of the visual inside the margin area won't be printed out. This seems like a bug to me. Could someone comment on this thanks chong ...Show All
Visual Studio Express Editions Shouldn't the Express Editions be Integrated?
Salute to all of the folks who contribute the answers here. I have loaded VB and SQL Server. I was under the impression that the versions would be more integrated and running together as one application. Did I miss something during the installations from CDs Everything runs stand-alone. Each application has its own splash screen at startup, which lists "installed applications" or something like that. All I see is the name of the current application. Should I be seeing all of the Express Visual applications that I have installed on my machine or not Sometimes I get connect/disconnect problems with SQL databases while running VB if I open them or have them already open with SQL SMSE. I just have to pay attention to what i ...Show All
Visual Basic Multi Text Boxes Validation and error provider
Dear all, I don't know what is the problem with following code I'm using for validation. can any one solve this please It works for txtProdName only. Private Sub txtProdName_Validated( ByVal sender As Object , ByVal e As System.EventArgs) Handles _ txtProdName.Validated,txtPrice.Validated,txtSize.Validated If txtProdName.Text.Length = 0 Then erpProductDataForm.SetError(txtProdName, "Required Field") ElseIf txtProdName.Text.Length > 0 Then erpProductDataForm.SetError(txtProdName, "") ElseIf txtPrice.Text.Length = 0 Then erpProductDataForm.SetError(txtPrice, "RequiredField") ElseIf txtPrice.Text.Length > 0 Then erpProductDataForm.SetErro ...Show All
SQL Server Calculating the average over time
Hi all, As a follow up for my previous post about calculating the number of active subscriptions at any given moment ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1147061&SiteID=1 ) an other 'newby question'. With the measures from my previous post I managed to make two calculated members: [ Active subscriptions SoP] and [Active subscription EoP] (SoP = Start of Period; EoP = End of Period). What I would like to create is an other member which calculates the average number of active subscriptions for a given period, so I can create an pivot like the one below. At the question marks ofcourse should be the average for the entire week. This however is not equal to (10843 + 10866) / 2 = 10854.5 but equals (10854 + 108 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hiding the minimize/maximize/close buttons
Hey everyone, I'm trying to figure out a quick and easy way to either hide the surrounding window of my XNA game entirely, or at least remove the buttons. I could do this the long way, by making an actual windows form and a graphics device and blah blah blah... But I wanted to know if there is a quicker way to do this. Thanks for any help. UNTESTED!!!!!! Add a reference to system.windows.forms and then pop this code in System.Windows.Forms. Form f = (System.Windows.Forms. Form )System.Windows.Forms. Form .FromHandle( this .Window.Handle); The you *should* be able to adjust about anything you can with a form class. I cant stress enough I havent tested this yet, nor do I know if its even recomm ...Show All
Software Development for Windows Vista CorrelationInitializer question
Hi, I'm new to wwf, and I have the following question, In all the available application samples I browsed the CorrelationInitializer is always attributed to a method, and not to an event. Is there a reason for this The usual is something like: [ExternalDataExchange] [CorrelationParameter("nextStage")] public interface ISMConnector { [CorrelationAlias("nextStage", "e.Command")] event EventHandler<RegEventArgs> OwnerInfoSubmitted; [CorrelationInitializer()] void SMSnapshot( string nextStage); } I had originally thought of doing something more like: [CorrelationParameter("WorkflowInstanceId")] [ExternalDataExchange] public interface ICaseManagementLocalService ...Show All
Visual Studio Team System tf.exe through iis
Hi I'm trying to make a simple application that builds and deploys my solution through a web page. My approach has been to make a nant script that runs tf.exe a number of times and to run this nant script from the web page (this might seem strange, but it was chosen simplify maintenance). The Web page runs in a separate application pool (Windows 2003) having the identity of the user I'm using all automated tasks from. The application works fine up until I'm running the "tf get c:\deploy /recurive" where it complains about "Unable to determine the workspace". Before this line I have run several tf commands on the server, successfully, but none of them requires workspace. I have checked: - that the user is correct by p ...Show All
SQL Server error while generating ad hoc model for Analysis Services Cube
hi, I try to generate ad hoc reporting model for analysis services cube in reporting services. in Management Studio I connected to reporting services, defined a data source to the analysis services database. But If i try to generate model i get the error: "While connection with a data source a mistake has appeared, or the query is invalid for the data source. (rsCannotPrepareQuery)(Report Services SOAP Proxy Source)" Any ideas as to what may be the problem Thanks! karaman ...Show All
Visual Studio 2008 (Pre-release) Error : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid.
Hi, I've created my first test application and I got the following message : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid... I'm unable to find a reason, so if someone can help me to solve this Message : The default entity container name 'HRISBusinessModel.HRISBusiness' is invalid. The required mapping and metadata information could not be found. Parameter name: defaultContainerName The inner exception message is : The Entity Container Type 'HRISBusinessModel.HRISBusiness' for the CDM space does not exist in Metadata workspace. MSL: < xml version="1.0" encoding="utf-8" > <Mapping p1:Space="C-S" xmlns:p1="urn:schemas-microsoft-com:windows:storage:mapping:CS&quo ...Show All
Visual Studio Team System Visual Studio 2005 & Visio Enterprise Architect
The lab I work at currenty has Visual Studio 2005 Professional. I need to know how wa can obtain Visio Enterprise Architect(VEA) without having VS 2003 installed on our systems. Would an MSDN Premium subscription solve the problem, and if so, will we be elligible having Visual Studio 2005 Professional Yes, Visio for Enterprise Architects is part of the MSDN Premium Subscription. You'll find it under "Developer Tools" - "Visual Studio 2005" - English (or the other available languages) on MSDN Subscriber Downloads. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Should shaders be getting disposed on device reset?
Under MDX 1.1, once a vertex/pixel shader was compiled, the resulting compiled shader was good for the life of the application, and was still valid even after a device reset. However, under XNA, compiled shaders seem to go into an invalid state when the device is reset - attempting to set GraphicsDevice.VertexShader to a shader compiled before the device reset results in an AccessViolationException. Has the requirement on needing to compile shaders after a device reset changed between MDX 1.1 and XNA, or am I looking at a potential XNA bug XNA is build in a way to dispose all resources in the default pool before the device is reseted if you don’t do it. Seems you have found a way that breaks this behavio ...Show All
SQL Server two independent drill downs in matrix report
I have defined the following to generate a matrix report 1. Row data: Country,region,state , Race,gender ( Red colored columns - Group1; Blue colored columns - Group 2) 2. Column Data: Statistics as of (Date) 3. Value: household income I'd like to be able to have a seperate drilldowns on group1 and group2. i.e drilling down on country, region, state shouldn't automatically expand/minimize race and gender. I played with the attributes of individual columns and edit groups of the same. But couldn't achive an independent drill down. Income as of '05 Income as of '06 Country Region State Race Gender 100k 105k Having independe ...Show All
Visual Studio Team System How do I _DELETE_ a file from source control... Like it never existed at all?
At the time, we thought checking in an iso of the Vista SDK was a good idea. We've since learned otherwise and would like to extricate the file entirely so we don't overwhelm the backup system. Can this be done Brian There has been work on a " Destroy " feature for a future release that may help out here, but this doesn't exist in the first version of TFS. Cheers, Adam ...Show All
Windows Forms How to make an application start automatically when PC boot up?
I would like one of my application installed in client PC to automatically startup when the PC start up as a tray icon process. Which allow the user see the progress of some other applications. Is it possible to do in click once Thanks in advance. Strictly speaking, that code doesn't run when the system boots - it runs when somebody logs on. If the requirement is "run at boot" you need a service. If it is "run when someone logs on" the registry Run key will work. Keep in mind that many systems boot but nobody ever logs on. ...Show All
SQL Server export to excel - formatting number output
Hi all, Once again, SSIS is giving me a 'F.U.N.' time (ask for definition of the F.U.N. acronym another time ). I have a relatively simple task - create an excel spreadsheet with 3 columns of data - Id, Description and Sales. ID and Description are text, sales is int. So my SP aggregates and creates my resultset in my OLE DB Source in the Data Flow. It proceeds to the Excel destination, and that all seems fine. My issue is that the data is being written as text. Looking at the excel destination in Advanced editor: the Excel Destination Input, Input columns are formatted as I expected: DT_WSTR 8 for the ID, DT_WSTR 100 for the Description and DT_I4 for the Sales. Excel Destination Input, External columns refuse to fall in line, tho ...Show All
