2,157 Posted Topics
Re: Lots of people are hiring from what I see but at unusually low rates. It is an employers market right now and they are taking advantage of it. I'm an old programmer myself (not quite as old as you, but close :)) and am currently unemployed. I am getting interviews … | |
Re: You'll want to take a look at [URL="http://msdn.microsoft.com/en-us/aa937791.aspx"]XNA[/URL] | |
Re: You can't use foreach in this situation (You can only use foreach on object collections that implement IEnumerable). You are reading data into the scdr object, but you never use it. Everything about the row is there, and that's what you need to be looking at. | |
Re: When you created the project did you set it to "Class Library"? That's why you get an exe. You can tell from your code that you have both of them as "Console Application". Open the project that you want to be a class library (DLL) and go to Project-><Project name> … | |
Re: It doesn't write to the file because you have no write statement in there anywhere. You'll need to open another file and write out each of the lines your read in. | |
Re: Your connection string won't work as you don't specify where the database is. Take a look at [URL="http://connectionstrings.com/"]this[/URL] site, it has connection strings for everything :) | |
Re: What do you mean by cursor's position changes? Moved to a new input field, moved within an input field? You can add events to controls that would detect either or both of these things. Or do you mean the mouse cursor? It too has events to handle things. | |
Re: You do realize that formStuff is not the currently active form and is never shown in this code and it is the form you tie lua to? | |
Re: What type is your values array? What happens when you run the code? Does the code actually run the replace line? What data is there in the array and what do you expect the replace to do? | |
Re: Figure out a different method to use. I can see no use for having over 2 billion objects. Maybe if you told us what you were trying to do, better methods would suggest themselves. | |
Re: Yes, they are software. Read [URL="http://en.wikipedia.org/wiki/API"]Application programming interface[/URL] please. | |
Re: This may sound odd to some people, but write the user manual first. Get the client to sign off on the manual, then write the software to do what the manual says. This way the client gets what they signed off on, and you produce what they need, rather than … | |
Re: Could you explain more? It seems that you are saying that if you type them in, they don't show up in the chineseChar string, but if you cut/paste them in they do? | |
Re: Since DataReader is a forward only reader, there is no way to know how many records are available from a Select statement. You'll have to count them as you read them. So initialize a counter before the while loop, and increment in the while loop. At the end you'll know … | |
Re: Because it makes it easier on others who want to use your code. For example, let us say you made a Matrix class. Which makes more sense to a developer:[code] Matrix A = new Matrix(4, 4); Matrix B = new Matrix(4, 4); Matrix C = A.MultiplyBy(B); // This Matrix D … | |
Re: [URL="http://en.wikipedia.org/wiki/Numerical_integration"]Numerical Integration[/URL] and [URL="http://en.wikipedia.org/wiki/Numerical_ordinary_differential_equations"]Numerical Ordinary Differential Equations[/URL] | |
Re: Are you looking for help to import into SQL server or writing C# code to do the import? Also, without seeing the files/table definition it is hard to help :) | |
Re: Yes, with the caveat that sometimes static initialization is delayed until it is needed. You can see this effect by playing with static constructors and derived classes. | |
Re: params must be last, and only one params statement in a method. You can have any number of other parameters to the method as you want, they just must be before the params statement | |
Re: Line 9: Casting is not needed to go from a derived class to a base class. It is needed to go from a base class to a derived class. | |
Re: In line 4 you create a variable to hold the table. Where is the line where you actually create the table? | |
Re: The constructors are called in the order needed. If the derived class constructor doesn't make use of anything in the base class, it is called first, then the base class. But if you use something from the base class, before it is used the base constructor is called, then the … | |
Re: You'll need to add them to the project if you want them packaged up for distribution. | |
Re: I, for one, don't know what it is you are trying to do as you aren't very clear. | |
Re: You can attach to the TextChanged event and check if the last 2 characters in the text string are L2, L3 or L4 and add a newline to the textbox. An issue you might encounter is if the barcode has an imbedded L2, L3, L4 value (such as 3234L423444L2). | |
Re: Thread is almost a year old and the user hasn't been on in a month. Don't hold your breath for a reply. | |
Re: You are going to need to change the security permissions of your assembly. Read [URL="http://msdn.microsoft.com/en-us/library/bb763046.aspx"]this[/URL] on how to do so. | |
Re: You can create another class to handle generating your HTML, or you can use a [URL="http://msdn.microsoft.com/en-us/library/wa80x488%28VS.80%29.aspx"]Partial Class[/URL] if you want to keep it in the same class, but in a different file. | |
Re: It's all still there. The run option is the green triangle on the bar, or under the Debug menu. Build errors show up in the error tab which should be on the bottom of your screen. Console applications open command windows, the problem usually is that they close when the … | |
Re: I'd take a look at the classes in Microsoft.Office.Interop.PowerPoint (add it as a reference then go to object browser). Not sure if it will open PowerPoint to display or allow you to display inside your app, but it's a start. | |
Re: [code]private void button1_Click_1(object sender, EventArgs e) { List<string> myList = richTextBox1.Lines.ToList(); if (myList.Count > 0) { myList.RemoveAt(myList.Count - 1); richTextBox1.Lines = myList.ToArray(); richTextBox1.Refresh(); } }[/code] | |
Re: What OS are you using and did you install into Program Files? | |
Re: It sounds like your application is not properly disposing of the SQL connections. | |
Re: Yes. Access doesn't support transactions, you'll have to use one of the SQL Server variants (I'd try the compact edition first as it stores all the data in a single file, just like Access does). | |
Re: Since cosecatnt is just the reciprocal of the sin function, wouldn't it be easy enough to make your own? | |
Re: This is psuedo code for max subsequence sum, you'll have to add your own start/end info: [code]maxsofar = 0 maxendinghere = 0 for i = [0, n) /* invariant: maxendinghere and maxsofar are accurate for x[0..i-1] */ maxendinghere = max(maxendinghere + x[i], 0) maxsofar = max(maxsofar, maxendinghere)[/code] This is from … | |
Re: [icode]File.WriteAllText(@"C:\myfile.html", myString);[/icode] | |
Re: It really depends on what your ActiveX controls are doing. You might be able to do it all with just code behind, but I doubt it. Most likely you will have to look at Javascript and AJAX. | |
Re: [code]Scroll() { lable1.Text = lable1.Text.Substring(1) + lable1.Text[0]; }[/code] I'd set a timer to call the scroll function at some interval that doesn't make it look like a blur :) | |
Re: I'll assume that currentSongProgress is a progress bar? If so, you are setting it beyond the specified maximum in your code there. When the song ends, you should shut down the timer. You should also check to make sure that the value you are setting for playedTime is within the … | |
Re: In your Decrypt method you create a memory stream but there is nothing in this stream and you try to read it into your byte array. | |
Re: Something like: [code]select FirstName, LastName from MyTable where PhoneNumber in ('111-222-3333', '222-333-4444')[/code] The [I]in[/I] clause allows you to specify multiple values to compare to and returns whatever matches any one of the values. | |
Re: It sounds like you are triggering events in your form_closed or form_closing event. Without seeing more code, that's the best I can do for you. | |
Re: When your Click event fires, what value does [B]i[/B] have? | |
Re: I'd make an interface (ICard) and derive all cards from it. Possibly some abstract types for each category, then specific implementations for each card. I'd use List<T> to hold each players hand, and a Queue<T> for the deck. | |
Re: [icode]DateTime startTime = new DateTime(2010, 10, 31, 0, 0, 0);[/icode] | |
Re: Nope, you don't have a Thread.Start anywhere in your code. Take a look at this free [URL="http://www.albahari.com/threading/"]ebook[/URL]. | |
Re: Pass the form object to the DLL and have it walk the control structure saving all the control information. You'll have problems with events, though. | |
Re: In your Add method, what do you think this code does, because it doesn't:[code]if ((size - index) == Delta) { shareName = new string[index + Increase_By]; sharePrice = new int[index + Increase_By]; }[/code] If this code ever executes you lose all the information you previously had. | |
![]() | Re: Everyone is going to die so the first part of the rabbit's statement is meaningless. The second part is also meaningless as everyone is going to die. So I shoot the rabbit and have dinner. ![]() |
The End.