j#

Smoothly Fading Controls

独自空忆成欢 提交于 2020-01-05 07:07:31
问题 I am trying to fade a label but it doesn't seem to have the opacity property like the form itself. Is there another way to fade controls? 回答1: You can use my Transparent control that accept transparent color and have opacity property(0 - 100): public class TranspCtrl : Control { public bool drag = false; public bool enab = false; private int m_opacity = 100; private int alpha; public TranspCtrl() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); SetStyle(ControlStyles.Opaque, true

Smoothly Fading Controls

自古美人都是妖i 提交于 2020-01-05 07:07:11
问题 I am trying to fade a label but it doesn't seem to have the opacity property like the form itself. Is there another way to fade controls? 回答1: You can use my Transparent control that accept transparent color and have opacity property(0 - 100): public class TranspCtrl : Control { public bool drag = false; public bool enab = false; private int m_opacity = 100; private int alpha; public TranspCtrl() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); SetStyle(ControlStyles.Opaque, true

How can I use JavaScript within an Excel macro?

心不动则不痛 提交于 2019-12-28 03:23:26
问题 There’s a really cool diff class hosted by Google here: http://code.google.com/p/google-diff-match-patch/ I’ve used it before on a few web sites, but now I need to use it within an Excel macro to compare text between two cells. However, it is only available in JavaScript, Python, Java, and C++, not VBA. My users are limited to Excel 2003, so a pure .NET solution wouldn't work. Translating the code to VBA manually would take too much time and make upgrading difficult. One option I considered

What is the reverse operation of bitwise AND?

∥☆過路亽.° 提交于 2019-12-24 09:04:01
问题 How can I get a from b and c ? What would be the reverse operation? Here is the code: class s { public static void main(String ar[]) { int a = 20; int b = 5; int c = 0; c = (a & b) ; System.out.println(c); int d = (c & b); System.out.println(d); } } 回答1: You can't. If a bit in c is 0 and the corresponding bit in b is 0, it's impossible to know whether the corresponding bit in a was 0 or 1. By a similar argument, bitwise OR (the | operator) is also irreversible. On the other hand, bitwise XOR

Can I just drop vjslib.dll into the /bin directory of my application?

只愿长相守 提交于 2019-12-22 14:54:48
问题 I am in the middle of a production deployment. Unfortunately I am deploying to a tightly controlled environment. It is unlikely I'm going to get clearance tonight to run the full Visual J# redistributable EXE. Our app is currently throwing errors saying that it can't find the assembly "vjslib.dll". Can I just drop this into the bin of our app and have everything work without all the hassle of the full-blown EXE install for the server? 回答1: The vjslib.dll file is a redistributable file. You

Arbitrary-Precision Decimals in C# [duplicate]

旧时模样 提交于 2019-12-17 04:08:08
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Big integers in C# C# unlimited significant decimal digits (arbitrary precision) without java I read the question at Arbitrary precision decimals in C#? but I don't have the J# library. I need a library for arbitrary precision decimals with C#. 回答1: Big Decimal: Install the J# runtime (it's free): http://www.microsoft.com/downloads/en/details.aspx?familyid=f72c74b3-ed0e-4af8-ae63-2f0e42501be1&displaylang=en Big

Comparing two byte arrays in .NET

梦想与她 提交于 2019-12-16 20:14:22
问题 How can I do this fast? Sure I can do this: static bool ByteArrayCompare(byte[] a1, byte[] a2) { if (a1.Length != a2.Length) return false; for (int i=0; i<a1.Length; i++) if (a1[i]!=a2[i]) return false; return true; } But I'm looking for either a BCL function or some highly optimized proven way to do this. java.util.Arrays.equals((sbyte[])(Array)a1, (sbyte[])(Array)a2); works nicely, but it doesn't look like that would work for x64. Note my super-fast answer here. 回答1: You can use Enumerable

Why was J# not supported in VS 2008, is the language dead?

大憨熊 提交于 2019-12-10 18:07:08
问题 Has MS given up on J# ? We integrate with software currently through a J# assembly. Does anyone know if it will be/is supported in 2010? 回答1: Here's a link that answers your question: http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/3fbac9ac-c43a-4c7f-9fee-1bc1de2c6fc5 It was discontinued after VS2005. 回答2: http://msdn.microsoft.com/en-us/vjsharp/default.aspx <-- It has been retired. 回答3: I think the existence of J# was really to promote the CLR. Now that we have

Can I just drop vjslib.dll into the /bin directory of my application?

a 夏天 提交于 2019-12-06 07:09:32
I am in the middle of a production deployment. Unfortunately I am deploying to a tightly controlled environment. It is unlikely I'm going to get clearance tonight to run the full Visual J# redistributable EXE. Our app is currently throwing errors saying that it can't find the assembly "vjslib.dll". Can I just drop this into the bin of our app and have everything work without all the hassle of the full-blown EXE install for the server? The vjslib.dll file is a redistributable file. You should be able to place it in the BIN directory and have everything work just fine unless there is another

Visual Studio registry capture utility has encountered a problem

纵然是瞬间 提交于 2019-12-04 15:44:17
问题 I recently reinstalled my development machine and went from 32 bit Windows Vista to 64 bit Windows 7. I'm running VS2008. Some of my .NET applications still use J#, which now causes problems. The program still runs, but when I want to deploy it (I'm using a setup project to create a .msi), I get this error: "Visual Studio registry capture utility has encountered a problem" How can I fix this? This error does not occur with other programs (those written purely in C#). 回答1: Yes, this is a known