Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView / DataGrid help needed Pin
BambooMoon18-Feb-06 9:51
BambooMoon18-Feb-06 9:51 
Questionface detection Pin
haytham_mohammad18-Feb-06 9:19
haytham_mohammad18-Feb-06 9:19 
AnswerRe: face detection Pin
Colin Angus Mackay18-Feb-06 13:40
Colin Angus Mackay18-Feb-06 13:40 
GeneralRe: face detection Pin
haytham_mohammad18-Feb-06 13:49
haytham_mohammad18-Feb-06 13:49 
GeneralRe: face detection Pin
Colin Angus Mackay18-Feb-06 13:52
Colin Angus Mackay18-Feb-06 13:52 
QuestionCurrent Item in ListBox Pin
mostafa_h18-Feb-06 8:17
mostafa_h18-Feb-06 8:17 
GeneralRe: Current Item in ListBox Pin
Koushik Biswas18-Feb-06 13:15
Koushik Biswas18-Feb-06 13:15 
GeneralRe: Current Item in ListBox Pin
mostafa_h19-Feb-06 4:37
mostafa_h19-Feb-06 4:37 
Cool | :cool:
you are right , my ask is incomplete !
in my app. , I want to save my record (with a sql table ),also I use A listBox for navigate between Records :
private void PopulateListBox1()<br />
{<br />
.....<br />
try <br />
{<br />
//Build Select statement to query names from the MyTable<br />
strSQL = "SELECT name,id FROM MyTable";<br />
....<br />
while (myDataReader.Read())<br />
{<br />
objListItem = new ListItem(myDataReader["name"].ToString(),<br />
Convert.ToInt32(myDataReader["id"]));<br />
ListBox1.Items.Add(objListItem);<br />
}<br />
if (ListBox1.Items.Count > 0)<br />
{<br />
ListBox1.SetSelected(ListBox1.Items.Count-1,true);}....<br />

And in For Save I use the "PopulateListBox1() Function " :
private void UpdateInfo()<br />
{....<br />
try{<br />
strSQL ="update MyTable......";<br />
.....<br />
PopulateListBox1();<br />
....}<br />

So , when I want to save a Record , immediatly the LastRecord is selected .
(ofcourse my Record is saved).
thanks !

s_mostafa_h

-- modified at 10:41 Sunday 19th February, 2006
QuestionMDI Client Window Pin
Kamrul Hasan18-Feb-06 8:03
Kamrul Hasan18-Feb-06 8:03 
QuestionHow do I: Show one applications graphical output inside another application? Pin
Red_Wizard_Shot_The_Food18-Feb-06 7:59
Red_Wizard_Shot_The_Food18-Feb-06 7:59 
AnswerRe: How do I: Show one applications graphical output inside another application? Pin
S. Senthil Kumar18-Feb-06 8:13
S. Senthil Kumar18-Feb-06 8:13 
GeneralRe: How do I: Show one applications graphical output inside another application? Pin
Red_Wizard_Shot_The_Food18-Feb-06 8:16
Red_Wizard_Shot_The_Food18-Feb-06 8:16 
AnswerRe: How do I: Show one applications graphical output inside another application? Pin
BambooMoon18-Feb-06 11:22
BambooMoon18-Feb-06 11:22 
AnswerRe: How do I: Show one applications graphical output inside another application? Pin
Dave Kreskowiak19-Feb-06 7:59
mveDave Kreskowiak19-Feb-06 7:59 
Questionimporting pictures Pin
Vineet Rajan18-Feb-06 6:42
Vineet Rajan18-Feb-06 6:42 
AnswerRe: importing pictures Pin
Colin Angus Mackay18-Feb-06 13:44
Colin Angus Mackay18-Feb-06 13:44 
Questionimporting media Pin
Vineet Rajan18-Feb-06 6:39
Vineet Rajan18-Feb-06 6:39 
QuestionASync Callbacks Server->Client Pin
FreeClimber18-Feb-06 5:43
FreeClimber18-Feb-06 5:43 
AnswerRe: ASync Callbacks Server->Client Pin
S. Senthil Kumar18-Feb-06 8:16
S. Senthil Kumar18-Feb-06 8:16 
QuestionMessage Removed Pin
18-Feb-06 4:58
Kasic Slobodan18-Feb-06 4:58 
Questiondigit event not fired in dotnet using tapi 3 Pin
zubairy18-Feb-06 1:13
zubairy18-Feb-06 1:13 
Questioninput array in ASP.net C# Pin
Suman Singh18-Feb-06 0:48
professionalSuman Singh18-Feb-06 0:48 
GeneralRe: input array in ASP.net C# Pin
Guffa18-Feb-06 1:15
Guffa18-Feb-06 1:15 
AnswerRe: input array in ASP.net C# Pin
Koushik Biswas18-Feb-06 13:06
Koushik Biswas18-Feb-06 13:06 
Questionhow to use progressbar for long operation in Winform Application ? Pin
hdv21218-Feb-06 0:16
hdv21218-Feb-06 0: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.