if i change string sexcelconnectionstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + excelfilepath + "; Extended Properties=\"Excel 12.0; HDR=Yes; IMEX=2\""; of execl 2007 as excel 2003 and file excel 2003(note conten like it), it's not warning error: "Not a legal OleAut" and import excel2003 into SQL Server very good, why excel 2007 be warning ?
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.