Click here to Skip to main content
15,920,030 members
Home / Discussions / C#
   

C#

 
GeneralCustom Panel Pin
ernst wolthaus21-Jan-04 4:24
ernst wolthaus21-Jan-04 4:24 
GeneralRe: Custom Panel Pin
Mazdak21-Jan-04 4:46
Mazdak21-Jan-04 4:46 
GeneralRe: Custom Panel Pin
ernst wolthaus21-Jan-04 7:46
ernst wolthaus21-Jan-04 7:46 
GeneralRe: Custom Panel Pin
Heath Stewart21-Jan-04 5:34
protectorHeath Stewart21-Jan-04 5:34 
GeneralRe: Custom Panel Pin
Jose Fco Bonnin21-Jan-04 5:52
Jose Fco Bonnin21-Jan-04 5:52 
GeneralRe: Custom Panel THANKS! Pin
ernst wolthaus21-Jan-04 7:42
ernst wolthaus21-Jan-04 7:42 
GeneralChange listbox item index Pin
hazzem elrefai20-Jan-04 21:11
hazzem elrefai20-Jan-04 21:11 
GeneralRe: Change listbox item index Pin
hazzem elrefai20-Jan-04 21:35
hazzem elrefai20-Jan-04 21:35 
Thank u
I did it my self
and here is the code

private void btn_up_Click(object sender, System.EventArgs e)
{
if(this.lb_target.SelectedIndex != -1)
{
if (this.lb_target.SelectedIndex != 0)
{
object tempob=this.lb_target.SelectedItem;
int index=this.lb_target.SelectedIndex;
this.lb_target.Items.Remove(this.lb_target.SelectedItem);
this.lb_target.Items.Insert(index-1,tempob);
this.lb_target.SelectedIndex=index-1;
}
}

}
private void btn_down_Click(object sender, System.EventArgs e)
{
if(this.lb_target.SelectedIndex < this.lb_target.Items.Count-1)
{
object tempob=this.lb_target.SelectedItem;
int index=this.lb_target.SelectedIndex;
this.lb_target.Items.Remove(this.lb_target.SelectedItem);
this.lb_target.Items.Insert(index+1,tempob);
this.lb_target.SelectedIndex=index+1;
}
}
Questionhow to make fullscreen game animation ? Pin
tonaxxl20-Jan-04 20:57
tonaxxl20-Jan-04 20:57 
AnswerRe: how to make fullscreen game animation ? Pin
Mazdak20-Jan-04 22:05
Mazdak20-Jan-04 22:05 
AnswerRe: how to make fullscreen game animation ? Pin
Hauptman(n)21-Jan-04 3:43
Hauptman(n)21-Jan-04 3:43 
QuestionStart Calculator and active it again? Pin
god4k20-Jan-04 18:57
god4k20-Jan-04 18:57 
AnswerRe: Start Calculator and active it again? Pin
Kannan Kalyanaraman20-Jan-04 20:05
Kannan Kalyanaraman20-Jan-04 20:05 
GeneralToolbar button images disappear at runtime Pin
Jason Liu20-Jan-04 13:34
Jason Liu20-Jan-04 13:34 
GeneralRe: Toolbar button images disappear at runtime Pin
Anders Molin20-Jan-04 15:20
professionalAnders Molin20-Jan-04 15:20 
GeneralRe: Toolbar button images disappear at runtime Pin
Jason Liu20-Jan-04 15:51
Jason Liu20-Jan-04 15:51 
GeneralRe: Toolbar button images disappear at runtime Pin
Anders Molin20-Jan-04 15:54
professionalAnders Molin20-Jan-04 15:54 
GeneralRe: Toolbar button images disappear at runtime Pin
Jason Liu20-Jan-04 21:55
Jason Liu20-Jan-04 21:55 
QuestionHow to insert a tab into the label text? Pin
Jason Liu20-Jan-04 13:30
Jason Liu20-Jan-04 13:30 
AnswerRe: How to insert a tab into the label text? Pin
Heath Stewart21-Jan-04 4:45
protectorHeath Stewart21-Jan-04 4:45 
GeneralWeird Prob with input keys and toolbar Pin
cgcrute20-Jan-04 12:26
cgcrute20-Jan-04 12:26 
GeneralRe: Weird Prob with input keys and toolbar Pin
Heath Stewart21-Jan-04 4:37
protectorHeath Stewart21-Jan-04 4:37 
GeneralRe: Weird Prob with input keys and toolbar Pin
cgcrute21-Jan-04 4:50
cgcrute21-Jan-04 4:50 
Generalprinter Handshake Pin
Ankwa20-Jan-04 11:46
Ankwa20-Jan-04 11:46 
GeneralRe: printer Handshake Pin
Tom Larsen21-Jan-04 4:56
Tom Larsen21-Jan-04 4:56 

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.