I heard Klocwork is for C,C++. I have used Resharper and liked it too. But feature wise I am not able to decide between the two.Can Klocwork can be used for C# too?Any light on the same with proper facts would be greatly appreciated.
Hello. I have opened media player classic with Process.Start.
* Is it possible to start mpc with DockStyle = Fill in a panel on the winform?
* Is it also possible to hide all the menus on it?
Thanks for any pointers.
The window doesn't belong to your process so "DockStyle" doesn't apply to it at all.
It's possible to change the parent window of the process to your Panel, but since it's a separate process it's NOT under your control. Users can do anything they want with it as if it was running on the Desktop without your application, even moving the window around inside your panel!
There is a MediaPlayer control in the Toolbox that you will have far more control over.
I'm using the Graphics.DrawString() method to put some text onto a bitmap that I create on the fly.
The problem is that the text comes out looking blocky and pixelated, not like a true-type font at all. What could I be doing wrong?
I've simplified the code below, but it shows how I'm drawing the text:
using (Graphics G = Graphics.FromImage(Chart))
using (Pen P = new Pen(Color.LightSlateGray))
using (SolidBrush B = new SolidBrush(Color.Black))
using (Font F = new Font(new FontFamily("Arial"), 9f, FontStyle.Regular))
G.DrawString((ScaleBaseY + LineCount).ToString(), F, B, (float)(UsableSizeX + 2), (float)Y);
The difficult we do right away...
...the impossible takes slightly longer.
That number looks like a very specific constant, but one I admittedly don't recognise. I've used Calc.exe to tell me what is in hex, and its 14 digits. I'm going to assume doubles have a 14 byte mantissa and a 2 byte exponent.
First thing that springs to mind is unchecked. Could we be looking at a run time error?
Or, infinity? The loop I suspect makes no difference.