Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rsfoley

    Java to C# Conversion?

    You may want to check out the MONO Project. They created a C# ThreadGroup for their debugger. CVS File History ThreadGroup.cs It may help you, it may not. It should be worth checking out. (hehe) (bad pun) If it doesn't just keep Googling and checking open source sites like sourceforge.net...
  2. rsfoley

    Overriding the 'X' button on a form

    Well I found the answer... I was on the right track, I just needed to add the following line to the method override: e.Cancel; This cancels the event from proceeding, and lets you do what you want. So there you go...
  3. rsfoley

    Overriding the 'X' button on a form

    I have been trying to figure out, and search for how you can override the normal closing operation of a Form when a user hits the 'X' button, so that it just HIDES the form instead. The closest I found in a forum someplace was they said to override OnClosing if you want to change how to handle...
  4. rsfoley

    Why doesn't this code play a sound clip?!

    I am a little confused. I do not see where you are actully even trying to play the sound? You are just opening a file. You are not doing anything with it. I am not sure even if C#/.NET has native sound support yet. The only way I can think of doing what you want is using the Windowns...
  5. rsfoley

    C# and COM InterOp problems

    I am trying to use some functions and structs from Shell32.DLL in my C# project. I have VS create a RCW by adding the COM DLL to my project references. However, after doing this I can only see the Classes, Interfaces, and Delegates from the DLL; I can not see the functions or structs. (Or any...
  6. rsfoley

    Can you autosize a forms text input field?

    Well Mate, if you check the W3 HTML specs there no support for percentages in the size of an input field. THere for it does not work. It may appear to work, because 100 characters is VERY BIG. But it does not resize the field to to the width of the browser, in any browser. It is not even...
  7. rsfoley

    Can you autosize a forms text input field?

    No 100% is interpreted as just 100 so it sets it to a size of 100 characters. As for the other not working in IE6 for me... I followed the simple instructions and it's size was just set to what ever the size what set to, there was no "Autosizing" going on. Nothing dynamic, so I do...
  8. rsfoley

    Can you autosize a forms text input field?

    It does not seem to work in IE6. That's okay, I just set it to a size that seems to work in *most* cases. Thanks for trying. Rodney www.javathis.com
  9. rsfoley

    Can you autosize a forms text input field?

    I would like to know if there is a way to autosize a forms text input field. Either by a feature as part of the input tag, or something a little more complicated like figuring out how wide in characters it area is and then set the size. I don't know. I have a dynamic column in a table, and...
  10. rsfoley

    Error Message 901

    Are you using personal edition, pro, or enterprise? (Personal edition as some quirks because some of the features for keepthings things in sync are not available until the pro edition.) Rodney www.javathis.com
  11. rsfoley

    This,extend,and implement

    To your last question "YES". You would only NEED to use the this Object reference, in this case, if the provided method argument as the same name as the class member. Exmaple: public class Example { private String str; public Example(String str) { this.str = str...
  12. rsfoley

    Error Message 901

    Try deleting your class directory, and then recompiling. Sometimes the class directory retains old copies of classes and dependanies to them (especiialy in JB4 & 5, not so much in 6). Usually if you have renamed a class and/or moved it's package. If this does not help let me know. Because...
  13. rsfoley

    stuck with some code!!

    Sorry it took so long, but I did not have the files any longer, however, I downed them again from the link above, and I reimplemented the changes I stated above, and it compiles, runs and works. Below is a link to the only file that I changed. I will leave it on my site for a few days or until...
  14. rsfoley

    JCombobox assistance required.

    Okay below is a class that should compile any any JDK 1.2 or higher. It shows how to handle adding data to a JComboBox, and obtaining this data when a selection is made. (You should be able to extrapulate this to multiple comboboxes) It runs in two modes, default uses Integer objects in the...
  15. rsfoley

    Java and MS Access 2000

    Well first I just have to say this (in my best Schwartznager Voice): DUNT DO IT! ARRIGRIGH! Okay, with that off my chest, if you're insistent to do this, then lets see if I can help you. First to find the best driver for what you are trying to do, you can search Sun's list of Drivers at...
  16. rsfoley

    GUI layout question

    Well the best advice I can give you would be that you may want to consider mastering the GridBagLayout. It is very powerfull, and flexable. Below are links to some tutorials you may want to check out: http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html...
  17. rsfoley

    Any packages that model Perl regular expressions

    If you are using Java 2 JDK 1.4.0 then you can use the java.util.regex package. It uses a syntax similiar to that used by Perl. Rodney www.javathis.com
  18. rsfoley

    Int to char.

    well if you have an int you just need to cast it to a char like so: int myInt = 5; char myChar = (char)myInt; Rodney www.javathis.com
  19. rsfoley

    Focus Events and Text Fields

    I am a little confused (it is probably me hehe) by your explaination of your focus problem. Could you post a compilable sample class that demonstrates this problem? I have implemented several JTextFields that use a mask of one kind or another via documents. I have not experience the problem...
  20. rsfoley

    cannot load images thru an applet

    Applets work in a "Sandbox". This is for security reason since they can be embeded into webpages. If you are running a applet in a webpage it can access files on the server that it resides on. If you are using the jdk's appletviewer then you only have access to files on your system...

Part and Inventory Search

Back
Top