|
http://www.mssqlcity.com/Articles/Adm/attach_database.htm
|
|
|
|
|
sos_amin wrote: what attch or detach in c# ?plz me query sqlserver ?plz example
plz me query attch ,detach
You actually modified this query? I assume it was even more nonsensical in the original - it's not right to use txtspk in the forums, please desist.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
i am having dataset in database file. i want to call a method which will be giving a complete values of dataset.tables. column from database code file to a combox.datasource.
|
|
|
|
|
Take a look at this Walkthrough on MSDN[^], it should give you some ideas.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Kindly suggest the name of book which is cover all the topics and points for making an complete application in C#.net. is their any E.books covering all the topics.
thanks
|
|
|
|
|
amaankhan wrote: all the topics and points
This is broad of a field and subject to be covered in one tome.
only two letters away from being an asset
|
|
|
|
|
how can I check if a user on Facebook is online or offline in order to show a notification to the user?
|
|
|
|
|
|
how can I check if a user on Yahoo Messenger is online or offline in order to show a notification to the user?
|
|
|
|
|
www.imvisible.info...this is website from which u can see and many software are also there.
|
|
|
|
|
how can I find source code in C# 2.0 or ASP.NET?
|
|
|
|
|
|
Thank a lot! I saw two samples, but they used Yahoo API. However, it doesn't check "invisible" YahooID.
|
|
|
|
|
BabyMouse wrote: but they used Yahoo API. However, it doesn't check "invisible" YahooID.
Hi,
Those links dosen't use any yahoo API. to use yahoo API with your application, you
can get more info here http://developer.yahoo.com/[^]
Thanks, Satalaj
|
|
|
|
|
I may be mistaken between Yahoo API and OPI, but host opi.yahoo.com not check "invisible" YahooID.
|
|
|
|
|
how can I check if a user on MSN Messenger is online or offline in order to show a notification to the user?
|
|
|
|
|
|
How can I make a ping to a website or IP address in thread and all in run-time?
|
|
|
|
|
Ping.SendAsync[^] does an asynchronous ping, sounds like that's what you're looking for
|
|
|
|
|
In a comboBox as you move the mouse across the list of items, the item under the mouse is highlighted (without clicking on it). How do you make a list box work the same way? Currently I display a different picture for each item in the listbox as the mouse moves over it, but without it higlighting as I move over it, it is sometimes difficult to tell which item I am drawing for. I have search the internet and several books for this but have not found anything related to this topic.
Gary
|
|
|
|
|
The simplest way to achieve this is to get the index of the item that is below the mouse using the IndexFromPoint and select this item:
private void listTest_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
int index = listTest.IndexFromPoint(e.X, e.Y);
listTest.SelectedIndex = index;
}
Regards
Nuri
|
|
|
|
|
I knew there had to be a simple way to do it, and after seeing this I feel embrassed that I didn't think to try that myself. Thank you very much.
Gary
|
|
|
|
|
Hi. I'm now using the SortedList<TKey, TValue> to sort the strings from the text file. Is it possible to have a single key as the basis for comparing each string? If yes, I want to know how i will prevent the key from duplicating. Can someone help me?
As of now this is what I accomplished:
public static void SortByLastName(ref string[] arrayOfLastNames, ref string[] arrayOfFirstNames, ref string[] arrayOfPlateNum, ref string[] arrayOfType, ref string[] arrayOfYear)
{
Console.Clear();
int vehicleCountInt = 0;
Console.WriteLine("SHOW DATABASE: SORTING BY LAST NAME\n");
using (StreamReader countVehicle = new StreamReader("vehiclecount.txt"))
{
vehicleCountInt = Int32.Parse(countVehicle.ReadLine());
countVehicle.Close();
}
SortedList<string, string> sortedLastName = new SortedList<string, string>(vehicleCountInt);
using (StreamReader outputLastNames = new StreamReader("lastnames.txt"))
{
for (int i = 0; i < vehicleCountInt; i++)
{
arrayOfLastNames[i] = outputLastNames.ReadLine();
string keyVal = arrayOfLastNames[i];
sortedLastName.Add(keyVal, arrayOfLastNames[i]);
if (!sortedLastName.ContainsKey(keyVal))
{
sortedLastName.Add(keyVal, arrayOfLastNames[i]);
}
else
{
sortedLastName.Remove(keyVal);
sortedLastName.Add(keyVal, arrayOfLastNames[i]);
}
Console.WriteLine("{0}", sortedLastName.Keys[i]);
}
outputLastNames.Close();
}
}
modified on Friday, September 4, 2009 11:47 AM
|
|
|
|
|
gamer1127 wrote: sortedLastName.Add(keyVal, arrayOfLastNames[i]); //I'm having a run-time error here that throws the ArgumentException
What information does the debugger show? The ArgumenException implies that one of the arguments to the sortedLastName.Add() call contains an invalid value, quite possibly null.
|
|
|
|
|
It says that an entry with the same key already exists.
|
|
|
|