No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Re: [code=C++] #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> int opcio1(); int opcio2(); int opcio3(); int main() { char sel; for (;;) { cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. Play!\n\n"<<endl; cout <<"4. Exit\n\n"<<endl; cout <<"Select an option, please..."<<endl; cin >> sel; if (sel<'1' || sel>'4')&&sel!=27); //esc=ASCII 27 { … | |
I used the following code to perform this operation in VS 2005: [code=C++] if (listView1->SelectedItems->Count > 0) { listView1->Items->RemoveAt (listView1->SelectedIndices [0]); numericUpDown1->Value -= 1; } [/code] However, I need a program to compile in VS 2003 in order for it to run on a school computer. Therefore, I inputted the … | |
I was trying to delete the currently selected listview item using MFC methods, but obviously they werent compatible How can I accomplish this in VS 2005 (standard .NET windows forms NOT MFC? I have tried [code=C++] void CMyListView::DeleteSelectedRow() { int nIndex = GetListCtrl().GetSelectionMark(); if(nIndex != -1) { GetListCtrl().DeleteItem(nIndex); } } … |
The End.