2,157 Posted Topics
Re: This can be done in C#, but the level of effort needed is in the range where I get paid. I suggest you hire someone to do this for you. | |
Re: Triangular inequality doesn't have to hold for a graph, nor for the TSP problem. Consider a situation where the route from AD is not direct, but wanders around the countryside. | |
Re: It's there on mine, under the Microsoft Visual Studio 2008 -> Visual Studio Tools | |
Re: Running your project inside Visual Studio in debug mode will not update your original database. This is so you can test things without changing things. Run the release version outside Visual Studio. | |
Re: Your variable 'isMyFormValid' is an instance variable, meaning that you need to create a Form2 object and access it through that instance. | |
Re: There are a lot of HTML editors (even Visual Studio does HTML editing). The second one is normally refered to as natural language processing. It's a complex subject but you should be able to get something working in the time frame you've mentioned. I'd start with diagraming sentences (what parts … | |
Re: Lines 36 and 38 should be reversed, attach handlers before calling the methods that will raise the event. You have a method with the same name as a class, this is usually frowned on. WebBrowser.Navigate is an asynchronous method, you shouldn't need to call DoEvents() at all. You should be … | |
Re: You don't have permissions to write to the windows directory, and it's bad form anyway. | |
Re: Between lines 144 and 145 you should test if the robot is still in the range, if not, then don't change the location property. And I don't see anything obviously wrong with the move code. Put a breakpoint in the Go10_Click event and see if it is making it into … | |
Re: Just call them like you would do any other method protected void Button1_Click(object sender, EventArgs e) { LinkButton1_Click(sender, e); LinkButton2_Click(sender, e); LinkButton3_Click(sender, e); } | |
Re: It means you don't have a variable named 'excelWorksheet' that is in [URL="http://msdn.microsoft.com/en-us/library/aa691132%28VS.71%29.aspx"]scope[/URL] | |
![]() | Re: Psuedo codeish: Get four numbers: a, b, c, d if a is greater than b, swap a and b if b is greater than c, swap b and c if c is greater than d, swap c and d if a is greater than b, swap a and b if … |
Re: Not sure what you are trying to do. What do you mean by "how do I process the data in sequence again"? | |
Re: There is no method 'getHSBColor' on the Color structure, so you'll get an error there. And you have no variable named 'color' in that method, so again an error. Next time give the exact error you get (copy/paste from visual studio) and the lines that give it. Posting this much … | |
Re: Just set the ID field in the database to autonumber. | |
Re: Not sure what you mean. When you call uc.getData(a) it processes that method then returns control back to the calling code. The break statement right after that ends the while loop. | |
Re: Sure can, just store the data in the users app directory. Check out [this](http://www.daniweb.com/software-development/csharp/code/350113/application-data-files) for how to find the App directory. | |
Re: Sounds to me like you need a new book :) | |
Re: What about negative numbers, or numbers with decimal points? And what number has a space in it? | |
Below you'll find a small program. The challenge is to predict the output of the program, then explain why it gave the output it did. using System; using System.Collections.Generic; namespace Sample { class Program { static void Main(string[] args) { MyStruct a; a.a = 1; a.b = 2; Dictionary<MyStruct, int> … | |
Re: You shouldn't be accessing inner elements of a class except through methods of the class. Create a method to return the information you need. | |
Re: Memory isn't release immediately (though it may be). The garbage collector runs when it thinks it should. But yes, using Dispose is what you do on objects that maintain non-managed resources. If your form crashes when you try to open it again, that's a coding issue on your part :) | |
Re: Search google, lots of papers about it, some you have to pay for. | |
Re: You need to explain a lot more what you are trying to do. | |
Re: You can only return one item from a method, so if you have multiple items to return, you'll need to combine them in a struct or class. I'm not sure what you think you are passing into this method. Maybe it would be better for you to tell us what … | |
Re: I'm not sure why you are concerned about using Cell.Value, since you are using Cell.Value (it's in the first line of your block of code). And you use the expensive Convert.ToString instead of using the objects ToString method. And if you want data formated a specific way, use format specifiers … | |
Re: Create an IReportData and an IReportGenerator. Use factory to get proper instance of IReportGenerator, and pass proper instance of IReportData to the IReportGenerator you just got. | |
Re: [UnRAR.dll](http://www.rarlab.com/rar_add.htm) is a free of charge dynamic-link library (DLL) that can be downloaded from the official WinRAR site. | |
Re: Console.Write is part the .NET library. Mono is a linux version of the .NET library, so it will work there, too. | |
Re: There are some software products that claim to do this for you. I've never tried them as I'm not spending hundreds to avoid something that you don't need to avoid. No, there is no easy way to do this. | |
Re: I'd look at it and say to myself "Hmm, starts with looking for the degenerate case of only 1 element, then if there are more partitions it into two parts, then recursively calls itself on these parts. What other well know algorithm does this and what's its Big O?" | |
Re: 1) IsStraight will never return true because in line 85 you compare it with itself and it won't be 1 rank more than itself. You can fix this method by adding one keyword to it. It will also never detect a royal straight. 2) In your override of ToString() you … | |
Re: Post the code that does the reading and adding to the Queue. Point out the line that is giving the error. | |
Re: You can use the [Thread.IsAlive](http://msdn.microsoft.com/en-us/library/system.threading.thread.isalive.aspx) property, or the [Thread.ThreadState](http://msdn.microsoft.com/en-us/library/system.threading.thread.threadstate.aspx) property, your choice. | |
Re: C# doesn't work that way. 'using' imports namespaces so that you don't have to type the full class name to get access to the class. All methods belong to a class and you either reference them through the class (static methods) or an instance of the class (non-static methods). | |
Re: You can also go to the text box properties in Visual Studio and set the Text property to "100". | |
Re: change line 11 to prizeTextbox.Text = h.ToString(); and delete line 7. | |
Re: We are not a software writing service, what have you done so far? What problems are you having? | |
Re: One thing you can do is parallelize this method. Since no values depend on any other values I'd parallelize at the 'y' index level. You can also use shifting (which is generally faster than multiplication) since you are multiplying by two. | |
Re: This is a problem: ConnectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User Instance=True" This is not a valid connection string. The |DataDirectory| needs to be replaced with the path to the database directory. | |
Re: The [ParameterizedThreadStart](http://msdn.microsoft.com/en-us/library/system.threading.parameterizedthreadstart%28v=vs.100%29.aspx) delegate requires a method that returns void, and in your case, the method does not return void. You'll need to rethink your logic. Think about it, where would the returned value go? | |
Re: I don't see a foreach in there, but based on your description it's only going to copy one file at a time. | |
Re: Store the information in a database (date to remove permisions, folder to change) and run the task (task scheduler) once a day. Look for the current date and change permissions. | |
Re: Since SkapaKort is not a static method, you'll need to create an object of type BlackJack then call the method through that object, i.e. BlackJack myObject = new BlackJack(); myObject.SkapaKort(); |
The End.