Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
AnswerRe: CRC error control Pin
Eddy Vluggen5-May-10 1:00
professionalEddy Vluggen5-May-10 1:00 
QuestionI have a little problem with my application. Pin
Alex Manolescu4-May-10 21:41
Alex Manolescu4-May-10 21:41 
AnswerRe: I have a little problem with my application. Pin
OriginalGriff4-May-10 22:14
mveOriginalGriff4-May-10 22:14 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu4-May-10 22:37
Alex Manolescu4-May-10 22:37 
GeneralRe: I have a little problem with my application. Pin
OriginalGriff4-May-10 22:58
mveOriginalGriff4-May-10 22:58 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu4-May-10 23:07
Alex Manolescu4-May-10 23:07 
GeneralRe: I have a little problem with my application. Pin
Som Shekhar4-May-10 22:40
Som Shekhar4-May-10 22:40 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu5-May-10 9:14
Alex Manolescu5-May-10 9:14 
GeneralRe: I have a little problem with my application. Pin
Som Shekhar5-May-10 9:16
Som Shekhar5-May-10 9:16 
Questionread and write in file Pin
tek 20094-May-10 21:36
tek 20094-May-10 21:36 
AnswerRe: read and write in file Pin
Abhinav S4-May-10 22:19
Abhinav S4-May-10 22:19 
QuestionRe: read and write in file Pin
tek 20094-May-10 22:38
tek 20094-May-10 22:38 
AnswerRe: read and write in file Pin
Abhinav S4-May-10 23:29
Abhinav S4-May-10 23:29 
AnswerRe: read and write in file Pin
riced5-May-10 0:11
riced5-May-10 0:11 
GeneralRe: read and write in file Pin
tek 20095-May-10 3:49
tek 20095-May-10 3:49 
QuestionNeed help in regex replace method. Pin
Rohit16db4-May-10 21:15
Rohit16db4-May-10 21:15 
AnswerRe: Need help in regex replace method. Pin
OriginalGriff4-May-10 22:39
mveOriginalGriff4-May-10 22:39 
GeneralRe: Need help in regex replace method. Pin
Rohit16db5-May-10 1:40
Rohit16db5-May-10 1:40 
GeneralRe: Need help in regex replace method. Pin
OriginalGriff5-May-10 3:54
mveOriginalGriff5-May-10 3:54 
QuestionHow to retrive message list from p2p Pin
Saiyed Alam4-May-10 20:56
Saiyed Alam4-May-10 20:56 
QuestionListBox Controls Pin
Illegal Operation4-May-10 20:22
Illegal Operation4-May-10 20:22 
AnswerRe: ListBox Controls [modified] Pin
Dan Mos4-May-10 20:43
Dan Mos4-May-10 20:43 
ListBox has a property named SelectedItems. Use it to get the selected itmes in listbox1
and add them to listbox2. As for adding them to SQL either use stored procs or querys but try to
use parameters.

Something like this silly example to copy the items from one lst to another:
listBox2.BeginUpdate();
listBox2.Items.Clear();
foreach (var item in listBox1.SelectedItems)
{
    listBox2.Items.Add(item);
}
listBox2.EndUpdate();


pseudo only kind of(for SQL table):

SQLConnection con = new SqlCommand(ConnStringHere);

SQLCommand cmd = new SqlCommand();
cmd.Conection = con;
cmd.CommandText = "Inserto Into TblName(ColName1, ColName2) Values(@paramName1, @paramName2)"

cmd.Parameters.AddWithValue("@paramName", paramValue);
//add all the params needed
.
.
.

//open the con and execute the command

Just an irritated, ranting son of ... an IT guy.
At your trolling services

modified on Wednesday, May 5, 2010 2:50 AM

AnswerRe: ListBox Controls Pin
Henry Minute5-May-10 2:56
Henry Minute5-May-10 2:56 
QuestionAdd column to excel Pin
yadlaprasad4-May-10 20:03
yadlaprasad4-May-10 20:03 
AnswerRe: Add column to excel Pin
Dan Mos4-May-10 20:16
Dan Mos4-May-10 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.