Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# VS 2008 3.5 Winform SetFocus to textbox on Ctrl + L Pin
TheFoZ29-Dec-09 21:24
TheFoZ29-Dec-09 21:24 
QuestionSorting using generic classes + c# Pin
abcurl29-Dec-09 5:17
abcurl29-Dec-09 5:17 
AnswerRe: Sorting using generic classes + c# Pin
Eddy Vluggen29-Dec-09 6:20
professionalEddy Vluggen29-Dec-09 6:20 
Questionc# multiple forms communication Pin
ikurtz29-Dec-09 4:31
ikurtz29-Dec-09 4:31 
AnswerRe: c# multiple forms communication Pin
Saksida Bojan29-Dec-09 4:48
Saksida Bojan29-Dec-09 4:48 
AnswerRe: c# multiple forms communication Pin
dan!sh 29-Dec-09 5:03
professional dan!sh 29-Dec-09 5:03 
AnswerRe: c# multiple forms communication Pin
coolestCoder29-Dec-09 22:23
coolestCoder29-Dec-09 22:23 
QuestionI have a few questions :) Pin
Raztor029-Dec-09 4:30
Raztor029-Dec-09 4:30 
Firstly, I would like to say that I have tried Google-ing my problems but nothing really helps at all.

Now let me introduce myself before asking you all my questions :P I'm 16 years old, and I have a culminating to complete for school. However, I do not need help with the actual code. Another thing you should know is I'm not that advanced with C# so I'll ask my question as best I can Smile | :)

I am in the process of making a Tetris game in C#, and am running into a couple problems that I'd like to know if there is a solution to. So let's begin.

First question: As I was getting the Tetris to work and it's coming together, I realized that I was re-drawing EVERYTHING each time something new happens. Is it possible to somehow tell C# to only redraw a specific part of the screen (the falling piece) rather than every other piece on the screen every time? Since those pieces won't be moving unless I complete a row, I really don't want to have to tell it to draw them every time. Also, I noticed if I don't tell it to draw, it won't draw them, and they won't appear. Which didn't solve my problem at all Frown | :(

Second question: IF the above is not possible or anything like that, is there any way to tell the application to use more of the available RAM in the system? I'm asking this because, seeing as the Tetris program lags when there's many pieces on the board, it really does sound miraculous how popular games like Call of Duty don't lag on this computer.

Thanks to everyone reading this and if anyone needs further clarification just post a comment and I'll try to answer Smile | :)
AnswerRe: I have a few questions :) Pin
Saksida Bojan29-Dec-09 4:41
Saksida Bojan29-Dec-09 4:41 
AnswerRe: I have a few questions :) Pin
DiscoJimmy29-Dec-09 5:01
DiscoJimmy29-Dec-09 5:01 
AnswerRe: I have a few questions :) Pin
Raztor029-Dec-09 7:37
Raztor029-Dec-09 7:37 
GeneralRe: I have a few questions :) Pin
Saksida Bojan29-Dec-09 8:12
Saksida Bojan29-Dec-09 8:12 
QuestionWindows automation with C# Pin
DiscoJimmy29-Dec-09 4:26
DiscoJimmy29-Dec-09 4:26 
QuestionResize of Custom Control And Excluding control Pin
Saksida Bojan29-Dec-09 4:02
Saksida Bojan29-Dec-09 4:02 
AnswerRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen29-Dec-09 6:34
professionalEddy Vluggen29-Dec-09 6:34 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan29-Dec-09 10:30
Saksida Bojan29-Dec-09 10:30 
GeneralRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen30-Dec-09 5:45
professionalEddy Vluggen30-Dec-09 5:45 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan5-Jan-10 1:49
Saksida Bojan5-Jan-10 1:49 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan12-Feb-10 19:03
Saksida Bojan12-Feb-10 19:03 
GeneralRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen13-Feb-10 1:10
professionalEddy Vluggen13-Feb-10 1:10 
Newsi have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
3bood.ghzawi29-Dec-09 2:29
3bood.ghzawi29-Dec-09 2:29 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Calla29-Dec-09 3:33
Calla29-Dec-09 3:33 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
dan!sh 29-Dec-09 3:45
professional dan!sh 29-Dec-09 3:45 
JokeRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Abhinav S29-Dec-09 3:48
Abhinav S29-Dec-09 3:48 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Keith Barrow29-Dec-09 4:00
professionalKeith Barrow29-Dec-09 4:00 

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.