Answer Questions
UKAndrewC 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, 1. Sorry I'm fairly new to the Microsoft VM, so I'm not sure if I'm ...Show All
-Jazzy 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
MeiXi how can i remove the security warning in VJ#
Hi i have a web application which is code behind html ,upgrading from vj++ to vj#.The application uses wfc control to launch it.While trying to run ,it throws a security warning saying"This page contains components that are potentially unsafe,Do u wish to continue".The process proceeds when clicking yes button otherwise it does n t move further. this security warning looks strange ,when come to internet user.So how can i remove or ...Show All
John Walker Return a class in a get-method
How do I return a userdefined classtype (other than Object) in a get-method It is easy in java, but in V J# public class WhatEver { private MyClass myClass; public WhatEver() { myClass = new MyClass(); } public MyClass getMyClass() { return myClass; } } Thanks that did the trick. But there is clearly something wrong when you have to cast the re ...Show All
ataparia Error Configuring Web Site
I am using Visual Studio 2005 Beta 2 - I have completed Soup-to-Nuts 1 thru 9 doing them in Visual J# and have had to create all added code and files that appear from one lab to the next, not to mention the problems with the differences in ADO .Net with datasets and table adapters anyway I have go thru that, now Lab 10 deals with Web applications so I decided to revist the Lab "Creating ASP.NET Web Applications with J# - Part 1" I ...Show All
Anonymous1980 Creating documentation for our project
Hi; Any suggestions on how we build up our documentation for our API nDoc does not handle VS 2005 and does not understand java style comments. thanks - dave Hi, Have you already tried http://sandcastle This is the too l to serve your purpose. Thanks. Any chance Microsoft might release their documentation tool Maybe open source it like they did with WIX It sure would be nice to have... Especially since ndoc is not a ...Show All
srujana_m setting socks proxy option - .NET migration headache
It used to be so easy in vj++ and java, to set socks proxy for sockets: Properties p = System.getProperties(); p.put("socksProxyHost",host); p.put("socksProxyPort",port); Socket skt = new Socket("hello.com", 81); If you run the above code behind socks proxy server, it worked so well in vj++. In fact, vj++ program can make use Internet Explorer socks proxy settings and you don't have to set System.getProperties(). Unfortunately, the above c ...Show All
Azhagan Help: how can I avoid the System.OutOfMemoryException?
Dear All, A System.OutOfMemoryException always occurs in my program when the input data size becomes larger. Basically my program uses a recursive method to travel all paths in a graph. For example, the graph's configuration looks like this: three nodes A, B, and C. There is one edge between B and C, and the only thing that changes is the number of edges between A and B. When there are 2000 edges between A and B, my program works fine. But if ...Show All
steve brsk Serialization much slower in .NET 2.0
I tested Java serialization/deserialization with both .Net 1.1 und 2.0 and recognized that 2.0 is much slower, especially on deserialization. Here are my results in seconds for 5 iterations: .Net 1.1: Serialize-Duration 0: 00:00:01.3920016 Deserialize-Duration 0: 00:00:01.6223328 Serialize-Duration 1: 00:00:01.1917136 Deserialize-Duration 1: 00:00:01.5722608 Serialize-Duration 2: 00:00:01.2217568 Deserialize-Duration 2: 00: ...Show All
maurj pretty colors in tabset
How can I change the default color for the tab control in j#, or am I stuck with the shoddy default color Hi Brian, I could validate that there is no public method to modify the default background color of TabControl. This is being tracked and investigated through http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=e3877f1c-4cb7-48b4-87f7-1ef802b08dc3. Thanks, &nbs ...Show All
VPerhach 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
AxelD J++ question
hi there, im pretty new to java technologies, im making a web applet and i would simply like to disable and hide a Jpanel when say Jbutton1 is pressed Hi, In J++ there is no Swing Support.So You can't use Swing controls such as JPanel,JButton etc.You can use Awt Controls in j++.The Following process is used to make web applets(JBrowsercontrol) in J# 2.0 as well J#1.1 jbc.jsl import javax.swing.*; im ...Show All
SmartTrac XML to Database
How can I create a database table based on an XML schema and populate it with the XML data. Currently, I am using ReadXml to display the data in a datagrid via a virtual dataset. Can I write the data out into a table or text file without having to define each field and node It looks just like I want it in the datagrid display I just need to get that into an actual file. The following code is what I am using now: fileName = ofdGetXML.get_Fil ...Show All
gd52 Reference to vjslib.dll fails after RTM Framework 2.0 installation
After installing Framework 2.0 from MSDN subscriptions my previously working reference to a J# assembly fails with 'Could not load file or assembly 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.' The assembly is COM interfaced, strong typed and is being called from an ASP page. This also occurred when using an early beta of 2.0 and was reported ...Show All
wavemill how can i remove the security warning in VJ#
Hi i have a web application which is code behind html ,upgrading from vj++ to vj#.The application uses wfc control to launch it.While trying to run ,it throws a security warning saying"This page contains components that are potentially unsafe,Do u wish to continue".The process proceeds when clicking yes button otherwise it does n t move further. this security warning looks strange ,when come to internet user.So how can i remove or ...Show All
