ndalli's Q&A profile
Visual C# rectangle question(c#)
1: How to change the size which you selected using the select_rectangle on a picture . 2:RotateSelected an image or bitmap . &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stenciltest never fails
For some reason I can not make my stencil test fail. I would think that the code below would allways fail, but it does not. The object is always rendered. device.RenderState.StencilEnable = true ; device.RenderState.StencilFunction = Compare .Never; device.DrawUserPrimitives( PrimitiveType .TriangleList, 2, groundQuad); What am I missing here Setting the test to always or to never doesnt change a thing. It always pas ...Show All
Software Development for Windows Vista How to change input sample size in Direct Show ?
Hi everybody, I need to create a Transform filter and I need that the sample size that is delivered in the following method to be a power of 2. HRESULT CMyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut){ BYTE *pSampleBuffer; int iSize = pIn->GetActualDataLength(); // the size to be a power of 2 pIn->GetPointer(&pSampleBuffer); BYTE *pSampleBufferO; int iSizeO = pOut->GetActualDataLength(); pOut->GetPointer ...Show All
Visual Studio ReportViewer and Drillthrough Report
Hi! My report has a drillthrough report (a hyperlink action on a textbox jumps to it) that is a chart showing the informations of the table in the main report. I used the ReportViewer control to do my paramater bar, and it works fine until I try to see the chart. It just doesn't show anything. I used the OnDrillthrough event handler on the reportViewer tag on my aspx file, but it seems it doesn't realize it's a drillthrough when I click on th ...Show All
Visual Basic Printing
In my last form I have a menu strip with a print option. I have added the PrintDocument to the form. How to I print the form I do get the dialog but with blanc form. Is this a good way: Dim PrintDialog1 As New PrintDialog() PrintDialog1.Document = PrintDocument1 Dim result As DialogResult = PrintDialog1.ShowDialog() If (result = DialogResult.OK) Then PrintDocument1.Print() End If How do I change it to be my form Thank you. ...Show All
Windows Forms Design-time functionality at run-time
I am trying to find a way to paint a selection border around a control whenever it is active at run-time. I would like the border to be as similar as possible to the selection frame that is displayed around a selected control at  ...Show All
Microsoft ISV Community Center Forums Function which get range arg.
Hi all, i wrote a simple function, which get a range variable, and return 1 if the range color is yellow (colorindex = 6) that works fine, but when i change the color of the range, the function does not "refresh" it self. example: 1. i painted cell a1 in yellow. 2. in cell a2 i wrote: "=paintRange(a1)" and the function paintRange goes like that: fuction paintRange (r as Range) If r.Interior.ColorInde ...Show All
Windows Forms Is there BeginUpdate() functionality for the DataGridView?
I have a DataGridView bound to a DataView. A certain points I temporarily sort the DataGridView on specific columns to build filter lists. During these "temporary" sorts on the DataView I would like stop the sort from being applied on the DataGridView, which causes it to redraw. Then after the filter list is created I reapply the DataGridView's last sort. ComboBoxes have BeginUpdate() and EndUpdate() for when changes are made t ...Show All
SQL Server consolidating folders
I have 8 folders with reports in each folder. I want to move those 8 folders into a single folder. Is there a way to do this without having to create the folder hierarchy from scratch and then upload all the .RDL's again Thanks for your help! frank You can do this through the Report Manager UI using the move button. You'll need to click the "show details" button on the right hand side of the toolbar. You can do this programma ...Show All
SQL Server How Create SQL CLR Functions in Yukon June CTP
I don't believe there is a compatible VS.NET release for this CTP so how are folks creating SQLCLR functions/sprocs Command line Any pointers to articles Thanks, Chris Whidbey B2 is compatible with this version of SQL Server. You can also use the samples and just compile them at the commandline assuming you have the sdk installed. ...Show All
Windows Forms Centering column header text in DataGridView
I'm trying to center the text in 2 column headers in a DataGridView. Can't find a way to do it in the designer, so I've written the following code to accomplish the task... deptDataGridViewTextBoxColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment .MiddleCenter; branchDataGridViewTextBoxColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment .MiddleCenter; This *almost* works. The problem is - the text isn't ex ...Show All
Visual Studio Tools for Office PowerPoint Revisions
Hello I am using PowerPoint 2003. I try to read presentation revisions , or slide revisions by c# (or VBA), but I don't see any suitable property. You can determine whether the presentation has revision by get the HasRevisionInfo property, You can read revisions total number by ActiveWindow.Presentation.BuiltInDocumentProperties.Item("Revision Number").Value But not the revisions themselves. By the way, In Word, You can rea ...Show All
Visual Studio Team System Testing not working with MS Anti Spyware?
Hi all, I was wondering if anybody was having trouble running tests with MS's Anti Spyware Beta installed I get a window alerting me that a script wants to run. I hit allow, but by then the script has already errored out. When I turn it off, my tests run fine... Thanks, J I've found that just disabling the script blocking application agent checkpoint in AntiSpyware is enough to allow tests to run. ...Show All
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 You can use the "newline" character in your string. For example Drawtext(device, "H\ne\nl\n\l\no", rect, ....), making sure that your rectangle is large enough to handle this or specify no clipping. This will work, but I would think the better solution is to set the orientation of the ...Show All
Visual Studio Express Editions installing VWD 2005 Express: must uninstall ANY previous versions of SQL Server 2005
http://msdn.microsoft.com/vstudio/express/vwd/download/ Hello, according to the above page/link I must uninstall my current version of SQL 2000...but I don't want to. Can't I just install the Visual Web Developer 2005 Express Edition without installing the SQL Express Version with it Please tell me yes. And...will this install also take care of the .net 2.0 upgrade also thanks so much, looking forward to giving it a test d ...Show All
