Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
QuestionFormBorderStyle problem Pin
roshihans11-Jan-10 17:21
roshihans11-Jan-10 17:21 
QuestionIcon Transparency When Working With PictureBox Control... Pin
Thomas Kemper11-Jan-10 13:20
Thomas Kemper11-Jan-10 13:20 
AnswerRe: Icon Transparency When Working With PictureBox Control... Pin
Tsuda Kageyu19-May-10 0:15
Tsuda Kageyu19-May-10 0:15 
QuestionByte Array Pin
o m n i11-Jan-10 12:36
o m n i11-Jan-10 12:36 
AnswerRe: Byte Array Pin
Luc Pattyn11-Jan-10 12:45
sitebuilderLuc Pattyn11-Jan-10 12:45 
AnswerRe: Byte Array Pin
DaveyM6911-Jan-10 14:01
professionalDaveyM6911-Jan-10 14:01 
AnswerRe: Byte Array Pin
Rick Shaub11-Jan-10 15:18
Rick Shaub11-Jan-10 15:18 
AnswerRe: Byte Array Pin
AspDotNetDev11-Jan-10 18:14
protectorAspDotNetDev11-Jan-10 18:14 
If you really must use an array, then the others have already given you perfectly reasonable options. However, you could also create a new data structure that is like a list but that you can remove items from both sides without a speed penalty.

A list works by internally storing an array and removing/adding elements near the end of the array as needed. If you remove items from the beginning of a list, all the rest of the items will have to be shifted to the beginning to get rid of those empty elements. However, your class (DoubleSidedList?) could just keep the values near the center of the array. That way, you could trim or add to either side without worrying about speed problems when expanding or contracting either side of the collection.

Naturally, this would incur a small performance penalty due to wrapping an array in a collection type.


AnswerRe: Byte Array Pin
April Fans12-Jan-10 19:19
April Fans12-Jan-10 19:19 
QuestionC# Code To Start A Skype Call Pin
Kevin Marois11-Jan-10 12:28
professionalKevin Marois11-Jan-10 12:28 
AnswerRe: C# Code To Start A Skype Call Pin
Giorgi Dalakishvili11-Jan-10 19:17
mentorGiorgi Dalakishvili11-Jan-10 19:17 
QuestionHow this below code works Pin
indian14311-Jan-10 12:23
indian14311-Jan-10 12:23 
AnswerRe: How this below code works Pin
Richard MacCutchan11-Jan-10 12:52
mveRichard MacCutchan11-Jan-10 12:52 
GeneralRe: How this below code works Pin
indian14311-Jan-10 13:40
indian14311-Jan-10 13:40 
GeneralRe: How this below code works Pin
DaveyM6911-Jan-10 14:11
professionalDaveyM6911-Jan-10 14:11 
GeneralRe: How this below code works Pin
indian14311-Jan-10 14:27
indian14311-Jan-10 14:27 
QuestionBoolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 10:14
aespielberg11-Jan-10 10:14 
AnswerRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 10:56
sitebuilderLuc Pattyn11-Jan-10 10:56 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 11:08
aespielberg11-Jan-10 11:08 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 11:24
sitebuilderLuc Pattyn11-Jan-10 11:24 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 11:41
aespielberg11-Jan-10 11:41 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 12:06
sitebuilderLuc Pattyn11-Jan-10 12:06 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 12:23
aespielberg11-Jan-10 12:23 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 13:08
sitebuilderLuc Pattyn11-Jan-10 13:08 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 13:24
aespielberg11-Jan-10 13:24 

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.