2,157 Posted Topics

Member Avatar for king03

Running the program in Visual Studio will make it stop executing at the breakpoint(s). F9 sets/unsets a breakpoint, F5 runs, F10/F11 run single lines with one going into any function calls. GetType is used to get the type (class) of the object. In this case, they are using GetType().Name to …

Member Avatar for ChrisHunter
0
296
Member Avatar for crankyslap

You'll be fine. The first example is dealing with capture variables and threads. The second example doesn't deal with threads at all.

Member Avatar for skatamatic
0
381
Member Avatar for bhagawatshinde
Member Avatar for mnewsome

First error is telling you that Form2.cs isn't part of the project. I don't see it in the solution box so I'd say it's right. Second error was covered above. We can't tell you exactly what the problem was because you don't show us the lines where the errors occur.

Member Avatar for Momerath
0
167
Member Avatar for Webbsta

To answer your question, no it isn't possible to send data too fast. And it sounds like the problem is on the receiving end, if you are getting a "remote party closed connection" error.

Member Avatar for Momerath
0
342
Member Avatar for Cap'nKirk

A combobox with 16.7 million entries would be useless. 3 numeric up/down controls would be much better. If you *have* to use a combobox, could you explain why?

Member Avatar for Cap'nKirk
0
125
Member Avatar for IT_Techno
Member Avatar for mnewsome
Member Avatar for Momerath
0
179
Member Avatar for Marco25Me

No, it's not possible. You can always ignore the members you don't want to use

Member Avatar for TrustyTony
0
95
Member Avatar for Rimmi90
Member Avatar for Rimmi90
0
293
Member Avatar for Rimmi90

It's possible to exit your method without returning a string, you need to reutnr one in the finally clause and you shouldn't return one in the catch clause (since the finally clause will being doing that).

Member Avatar for Mitja Bonca
0
246
Member Avatar for king03

When you log in the second time where you have a schedule, you are looking for the class (as an example) "Art101-1", but the key for the actual class is "Art101 - 1" (notice the spaces). You need to be consistent in how you deal with the keys. Either make …

Member Avatar for james6754
0
334
Member Avatar for SummerNight
Member Avatar for SummerNight
0
190
Member Avatar for Webbsta

I suspect your problem is in ReadHash. While you check if there is data, you don't check if there is enough data. You should make sure there are 4 bytes available for reading before you attempt to read 4 bytes.

Member Avatar for Webbsta
0
296
Member Avatar for androtheos

That's really hard to read, why all the spaces between letters and the odd font? Now, what's the actual exception thrown, what's the code that threw it?

Member Avatar for Momerath
0
294
Member Avatar for loserspearl

I'd so something like this for the problems private enum OPERATOR { Add, Sub, Mul, Div, LAST } public class MathProblem { private static Random rand = new Random(); private int operandx; private int operandy; private OPERATOR op; private int answer public MathProblem(int min, int max) { operandx = MathProblem.rand.Next(min, …

Member Avatar for loserspearl
0
197
Member Avatar for mnewsome

You haven't expanded the designer code, why would you expect to see the designer code? Click the plus just like it told you to do.

Member Avatar for Momerath
0
284
Member Avatar for suneye

> but the sql saves the datetime as 6-9-2012 so how to convert my parameter into the desired format No it doesn't save it in that format, it displays it in that format. Internally SQL Server is saving the date/time as a very large number representing seconds since the epoch …

Member Avatar for Momerath
0
154
Member Avatar for james6754
Member Avatar for codechrysalis
Member Avatar for Ari5555

This works fine for me using Win 7 64-bit. It has a slightly different structure definition than what you use: [DllImport("shell32.dll", CharSet = CharSet.Auto)] static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo); [StructLayout(LayoutKind.Sequential)] public struct SHELLEXECUTEINFO { public int cbSize; public uint fMask; public IntPtr hwnd; [MarshalAs(UnmanagedType.LPTStr)] public string lpVerb; [MarshalAs(UnmanagedType.LPTStr)] public …

Member Avatar for Ari5555
0
405
Member Avatar for neoseeker191
Member Avatar for muthukumar46

This is not a code writing service. You write the code and if (when) you have a specific problem post what the problem is, the code that is causing it, the input that causes it, etc. and we'll see what we can help you with.

Member Avatar for Mitja Bonca
0
138
Member Avatar for mrki

You create a connection object (SqlConnection) but you don't attach it to the SqlDataAdapter. You need to use [URL="http://msdn.microsoft.com/en-us/library/kx703tc9.aspx"]this[/URL] constructor for the SqlDataAdapter.

Member Avatar for Momerath
0
2K
Member Avatar for JellybeanFB

> WHERE NOT EXISTS (SELECT 1 FROM prices P WHERE P.Avg = T.Avg AND P.Colour = T.Colour) This part of the insert statement says if the average *or* the color aren't the same, insert a record. In your comments you say "if I change the average or color then a …

Member Avatar for taskman
0
186
Member Avatar for panpwintlay

Could you not reply to threads that are over a year old? If this doesn't help you, start a new thread.

Member Avatar for Momerath
-1
1K
Member Avatar for Erwin_Rosyid

Since we don't have the actual forms it's hard to tell what the problem is.

Member Avatar for Erwin_Rosyid
0
329
Member Avatar for bhagawatshinde

You should look at [Windows Presentation Foundation (WPF)](http://msdn.microsoft.com/en-us/library/ms754130.aspx)

Member Avatar for bhagawatshinde
0
78
Member Avatar for lxXTaCoXxl

> QuadraticFomula crashes if a is zero, It's not a quadratic equation if a is zero :) I do agree, though, that some error checking needs to be included.

Member Avatar for skatamatic
0
159
Member Avatar for mujtabaaain

This isn't a software writing service. What have you done so far? What problems or errors are you getting?

Member Avatar for skatamatic
0
358
Member Avatar for suneye
Member Avatar for saw89
Member Avatar for nhungk32
0
167
Member Avatar for nanba

In line 15 you create an object of type Object to hold the returned value from your sql statement. In Line 21 you call ToString(). Since it is of type Object, the value of ToString() will always be "System.Object". This doesn't match "Administrator" so you get the default User.aspx. If …

Member Avatar for hirenpatel53
0
179
Member Avatar for coder389

> var result_1st50 = text.Split(' ').Select(s=>s.Lenght).Take(50).ToList() This will return a list of the lengths of the words, not a list of the words. Remove the Select statement `List<String> result_1st50 = text.Split(' ').Take(50).ToList();`

Member Avatar for Mitja Bonca
0
200
Member Avatar for bhagawatshinde

Are you using a HashTable or a Dictionary? And by their nature, both HashTable and Dictionary are not sorted and don't care what order you enter them. So you need to get the keys, sort them, then get the values for those keys. Or you could use SortedDictionary.

Member Avatar for bhagawatshinde
0
3K
Member Avatar for fishstick
Member Avatar for ironman99
Member Avatar for tbanisida
Member Avatar for Momerath
0
185
Member Avatar for geeerald1131

Create your form, put a textbox, a label and a button on it. Put the conversion code inside the 'click' event of the button. Use the value from the textbox rather than from ReadLine(). Put the result in the label.

Member Avatar for Mitja Bonca
0
202
Member Avatar for spowel4

By providing an [IComparer](http://msdn.microsoft.com/en-us/library/aw9s5t8f.aspx)

Member Avatar for Mitja Bonca
0
1K
Member Avatar for coder389

Use [Regex.Match(String, Int32) ](http://msdn.microsoft.com/en-us/library/3583dcyh)to start at a specific point in your string. Since you have the set of firstWords, you know how long they are and where to start the next search.

Member Avatar for Momerath
0
144
Member Avatar for agibus

This is not a software writing service. What have you done? What problems or errors are you getting? Have you bothered to get a book on C# to learn it (since every book I've read explains how to do this very thing)?

Member Avatar for Momerath
0
40
Member Avatar for bleedi

If you number the verticies clockwise around each square (starting with the upper left one), you'd get (staring with 1): Front square 1 2 3 4 Middle square 5 6 7 8 Back square 9 10 11 12 Now the triangles are 1 2 6 2 3 7 3 4 …

Member Avatar for Momerath
0
252
Member Avatar for strRusty_gal

They are using Activator.GetObject to create an object of type IExtranetAccess, the description of which is at "tcp://"+strIPAddress+":"+strPort+"/ExtranetAccessService". Since Activator.GetObject returns an Object, they cast it into an IExtranetAccess object and assign it to _objExtAccess

Member Avatar for strRusty_gal
0
115
Member Avatar for dvongrad

You need to provide an update command to the adapter. You have to provide the select as that is the most common use, to display data. [SqlDataAdapter.Update](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx)

Member Avatar for dvongrad
0
218
Member Avatar for vinayphadke

Not sure why you are getting what you say you are getting, but your method is overly complicated. This works: int index = tempInput.IndexOf(' '); index = tempInput.IndexOf(' ', index + 1); String stroutput = tempInput.Substring(0, index) + tempInput.Substring(index).Replace(' ', '|'); And since the date/time is in a specific format, …

Member Avatar for gnath
0
265
Member Avatar for zachattack05

I'd just disable it (removing is a bad idea in my opinion, as the user might be looking for that option and believe they are in the wrong place and go hunting for it, wasting their time and making them dislike your software). Most users realize that a disabled option …

Member Avatar for zachattack05
0
194
Member Avatar for lxXTaCoXxl

Couple things you could do to speed this up: You don't need to save all the values then find the largest, just keep track of the current largest as you calculate the values. You convert every character to an int multiple times, see if you can figure out how to …

Member Avatar for Momerath
0
171
Member Avatar for Aleff7

Are you trying to adjust the size of a console program's window? You can use the [Console](http://msdn.microsoft.com/en-us/library/system.console.aspx) object and set all the properties

Member Avatar for Aleff7
0
172
Member Avatar for kendaop

Can you post the constructor that is being called (NeuralNet(double[][][], Function[][]))? I'd also like to see what NEURONS_PER_LAYER is defined as and the values it contains, along with numInputs

Member Avatar for kendaop
0
325

The End.