Click here to Skip to main content
15,900,110 members
Home / Discussions / Mobile
   

Mobile

 
QuestionGetIdleTime windows mobile 6 Pin
forwheeler214-Oct-09 3:39
forwheeler214-Oct-09 3:39 
Questionhow i can print from ppc (windows mobile) to usb printer ? Pin
E_Gold13-Oct-09 1:11
E_Gold13-Oct-09 1:11 
AnswerRe: how i can print from ppc (windows mobile) to usb printer ? Pin
Joel Ivory Johnson8-Nov-09 3:01
professionalJoel Ivory Johnson8-Nov-09 3:01 
QuestionMaking a program act the same way when a phone call is received? Pin
Ayman Alterawi12-Oct-09 22:16
Ayman Alterawi12-Oct-09 22:16 
Questionhow to use atlhttp in the atl based activex control project? Pin
cnflat11-Oct-09 22:31
cnflat11-Oct-09 22:31 
QuestionVS 2008 for mobile - first steps - how to test with data from local pc Pin
juergjakob11-Oct-09 22:25
juergjakob11-Oct-09 22:25 
AnswerRe: VS 2008 for mobile - first steps - how to test with data from local pc Pin
Joel Ivory Johnson8-Nov-09 3:00
professionalJoel Ivory Johnson8-Nov-09 3:00 
QuestionUsing Listbox. Pin
renoma11-Oct-09 17:28
renoma11-Oct-09 17:28 
Hi..

I have a question to ask. How would i actually remove a selected item from a listbox into a database. I have created these codes for my form but it says invalid operation although the selected item does actually inserted into the database. Also, I am using foreach statement to get the selected item but if there is multiple text inside the listbox. the selected item being inserted into my database would have been doubled..

private void btnSave_Click(object sender, EventArgs e)
{

SqlCeConnection listConn = new SqlCeConnection("Data Source = \\My Documents\\ContactsDB.sdf");
try
{
listConn.Open();//--open conection--

if (listosend.SelectedItem == null)
{
MessageBox.Show("No Item Selected");
}
else

foreach (string item in listosend.Items)
{

SqlCeCommand insertCommand = listConn.CreateCommand();
SqlCeCommand insertCommand2 = listConn.CreateCommand();
System.Diagnostics.Trace.WriteLine("List Box : " + listosend.Text);
//listosend.Items.Remove(listosend.SelectedItem.ToString();
insertCommand.CommandText = "Insert into Orders(OrderDate, Food) VALUES ( '" + txtDate.Text + "','" + item + "')";
insertCommand.ExecuteNonQuery();
insertCommand2.CommandText = "Insert into Customers (PhoneNo) VALUES ('" + txtFrm.Text + "')";
insertCommand2.ExecuteNonQuery();

listosend.Items.Remove(item);
}
listConn.Close();//--close connection--
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
QuestionWindows Mobile "Service like" App. Pin
jakeshelm10-Oct-09 12:09
jakeshelm10-Oct-09 12:09 
AnswerRe: Windows Mobile "Service like" App. Pin
Joel Ivory Johnson8-Nov-09 2:56
professionalJoel Ivory Johnson8-Nov-09 2:56 
QuestionMigration of a CE 5.0 product to Windows Mobile 6.5 Pin
Noushad Ali8-Oct-09 19:30
Noushad Ali8-Oct-09 19:30 
QuestionKeyboard hook doesn't work with Windows Media Player? Pin
ponchofiesta8-Oct-09 1:53
ponchofiesta8-Oct-09 1:53 
Questionhow to download makeCF utility Pin
pri_skit6-Oct-09 3:16
pri_skit6-Oct-09 3:16 
AnswerRe: how to download makeCF utility Pin
Richard MacCutchan6-Oct-09 4:36
mveRichard MacCutchan6-Oct-09 4:36 
GeneralRe: how to download makeCF utility Pin
pri_skit6-Oct-09 5:00
pri_skit6-Oct-09 5:00 
GeneralRe: how to download makeCF utility Pin
Richard MacCutchan6-Oct-09 5:10
mveRichard MacCutchan6-Oct-09 5:10 
QuestionNokia WRT Plug-in 2.2 for Aptana Studio Pin
mobogeek5-Oct-09 19:12
mobogeek5-Oct-09 19:12 
AnswerRe: Nokia WRT Plug-in 2.2 for Aptana Studio Pin
Nathan Campos10-Oct-09 1:45
Nathan Campos10-Oct-09 1:45 
QuestionActive scan on a WiFi NIC, including flush of old scan results - how ? Pin
amitalonm4-Oct-09 3:14
amitalonm4-Oct-09 3:14 
QuestionReading data from and from phone and PC Pin
Member 8859723-Oct-09 3:19
Member 8859723-Oct-09 3:19 
Question[Message Deleted] Pin
hande543-Oct-09 2:06
hande543-Oct-09 2:06 
AnswerRe: get the data with PDA through usb connection Pin
annathor7-Oct-09 23:03
annathor7-Oct-09 23:03 
QuestionLanguage/Framework choice for Windows Mobile app Pin
nativebyte2-Oct-09 0:33
nativebyte2-Oct-09 0:33 
AnswerRe: Language/Framework choice for Windows Mobile app Pin
Joel Ivory Johnson2-Oct-09 1:38
professionalJoel Ivory Johnson2-Oct-09 1:38 
GeneralRe: Language/Framework choice for Windows Mobile app Pin
nativebyte2-Oct-09 2:06
nativebyte2-Oct-09 2:06 

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.