Ohhhh... I didn't know that. Thanks!
Y*Live Long And Prosper*Y
Ohhhh... I didn't know that. Thanks!
Y*Live Long And Prosper*Y
I am just started playing with java an I am having this issue. I did the simple hello world app like this: class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); } } And when I run it in eclipse the console shows Hello World!, But if I run it in the terminal as "java Hello?WorldApp.class" It will not run it just gives me the error "Class not found". Why is this? Thanks. Running Ubuntu 10.04. Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class Caused by: java.lang.ClassNotFoundException: HelloWorldApp.class at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334) Could not find the main class: HelloWorldApp.class. Program will exit."
Y*Live Long And Prosper*Y
Worked! Thanks!
Y*Live Long And Prosper*Y
I am having an issue with this. I need to create a folder in the current users application data folder to store settings but I cannot. Every time I try to use Directory.CreateDirectory(Environment.SpecialFolder.MyDocuments + "/JFE/Settings") Or anything else under SpecialFolder it will just create a folder in the application's directory with a name like Personal then inside this directory it will make the folders I requested. Why does it do this? I printed out the string for the special folder and looked at it and it is correct but for some reason it creates my folders in the current program's directory.
Y*Live Long And Prosper*Y
Ahhhh. Thanks!
Y*Live Long And Prosper*Y
I am working on a text editor application and I would like a status strip on the bottom of the window but I cannot see the last line of the text box because the strip overlaps it. And if I set the docking of the text box to top I can set the size so it will not overlap but then it will not stretch vertical with the window. How can I set the text box to stretch with the window but not overlap the status strip?
Y*Live Long And Prosper*Y
Can someone please be more specific? Im new to programming.
Y*Live Long And Prosper*Y
yeah sorry lol I thought it didn't go through
Y*Live Long And Prosper*Y
I have this button that I want disabled from a check box on a separate form. Its an options window and one option is to disable a certain button but the button is on the previous from. How can i disable the button from the form? I cant just start typing because it does not know the button exists. due to it being on another form.
Y*Live Long And Prosper*Y
Worked like a charm! thanks:)
Y*Live Long And Prosper*Y
How do I get a form to lock focus to where the user cannot switch to the parent window without closing it first?
Y*Live Long And Prosper*Y
Im trying to convert a string to a Const Char* How do I do that? Im using Dev and this is ther error i get: cannot convert `std::basic_string<char, std::char_traits<char>, std::allocator<char> >' to `const char*' for argument `1' to `int system(const char*)' (Im new to C++)
Y*Live Long And Prosper*Y
I would like to create a MFC project but when I create a project the option is greyed out. how can i use it?
Y*Live Long And Prosper*Y
Is there any way to start programs from the same folder as your C# program without getting a file not found exception? the only way I can seem to fix it is to put the other files into the root of C:\ and telling the program System.Diagnostics.Process.Start(@"C:\example.exe");. But the problem is I have an installer that puts all the files into "C:\program files\Random Title here". And that folder is what ever the user wants it to be, so I cant make my program predict that so just typeing System.Diagnostics.Process.Start(@"Example.exe"); gives me a file not found Exception unless i tell it to always install it "C:\". Any advice?
Y*Live Long And Prosper*Y
Ive searched the web and it seems that blocking Ctrl+Alt+Del is almost impossible in Windows XP. Is there a way to keep your program constantly looking to see if taskman.exe or the taskmanager from opening? like it kills the task when the program detects that it is running? Im making a program to lock my computer for my own use and figureing this out would really help. So im looking for a way to get it to loop and look at the running tasks all the time and wait for it to open. Any advice? im new at C# so take it easy please! =)
Y*Live Long And Prosper*Y
Hey im new to C# and I have to say i like it alot. my question is in a windows app (not console) is there a way to tell your program to read a specific line from a text file?