You need to specify the type of strSuggestion in this case I assume is string like foreach (string strSuggestion in functionReturnValue) { dblSimilarity = WordSimilarity(strWord, strSuggestion); i = intSuggestionCount; while (dblSimilarity > dblSimilarityArray(i)) { if (i < intSuggestionCount) { strSuggestionArray(i + 1) = strSuggestionArray(i); dblSimilarityArray(i + 1) = dblSimilarityArray(i); }
Leyu
Posts
-
Error -
sorting of a string columnConvert the data type of the column on the fly using convert or cast then reorder the converted column using ORDER BY. Make sure the converted type is integer!
-
To generate a pop up from windows service..You can't! Write to event log...
-
How to extend Math classUse a utility class like this public static class AdvancedMath { //Only if you want to call the method from here //Or rewrite the signature of the methods/properties you want public static decimal Abs(decimal value) { return Math.Abs(value); } //add any additional methods/properties you may have public static double MySpecialMethod(double value) { //do your special processing and return the result } }
-
generate arrayDataTable dt = yourdataset.Tables[0]; List ids = new List(); foreach(DataRow row in dt.Rows) { ids.Add(((int)row[0])); } //Now you have the list of ids from the table.
-
Data Transfer from .Net to VB6 applicationIf the VB 6 app reads data stored in excel format then save the data from the web form with an excel format. Then the VB6 app can show the data given the file. If I see ur problem correctly
-
restrict WindowsForm's sizePlay with the FormBorderStyle property.
-
Difference between String and string?String is .NET CTS type where as string is built in C# datatype which virtually means String just like Int32 struct and int, Bottom line both are the same
-
help...how to highlight buttons in c#?I guess what you want to do is nextButton.Focus(); //this will highlight(input focus) the nextButton
-
How to restart the program after a function?System.Windows.Forms.Application.Restart();
-
C# connection to Lotus Approachgoogle for "NotesSQL301.exe" and use linked servers to get it working !
-
help..any one helpp..!http://msdn2.microsoft.com/en-us/library/ms384775(VS.71).aspx U'll find lots of good stuff in it
-
how do i get datetimepicker for my asp.net2Windows --> Web? Are you Kidding !!!!
-
Excel to database tableCreate the table with the required columns, and then use sql server import data to import your data from excel to the table you created.
-
Project With Source CodeAre u sure that it is *.vsi file the one i have is a zip file. I think you can also find the link in the Wrox web site they have a full book dedicated to this project. google for it "Web Site programming problem design solution"
-
Project With Source CodeYou can see the "beerhouse" project in www.asp.net
-
Highlight an item in a listviewint index = //your index listView1.SelectedIndex = index;
-
a few important questions about forms ?Mehmet Fatih Akbulut wrote:
first, i accidentally changed the ShowInTaskBar property of my form to False and when i noticed that i changed it back to True. but my form is still not seen in TaskBar. it occupies everywhere in monitor ;( how do i make it looks normal ? (same as it did look in the past)
Go the Form's InitializeComponents() method and search for the this.ShowInTaskBar = ??? line. Delete the line and recomile again. U r done.
Mehmet Fatih Akbulut wrote:
i mean i have a few texboxes on form and have a taborder from top to bottom. but i want the cursor be in a specific textbox i want when i start my form
In the designer mode go the View menu and select TabOrder then you can see the tab order of the controls and containers. click on the containers and controls in you preference(Note that only controls supporting the TabStop property and the ones having it set to true can have focus)
Mehmet Fatih Akbulut wrote:
lastly, formwindowstate is maximized and i disable maximizebox (false). but if one double clicks on bluebar at the top, form gets the sizes when it was created. i want to disable double clicking on the bluebar at the top of my form ( so it should never be resized.)
Here I see two options 1 you override the WM_NC??? messages and see what you come up with. 2 Calculate the area on the screen that is used when the form is maximized and set the MinimumSize property to that value. you should also take a look at the system menu commands. For more information there is a nice FAQ at www.windowsforms.com -- modified at 14:14 Thursday 18th May, 2006
-
voice modem and speaker in C#Have you seen the TAPI articles here on code project.
-
UI Design SamplesAre there any good UI design web sites that i can look in to ? especially concerned with business application UI design ? Thanks!