Answer Questions
foobar_78 Problem with subclassing a form AND J# interface in C# 2.0
I have an existing application that declares a class that derives from System.Windows.Forms.Form and an interface. This compiled and worked correctly in 1.1 but an error is reported during in C# 2.0 "IRecitalMirageForm - type is not supported by the language". The interface is written in J#. public class Form1 : System.Windows.Forms. Form , IRecitalMirageForm Is there any workaround for this behavior ...Show All
Edra Buckles Simple Echo Server
I am using Visual J# 2005 Express Beta 2 to create a simple echo server. I have created the form and design and able am able to launch the program. I have created a RichTextbox to display the connections and 'echo's. The problem is when after starting the echo server by clicking on a button, the program stops responding. But the echo server is running in the background because I am able to connect to the echo server (localhos ...Show All
Astronicus Maybe stupid question but: How to get float out of System.Single?
What is the method to extract value from System.Single to standard float variable (defined float x = ) when using J# This sounds so trivial that I must have overlooked something when I did not find the way I have to use System.Single when I'm communicating with certain COM controls. Thanks TaylorMichaelL your answer worked correctly. Actually I tried the typecast but could not make it run earlier. Prob ...Show All
Dragomir Error when installing Visual J# .NET
I have problem with one PC when installing Visual C++ .net version 2003. In the prerequisite, it always failed on the Visual J# .NET component. As the result, I cannot continue with the install. Anyone can help Thanks Che Hi Che, I tried installing Visual C++.Net 2003 but could not reproduce the problem that you mention. The list of prerequisites has only 3 entries for me: 1) MS Frontpage 2000 Web Extension Client 2) Setup Runtime File ...Show All
Chip1958 Web Browser, HTML selection
Hi, I have implemented a simple Web Browser using the inbuilt Web Browser component. I now need to be able to highlight some text on the web page and for this to then be selected by the J# program. This is possible in Java by using the getSelectionSrat and getSelectionEnd methods linked to the JEditorPane, and it is possible in C# by using IHTMLSelectionObject and IHTMLTxtRange, but now I need to find the J# version! Regards Richard ...Show All
AFM Why is the J# Redistributable package needed?
Hi! Why is the J# Redistributable Package needed to run a J# application Or can I just redistribute some assemblies For example, if I develop an application in Borland Delphi using WinForms, I can compile this application to an exe file. This exe file can be executed on any computer that has the .Net Runtime Framework installed. No Delphi .Net Redistributable Package exists. If I develop an application in Dephi using the VCL.NET api all I ha ...Show All
Bard-Erik Venheim Deserializing objects serialized with JDK
I'm making great progress with converting a major Swing application to J#. I've run into a number of incompatibilities, but I've generally been able to resolve these satisfactorily with a moderate amount of work. The application is looking pretty good running under .Net. One problem I haven't been able to resolve is that this application stores serialized objects into files. I know this isn't a recommended practice, but it's what I have to de ...Show All
anchorpoint Access Database
Does any one have a sample code working with an MS Access Database Hello! I don't know how much you know about databases, and how much I should explain, but here is a simple example with MS Access and J#. A good staring point could be a "ADO.NET" book, if you want in depth knowledge. 1. Open Access 2. File + New + "Blank database" 3. Name : "testDB" + "Create" 4. "Create table in Design View" 5. Filed Name - ...Show All
Ascended_Saiyan user.dir for Microsoft Java VM
Is there any way to set the default working directory (system property user.dir) for all Java applications run on a system (via a registry key, etc) I know how to do it programmatically for one application, but I'd like to make the setting apply to all applications running on a workstation. Any help is appreciated. Thanks! James Hi Jaiprakash, Thanks for taking the time to reply. I think you're right about  ...Show All
CChalom too many images = greater load time
ok, ive got a good... 96 images on a form with scrollbars, as your scrolling left and right, it takes a while for the images to reload, is there a way to speed up the load Store the images inside your class, and then draw them in your OnPaint handler. You'd want to store them in a container of some sort, probably a Dictionary and come up with some way of looking up the images you need to draw, which you ...Show All
abhishekp java.nio not supported
Hi, I am trying to migrate my java code into j# but I found that java.nio is not supported in J# 2005 beta. Is there any replacement for this big class. Thanks Steven I'd also vote for adding java.nio to J#... It would be a big help! J# is not Java, most of the functionality in the nio are available in the .NET Framework, plus other functionality. The issue here is that ...Show All
Bartosz Passed value in ASP Pages
Hi, I would like to know how to retrieve a passed value in J#. I have a new page and I want to access it's passed value. New Retrieved Page Example URL: http://test/default.aspx pageStatus=0 I have an int variable (int pageStatus;) in my default.aspx page and I want to assign this variable the value found in http://test/default.aspx pageStatus=0 What method do I use Thanks in advance, Allan Also if you're mi ...Show All
bettoni ChangeDatabase
To change the database in an odbcConnection object there is the method odbcConnection.ChangeDatabase(newDatabaseNameAndPath) But it does not work. My code sample is: myDatabase = openFileDialog_Datenbank.get_FileName(); Access_odbcConnection.Open(); Access_odbcConnection.ChangeDatabase(myDatabase); Access_odbcConnection.Close(); Does anyone have some experience with changing the database during runtime Do I have to first close the form, which ...Show All
SergeK 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 Hi Dave, This is what i have tried: In one directory i have the following .properties fil ...Show All
AlainDe ResourceBundle exception bug
Hi; First off, thanks for the help. I am now up and running. And I posted how to do this at http://thielen.typepad.com/programming/2005/11/using_java_reso.html Second, if a bad name is passed in, for example: resources = ResourceBundle .getBundle( "not_my_resources" ); Then you get the exception: + [System.ArgumentOutOfRangeException] {"Length cannot be less than zero.\r\nParameter name: length"} System.ArgumentOutOfRangeE ...Show All
