Click here to Skip to main content
14,383,720 members

.NET Framework

 
AnswerRe: dynamic pictureBox creation Pin
Paul Selormey12-Mar-07 16:02
memberPaul Selormey12-Mar-07 16:02 
GeneralRe: dynamic pictureBox creation Pin
sarah_malik13-Mar-07 2:07
membersarah_malik13-Mar-07 2:07 
Questionhelp me to make my program work faster Pin
thesad12-Mar-07 6:23
memberthesad12-Mar-07 6:23 
AnswerRe: help me to make my program work faster Pin
MikeMarq12-Mar-07 6:43
memberMikeMarq12-Mar-07 6:43 
GeneralRe: help me to make my program work faster Pin
thesad12-Mar-07 6:52
memberthesad12-Mar-07 6:52 
GeneralRe: help me to make my program work faster Pin
Pete O'Hanlon12-Mar-07 7:00
protectorPete O'Hanlon12-Mar-07 7:00 
GeneralRe: help me to make my program work faster Pin
MikeMarq12-Mar-07 8:41
memberMikeMarq12-Mar-07 8:41 
GeneralRe: help me to make my program work faster Pin
thesad12-Mar-07 10:52
memberthesad12-Mar-07 10:52 
private: System::Void tmr_for_move_Tick(System::Object^ sender, System::EventArgs^ e) {
Move_usr();
if(b_usr.pct->Visible == true) Move_bl_usr();
for(int i=0; i<n; i++){
Move_em(i);
if(b_em[i]->pct->Visible == true) Move_bl_em(i);
if(b_usr.pct->Visible == true) Check_hit_em(i);
if(b_em[i]->pct->Visible == true) Check_hit_usr(i);
else if(em[i]->pct->Visible == true) Shooting_em(i);
}
}

private: void Move_em(int i){
if(em[i]->pct->Left + em[i]->step_x > min_x && em[i]->pct->Left + em[i]->step_x < max_x)
em[i]->pct->Left += em[i]->step_x;
else em[i]->step_x *= -1;
if(em[i]->pct->Top + em[i]->step_y > min_y && em[i]->pct->Top + em[i]->step_y <= max_y)
em[i]->pct->Top += em[i]->step_y;
else em[i]->step_y *= -1;
if(em[i]->pct->Left == max_x) em[i]->step_x = - em[i]->step_x;
if(em[i]->pct->Top == max_y - 58) em[i]->step_y = - em[i]->step_y;
if(em[i]->step_x > 0) em[i]->pct->Load("e_r.jpg");
else if(em[i]->step_x < 0) em[i]->pct->Load("e_l.jpg");
if(em[i]->step_y > 0) em[i]->pct->Load("e_d.jpg");
else if(em[i]->step_y < 0) em[i]->pct->Load("e_u.jpg");
}

Other procedures are same, but move different object.

private: object usr, b_usr;
private: static unsigned short int hits = 0;
private: static unsigned short int n = 10;
private: static unsigned short int m = 32;
private: static array<object^>^ em;
private: static array<object^>^ b_em;

ref struct object {
int step_x, step_y;
System::Windows::Forms::PictureBox^ pct;
};
GeneralRe: help me to make my program work faster Pin
Luc Pattyn12-Mar-07 13:45
professionalLuc Pattyn12-Mar-07 13:45 
GeneralRe: help me to make my program work faster [modified] Pin
thesad12-Mar-07 20:10
memberthesad12-Mar-07 20:10 
AnswerRe: how to overlap image Pin
Dave Kreskowiak12-Mar-07 5:55
mveDave Kreskowiak12-Mar-07 5:55 
Questionhow to start a windows application at windows start up in c# Pin
sainyam12-Mar-07 1:12
membersainyam12-Mar-07 1:12 
AnswerRe: how to start a windows application at windows start up in c# Pin
Colin Angus Mackay12-Mar-07 1:28
memberColin Angus Mackay12-Mar-07 1:28 
AnswerRe: how to start a windows application at windows start up in c# Pin
Dave Kreskowiak12-Mar-07 5:51
mveDave Kreskowiak12-Mar-07 5:51 
QuestionStringFormat.Alignment and StringFormat.LineAlignment Pin
Paul Selormey11-Mar-07 22:34
memberPaul Selormey11-Mar-07 22:34 
AnswerRe: StringFormat.Alignment and StringFormat.LineAlignment Pin
Thomas Stockwell22-Mar-07 9:13
professionalThomas Stockwell22-Mar-07 9:13 
QuestionAccessing files from a remote system or server Pin
vikram.vit10-Mar-07 1:46
membervikram.vit10-Mar-07 1:46 
AnswerRe: Accessing files from a remote system or server Pin
Dave Kreskowiak10-Mar-07 5:03
mveDave Kreskowiak10-Mar-07 5:03 
QuestionOpen source team search! Pin
Mehran Farshadmehr9-Mar-07 3:21
memberMehran Farshadmehr9-Mar-07 3:21 
AnswerRe: Open source team search! Pin
Vasudevan Deepak Kumar9-Mar-07 7:18
memberVasudevan Deepak Kumar9-Mar-07 7:18 
GeneralRe: Open source team search! Pin
Mehran Farshadmehr9-Mar-07 8:56
memberMehran Farshadmehr9-Mar-07 8:56 
Questioncustome disassembler for biztalk Pin
sweetdecember1029-Mar-07 1:14
membersweetdecember1029-Mar-07 1:14 
AnswerRe: custome disassembler for biztalk Pin
JoeSharp9-Mar-07 1:47
memberJoeSharp9-Mar-07 1:47 
Questionhelp me Pin
nandhusivakumar9-Mar-07 0:49
membernandhusivakumar9-Mar-07 0:49 
AnswerRe: help me Pin
Mircea Puiu9-Mar-07 0:58
memberMircea Puiu9-Mar-07 0:58 

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.