|
Be sure that you have double buffering for the form set to true.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Setting doublebuffered on the form did not have any effect. However, the following code did clear up this and other repaint issues easily:
protected override System.Windows.Forms.CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
cp.ExStyle |= 0x2000000;
return cp;
}
}
I find it really strange that this isn't enabled by default from Microsoft since the TabControl looks like crap without it, and there are no apparent downside of using the fix above except that you get a bit more memory usage and a few more lines of code.
Please, if possible, enlighten min why Microsoft decided to drop this option as on by default? For the record; it sets the WS_EX_COMPOSITED Window property. In MSDNAA I can't find any information indicating why this is not enabled.
|
|
|
|
|
Hi,
I have a problem backtracing which .Net transaction is blocking another transaction.
I would like to find which .NET transaction is blocking another .NET transaction. I can find the locks in SQL Server 2008 and it's corresponding SQL Server transactionids, but I cannot map the .NET transactionids to them.
In the sys-tables of SQL Server 2008, I find the transactionids of the blocking transaction and the transaction that is being blocked. (eg 75288) When I retrieve the transactionid from within my .net application through 'System.Transactions.Transaction.Current.TransactionInformation.LocalIdentifier.ToString()', it's a guid. I expected the transactionid of sql server and .Net transactionid to be the same, so I could backtrace to the blocking transaction in .NET and resolve the locking problem.
Can anyone help me with this? Thanx.
Kind regards,
Webster
|
|
|
|
|
Well, for one, a .NET transaction from System.Transactions is not specifically a database transaction. Its a .NET transaction, which may involve many resource managers, including SQL Server, but not limited to it. Its entirely possible to have a .NET transaction that doesn't involve SQL Server at all. So there is unlikely to be any correlation between the transaction ID for the .NET transaction and the transaction ID for the SQL Server transaction, I wouldn't try to use any comparison between the two to find a match.
As for a solution to your problem...you probably need to use a profiler that will trace your calls and identify blocks. I am not sure if either of these will take you directly to the source of the problem, but they are both pretty advanced and should help:
JetBrains dotTrace Profiler
RedGate Ants Profiler
|
|
|
|
|
Can any one suggest me how to connect the database using vb.net 2008.
|
|
|
|
|
e.g.,
string connstring = "Data Source = .\\ABC;Initial Catalog = XYZ; Integrated Security = True";
SqlConnection conn = new SqlConnection(connstring);
SqlCommand comm = new SqlCommand();
comm.CommandText = "Select * From DummyTable";
comm.Connection = conn;
conn.Open();
comm.ExecuteScalar();
conn.Close();
MSDN[^]
|
|
|
|
|
There is not just one or two ways to do this. I highly suggest picking up a book on ADO.NET to have as a learning tool and reference.
|
|
|
|
|
I am new to development. Could anyone suggest,what are the different downloads I would have to do,to start learning c# on the .NET framework?
|
|
|
|
|
If you have .net, you have all you need. The framework includes CSC, the command-line compiler for C#.
I suggest you open a DOS box, write a "hello world" console app, and compile it.
|
|
|
|
|
|
|
thanks..Seems like the exact tutorial i was looking for.
|
|
|
|
|
Do you have developed experience
i just do it
|
|
|
|
|
Guys, we are all developers here --most at least--
I found out about this great little companion for developers and non-developers: http://tinypad.info/[^]
It's really slick and very light. I got so used to it, I can't turn it off.
Another great yet simple idea! Made with .NET 3.5
Just thought I might share this with you all!
|
|
|
|
|
I far prefer OrangeNote[^] made by one of the CP regulars. I use this tool regularly.
|
|
|
|
|
yeah that's another great, two separate concepts though.
Tiny Pad is much lighter on the system. I really like the archiving feature. The highlighting and the firefox-like search are real key features.
What's a real bummer is that there's no tagging like OrangeNote.
I heard the next version will work on Unix/Mac.
Thanks for sharing!
|
|
|
|
|
Hello
I am new in .NET frame work.Actually i have done a project in Symbian os.
How i have to access a calender database from pc by using visual stdio frame work.
Can any one help me as soon as possible.
Jobayer
|
|
|
|
|
when i tried to open the inetmgr it is showing the following error
ntvdm cpu has encountered an illegal instruction in iis
|
|
|
|
|
|
Hi All,
This is my code
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sCRURL);
request.UserAgent = "Gantec Web Crawler";
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader(stream);
sCreditReport = reader.ReadToEnd();
reader.Close();
I am getting the following error occasionally not all the times please advise how to solve this problem
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.IOException: The decryption operation failed, see inner exception. ---> System.ComponentModel.Win32Exception: The message or signature supplied for verification has been altered --- End of inner exception stack trace --- at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.StreamReader.ReadBuffer() at System.IO.StreamReader.ReadToEnd() at CreditBuilder.PresentationLayer.credit_report.GetCreditReport() at CreditBuilder.PresentationLayer.credit_report.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.credit_report_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Hi,
do you have found a solution for this problem? One of our customers get this failure also.
Thanks
Tom
|
|
|
|
|
|
How to Generate a color palette from an image?
Just like,
http://kuler.adobe.com/#create/fromanimage
Check the above link for demo.
How to do that in .NET?
Any Ideas?
Thanks in Advance.
|
|
|
|
|
All you do is call GetPixel on a Bitmap object to return the color at a specific location in the image.
|
|
|
|
|
Thanks Dave for your reply.
But GetPixel is for getting pixel from a particular (x,y) in the image.
We can iterate through the image and we can findout all the colors in the image by using that.
But i have to analyse the whole image and need to find only few colors which are unique in the image,but not the whole colors.
So i think some complex logic will be there for analysing only unique colors.
I tried some logics.But i think may be some good logics there for finding it out.
Any ideas 4 that?
Thans in Adavance.
|
|
|
|