Answer Questions
mandoman2 Help Needed..ASAP
I have created a windows form application in visual J# and on this application I have a tabcontrol. The problem I am having is that I have a "richtextbox" on one of the tabs(Tab B) and when I receive information in Tab B and i click on it(Tab B), the entire form freezes(basically it does not respond and the program crashes). I have realised that if I have Tab B open before the message is received, I receive that message and everyth ...Show All
Avi Cohen J# Books & Questions
I'm a new developer and am planning to write an application for church office administration. It would keep track of facility usage, payroll, members, attendees, donations and general accounting. I've looked into a couple different languages and have narrowed it down to J# or Omnis Studio (Omnis.net), which appears to be underdeveloped. However, I'm having trouble finding resources (in print or electronic form) for J# and learning it ...Show All
Syed Safiullah Hussaini case statement
Now I need to know how to use case statements with VJ#. int a = some number...; switch(a) { case 1: // handle 1 break; case 2: // handle 2 break; case 3: case 4: // handle 3 and 4 break; default: // hadnle more than 4 values break; } } Thanks ...Show All
Viktor Placek attachEvent using code-behind html
Hi, We are having code in vj++ code-behind html project as below: public delegate void HTMLEventHandler(IHTMLEventObj e); mshtml.IHTMLWindow3 iwin3 = (mshtml.IHTMLWindow3)controller.DRecordWindow.getPeer(); iwin3.attachEvent("onresize",new HTMLEventHandler(resize)); public void resize(IHTMLEventObj o) { int x = o.getClientX(); int y = o.getClientY(); controller.docListener.click.setClipWindow(new Point(x,y)); } H ...Show All
TheUnknownDeveloperNamedMike Object reference not set to an instance of an object.
I'm writing an SQL querier, that allocates grants and revokes. I programmed the first draft in Java, then converted it into J# in Visual Studio, to add a nice front-end to it. But, i recieve an 'Object reference not set to an instance of an object.' error with this line of code - stmt = con.createStatement(); Where the related statements are - Statement stmt = null; private Connection con = null ; this .con = ...Show All
EVELIO One app, multiple main()'s
Hi; I have a single project that has about 18 main methods in it. How can I run the created exe (it's a console app) and tell it which main to use as "the" main thanks - dave If you are building from command line you can use /m[ain]:<class> option of vjc.exe. If you are building using VS, you can set the "Startup Object" property in the Project Properties->Application page. Thanks, Gautam Add the ...Show All
NewC&#35; How can I encrypt a String to put it into a Database?
How can I encrypt a String to put it into a Database I've tried with: public static String encrypt( String textoplano) throws IllegalStateException { MessageDigest md = null ; try { md = MessageDigest .getInstance( "SHA" ); // Instancia de generador SHA-1 } catch ( NoSuchAlgorithmException e) { throw new IllegalStateException (e.getMessage()); } try { md.update(texto ...Show All
Eddie RIveron Pet peeve of the day
Hi all; Today's pet peeve is programmers that blame J# when it's their own fault. I posted a "bug" in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=156906&SiteID=1 and wasted Jaiprakash 's time when he tried to reproduce it. Turns out, about 3% of the code in WR is java/j# specific and one of those classes was being serialized. And that class did use System.Byte[]. thanks & sorry - dave Hi, It's perf ...Show All
Robert McKee Generating XML documentation for J#
I'm trying to port a core library written in Java to J#. It has worked well so far. But now I need to create .NET compatible documentation for this library, and I'm having problems. I know I can make Visual Studio 2005 generate an XML documentation file for my vjsproj, but I need to do this from a command-line build environment. I've been playing with MSBUILD, but I just can't seem to find the proper incantation to make it cre ...Show All
Jian Zeng Need help...
I am a J# begginer, (I started this morning) I can do some basic stuff, but I need to know to give an action to buttons. For example I want to be able make a program (like notepad) that can save text. I have everything together, except how to make buttons do something! J# Illiterate Jackthbean Hi, I am assuming that you are using visual studio or J# Express to make your application(let me know if its ot ...Show All
nightshroud Problem with C++/CLI and J# interaction bug
I'm having a problem with C++/CLI and J#. I am writing a class library in C++/CLI and want to use it from J#. I narrowed down my code and wrote a repro: a.cpp: #using <mscorlib.dll> #include <stdio.h> using namespace System; namespace AA { public ref class A { public : unsigned long Print() { printf( "Hello\n" ); return 0; } }; } b.jsl: import System.*; import AA.*; public class Test { public static void main( Stri ...Show All
BMcCool Common source for Java & J#
Hi; If you have java code and want to use a single source base for the Java & J#, here are 4 good references: J by J# is J# versions of a ton of common open source libraries - all done by 1 incredibly productive programmer . GotJSharp is a website I put together to list resources for common java source. If you know of any other sources or have suggestions for the site, please let me know. Windward Reports is a reporting progra ...Show All
CarlW ResourceBundle problem
Hi; If I call ResourceBundle.getBundle("resources", locale) where locale is for a locale I don't have a resource for (I used "zz_XX") - it throws the ArgumentOutOfRange exception. In this case it should work and just use resources.properties. I also tried "en_XX" which should fall back to resources_en.properties - but again I got the exception. - dave AARGH! Ok, I copied your project - and it ran fine. So then I copied my resources over, u ...Show All
Motley converting vj++ com.ms.com.Variant class to vj# equivalent
we have a sample code in out vj++ project which we are trying to convert to vj# as bleow, IHTMLElement ie=(IHTMLElement)actionElement.getPeer(); mshtml.IHTMLElement3 iet=(mshtml.IHTMLElement3)ie; boolean b1=iet.FireEvent("onchange",new Variant("onchange")); // the above line gives compiler error DClickActionPerformer.java(115): Actual parameter for 'byref System.Object' must be assignable not sure how we can convert to vj# like what wil ...Show All
Eli Cohen J# Books & Questions
I'm a new developer and am planning to write an application for church office administration. It would keep track of facility usage, payroll, members, attendees, donations and general accounting. I've looked into a couple different languages and have narrowed it down to J# or Omnis Studio (Omnis.net), which appears to be underdeveloped. However, I'm having trouble finding resources (in print or electronic form) for J# and learning it ...Show All
