Edited by Nancy Michell
MSDN Magazine February 2002
View Complete Post
Is it possible with SQL sorted in descending order according to the word?In Table I shrajeno Mastercard, Visa, Diners etc ...All Visa are the first in the order, another Mastercard, etc. ...Something does not work: ORDER BY PaymentType = 'Visa';I would not want to work in one field PaymentId (111,222,33, etc. ..) and then use the ORDER BY.Is this possible in such a way?
I am currently creating an application which will capture Canvas control (i.e. Screenshot of canvas control) and save it as an image. For this I am using RenderTargetBitmap class. I am able to capture canvas control but I also want to capture mouse
pointer. Is there any way I can capture canvas control with mouse pointer?
Code I am currently using is as below
Dim r As New RenderTargetBitmap(cnv.ActualWidth, cnv.ActualHeight, 96, 96, PixelFormats.Default)
Dim dv As New DrawingVisual
Dim dc As DrawingContext = dv.RenderOpen
dc.DrawRectangle(New VisualBrush(cnv), Nothing, New Rect(New Size(cnv.ActualWidth, cnv.ActualHeight)))
Image1.Source = r