Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: control label Pin
Martin#20-Jul-06 1:05
Martin#20-Jul-06 1:05 
QuestionRe: control label [modified] Pin
Martin#20-Jul-06 1:08
Martin#20-Jul-06 1:08 
AnswerRe: control label Pin
Christian Graus20-Jul-06 9:20
protectorChristian Graus20-Jul-06 9:20 
GeneralRe: control label Pin
Martin#20-Jul-06 20:17
Martin#20-Jul-06 20:17 
Questionmonitoring running process Pin
Gulfaraz19-Jul-06 21:29
Gulfaraz19-Jul-06 21:29 
AnswerRe: monitoring running process Pin
RizwanSharp19-Jul-06 21:58
RizwanSharp19-Jul-06 21:58 
QuestionSetup Deployment User Interface Problem Pin
ekynox19-Jul-06 21:18
ekynox19-Jul-06 21:18 
QuestionHow can i get the current record..... [modified] Pin
mostafa_h19-Jul-06 20:16
mostafa_h19-Jul-06 20:16 
hi ,
I used a listbox for going to the next or previous record .For the savebutton event , I wrote this :
private void btnSave_Click(object sender, EventArgs e)<br />
 {<br />
   ...<br />
   PopulateListBox1();<br />
 }

and For the PopulateListBox1() Function :
private void PopulateListBox1()<br />
{<br />
...<br />
if (ListBox1.Items.Count > 0)<br />
  {<br />
      ListBox1.SetSelected(ListBox1.Items.Count - 1, true);<br />
  }<br />
...<br />
}<br />

thus , the last record is selected .If I want to select the current record when I press the savebutton , How can I do it ?
thanx

s_mostafa_h

-- modified at 2:17 Thursday 20th July, 2006
AnswerRe: How can i get the current record..... Pin
_AK_19-Jul-06 20:29
_AK_19-Jul-06 20:29 
GeneralRe: How can i get the current record..... Pin
mostafa_h19-Jul-06 20:48
mostafa_h19-Jul-06 20:48 
GeneralRe: How can i get the current record..... Pin
_AK_19-Jul-06 21:09
_AK_19-Jul-06 21:09 
GeneralRe: How can i get the current record..... Pin
mostafa_h19-Jul-06 23:37
mostafa_h19-Jul-06 23:37 
GeneralRe: How can i get the current record..... Pin
_AK_19-Jul-06 23:45
_AK_19-Jul-06 23:45 
GeneralRe: How can i get the current record..... Pin
mostafa_h20-Jul-06 1:43
mostafa_h20-Jul-06 1:43 
GeneralRe: How can i get the current record..... Pin
_AK_20-Jul-06 2:08
_AK_20-Jul-06 2:08 
GeneralRe: How can i get the current record..... Pin
mostafa_h20-Jul-06 6:55
mostafa_h20-Jul-06 6:55 
GeneralRe: How can i get the current record..... Pin
_AK_20-Jul-06 19:20
_AK_20-Jul-06 19:20 
QuestionGenerate a list with windows accounts Pin
Goerlandt19-Jul-06 20:06
Goerlandt19-Jul-06 20:06 
AnswerRe: Generate a list with windows accounts Pin
Ed.Poore19-Jul-06 22:30
Ed.Poore19-Jul-06 22:30 
GeneralRe: Generate a list with windows accounts Pin
Goerlandt19-Jul-06 22:55
Goerlandt19-Jul-06 22:55 
GeneralRe: Generate a list with windows accounts Pin
Ed.Poore20-Jul-06 12:53
Ed.Poore20-Jul-06 12:53 
QuestionPop up menu in combobox Pin
AnnnS19-Jul-06 19:58
AnnnS19-Jul-06 19:58 
AnswerRe: Pop up menu in combobox Pin
Paul Conrad19-Jul-06 20:02
professionalPaul Conrad19-Jul-06 20:02 
GeneralRe: Pop up menu in combobox Pin
AnnnS19-Jul-06 20:10
AnnnS19-Jul-06 20:10 
GeneralRe: Pop up menu in combobox Pin
Paul Conrad19-Jul-06 20:31
professionalPaul Conrad19-Jul-06 20:31 

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.