I created an XSD schema for a data object, and I ran the Visual Studio xsd tool to generate classes based on that schema. All of that looks fine, but now I want to read the XML file which conforms to that schema and return an object of the corresponding class. I've done a lot of searching...
I have a relatively small hard drive with Windows on it. I want to install Linux (dual boot - I need Windows for VS.NET and games) but I don't want to run out of space, so I was thinking about buying another hard drive and installing Linux on this drive. Problem is, I don't know if I will get...
I'm very new to Flash so this probably isn't all that difficult. I want to change a pushbutton so it will be brighter when my cursor is over it. I've managed to do that (I went into the library and changed fpb_over, deleted frame5, added a new symbol that was just a lighter colored square than...
I have a JList in an applet that is initially empty but elements are later added. For some reason, the JList is not drawn if it has nothing in it, even if I use setMinimumSize(). As soon as I add an item it magically appears. This is obviously not the desired affect, so how do I fix it?
I know Java somewhat and just started a job using it. I'm supposed to modify a project that already exists. The project is so screwed up I don't know where to begin: there are blatant package rule violations and tons of errors. After screwing around with it for a couple hours, I still can't...
I want a certain method to be called whenever Ctrl+Left arrow is pressed when my form is active. It is easy to do this for menu items with their Shortcut property, but I can't figure out how to do it when there is no menu item corresponding to this. I can't just override OnKeyDown as I'd like...
I'm pretty new to C# and have encountered a problem. When the user types in a text box, I want that to change another control in my dialog. However, I want to be able to change the text box's text in my code using the TextBox.Text property without triggering the same event. I've managed to...
I'm trying to make an applet draw some dice images. The images are in files named die1.png through die6.png. Here's my code for loading and displaying them:
public void loadImages() {
for(int i = 0; i < 6; i++) {
URL imageUrl = getClass().getResource("/die" + (i+1) + ".png")...
I'm trying to use the Robot class to type a string. It doesn't seem like it should be difficult, but I can't figure out how to turn a char into a KeyEvent.VK_whatever, which is what Robot's keyPress method expects. I'm sure there is a very simple method of converting them, but I tried looking...
I just started using AWT (I'm new to Java in general) and am encountering a very simple difficulty: I can't get the stupid window to close without using end task. Here's my code:
import java.awt.*;
public class Test extends Frame {
public Test() {
super("Test");
setSize(200, 200)...
I'm learning java with a background in C++. I was writing a method, but was surprised to discover that I couldn't use a reference parameter using C++ syntax. How do you use them? Surely there must be some way. Also, C++ pointer syntax doesn't work. Is it even possible to declare a pointer...
I have a listbox and I want the full row to be selected when I select an item in it instead of just the text. I set FullRowSelect to true, but this doesn't seem to change anything. In some ways it seems to be behaving more like a list control than a list box (I'm used to doing this in C++, I'm...
I've used it a lot in C++, and I'm just learning C#. Since quite a few things are different in C#, is Hungarian notation significantly different, or is it not used at all? In the small amount of C# code I've seen it has not been used.
My dad just bought a new laptop from HP. Strangely, they never said how fast the memory was, just that it was a gig of DDR. I tried looking in the BIOS, but it wouldn't even let me overclock at all so I couldn't see it that way, and it didn't show the memory speed anywhere else. I thought it...
This is driving me crazy. I was using someone else's class for something in my program, but I didn't like how some things were implimented, so I made my own class that did the same thing and removed the old files from the project and deleted them. My class's methods have mostly the same names...
This is probably the strangest problem I've ever had with C++. I'm multiplying the same two doubles in two different places in the program, using the exact same line of code, and they are giving different values. The values I'm multiplying are 50.0 exactly and 0.001 exactly (I know they are...
I put a slider on a dialog bar, but when I move it a WM_HSCROLL message never seems to be sent because OnHScroll in my view class was never called. Then I tried adding it to the main frame class, and it never got the message either. I tried Spy++ and it didn't ever see any WM_HSCROLL. Is...
I'm going to learn Java, and I'm coming from a strong background in C++. As I understand it, Java isn't even compiled, so I need directed as to how to make an executable file. Basically, could someone point me in the right direction for getting started? I don't even know if I'll need...
I'm running a full screen app using Direct3D (not sure if this is important or not). When I alt+tab out, I want the window to minimize. It does this on its own sometimes, but part of the time it sits there, maximized, and won't give up focus to other windows. I want to get it to minimize...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.