Visually Studio changes my code to something weird
-
6 มีนาคม 2555 1:09
Hi there!
Even if my title says what is my problem, I'll explain it a little more. I making my custom color picker with a user control but Visual Studio keeps changing the basic colors to something weird. Let's see the difference:
this.pictureBoxBlack.BackColor = System.Drawing.Color.FromArgb(255, 0, 0, 0); // My code this.pictureBoxBlack.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); // Code generated by Visual Studi
Is there a way I can disable Visual Studio to disable certain pieces of my code?
Thank you
- แก้ไขโดย The Starter One 6 มีนาคม 2555 1:11
ตอบทั้งหมด
-
6 มีนาคม 2555 2:20
Hi The Starter One,
Don't worry about it. Visual Studio development environment generals another override function, and its parameter provided only three variables such as red,green and blue. Futhermore,it uses explict conversation to implement the type of input parameters need to input Int32. By contrast,your override function need to provide the more information about alpha. You can read the following MSDN article for obtaining the more information:
http://msdn.microsoft.com/en-us/library/cce5h557.aspx
Sincerely,
Jason Wang
orichisonic http://blog.csdn.net/orichisonic If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
- ทำเครื่องหมายเป็นคำตอบโดย The Starter One 6 มีนาคม 2555 2:23