2,157 Posted Topics

Member Avatar for illinois

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.

Member Avatar for Momerath
0
191
Member Avatar for Nikhar

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.

Member Avatar for Momerath
0
172
Member Avatar for spunkywacko
Member Avatar for abhinavgoyal02
0
330
Member Avatar for wilen

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.

Member Avatar for Momerath
0
159
Member Avatar for tet3828

Your variable 'isMyFormValid' is an instance variable, meaning that you need to create a Form2 object and access it through that instance.

Member Avatar for tet3828
0
186
Member Avatar for MARKAND911
Member Avatar for MARKONINI

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 …

Member Avatar for Momerath
0
336
Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
0
1K
Member Avatar for ail swati
Member Avatar for ail swati
0
204
Member Avatar for Crima

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 …

Member Avatar for Momerath
0
174
Member Avatar for TIM_M_91

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); }

Member Avatar for TIM_M_91
0
116
Member Avatar for judithSampathwa

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]

Member Avatar for mukund1988
1
3K
Member Avatar for Zaina jee

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 …

Member Avatar for jllany.anthony
0
2K
Member Avatar for anisha.silva

Not sure what you are trying to do. What do you mean by "how do I process the data in sequence again"?

Member Avatar for caKus
0
237
Member Avatar for badboy515

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 …

Member Avatar for ddanbe
0
273
Member Avatar for richjohn.bulante
Member Avatar for anisha.silva

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.

Member Avatar for Momerath
0
136
Member Avatar for nirmaldayal
Member Avatar for getnit

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.

Member Avatar for Momerath
0
110
Member Avatar for salford6129
Member Avatar for Michael27

What about negative numbers, or numbers with decimal points? And what number has a space in it?

Member Avatar for Michael27
2
249
Member Avatar for Momerath

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> …

Member Avatar for f.khansaheb
3
149
Member Avatar for anisha.silva

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.

Member Avatar for anisha.silva
0
84
Member Avatar for kirtee2209

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 :)

Member Avatar for kirtee2209
0
2K
Member Avatar for yibrahim
Member Avatar for Momerath
0
70
Member Avatar for anisha.silva
Member Avatar for anisha.silva
0
108
Member Avatar for Dendei

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 …

Member Avatar for Dendei
0
222
Member Avatar for wallstr33t

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 …

Member Avatar for wallstr33t
0
555
Member Avatar for RobLockett

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.

Member Avatar for Momerath
0
158
Member Avatar for semicolon

[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.

Member Avatar for nmaillet
0
231
Member Avatar for mcmanuel20
Member Avatar for de Source
Member Avatar for silvercats

Console.Write is part the .NET library. Mono is a linux version of the .NET library, so it will work there, too.

Member Avatar for silvercats
0
76
Member Avatar for Majestics

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.

Member Avatar for jinus
0
132
Member Avatar for FUTURECompEng

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?"

Member Avatar for FUTURECompEng
0
299
Member Avatar for xixi.li.7

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 …

Member Avatar for Momerath
0
252
Member Avatar for anisha.silva

Post the code that does the reading and adding to the Queue. Point out the line that is giving the error.

Member Avatar for anisha.silva
0
1K
Member Avatar for anisha.silva

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.

Member Avatar for anisha.silva
0
285
Member Avatar for anisha.silva
Member Avatar for ZER09

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).

Member Avatar for nmaillet
0
271
Member Avatar for king03

You can also go to the text box properties in Visual Studio and set the Text property to "100".

Member Avatar for Momerath
0
80
Member Avatar for king03
Member Avatar for laurachaitow
0
127
Member Avatar for Icemann

We are not a software writing service, what have you done so far? What problems are you having?

Member Avatar for Momerath
0
127
Member Avatar for ImagingMachine

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.

Member Avatar for Momerath
0
539
Member Avatar for harris24

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.

Member Avatar for harris24
0
163
Member Avatar for anisha.silva

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?

Member Avatar for anisha.silva
0
233
Member Avatar for aliyes
Member Avatar for ctrl-alt-del

I don't see a foreach in there, but based on your description it's only going to copy one file at a time.

Member Avatar for ctrl-alt-del
0
243
Member Avatar for reaven

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.

Member Avatar for reaven
0
114
Member Avatar for Dendei

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();

Member Avatar for Dendei
0
100

The End.