Click here to Skip to main content
16,010,114 members
Home / Discussions / C#
   

C#

 
QuestionNeed help with showing and hiding forms :doh: Pin
RIcHieMoToKi28-Aug-06 3:20
RIcHieMoToKi28-Aug-06 3:20 
AnswerRe: Need help with showing and hiding forms :doh: Pin
Nader Elshehabi28-Aug-06 5:22
Nader Elshehabi28-Aug-06 5:22 
GeneralRe: Need help with showing and hiding forms :doh: Pin
RIcHieMoToKi28-Aug-06 6:25
RIcHieMoToKi28-Aug-06 6:25 
AnswerRe: Need help with showing and hiding forms :doh: Pin
numbers1thru928-Aug-06 8:21
numbers1thru928-Aug-06 8:21 
GeneralRe: Need help with showing and hiding forms :doh: Pin
RIcHieMoToKi28-Aug-06 10:49
RIcHieMoToKi28-Aug-06 10:49 
Questionredim preserve...in c#? Pin
rzvme28-Aug-06 2:54
rzvme28-Aug-06 2:54 
AnswerRe: redim preserve...in c#? Pin
Tamimi - Code28-Aug-06 2:59
Tamimi - Code28-Aug-06 2:59 
AnswerRe: redim preserve...in c#? Pin
Guffa28-Aug-06 3:17
Guffa28-Aug-06 3:17 
The "ReDim Preserve" functionality is intentionally left out in .NET, as there is no other way of resizing an array than to create a new array and copy the elements from the old array.

There are methods in the Array class to copy the elements, but there is no "Resize" method that would hide this resource consuming task from view. If you really want to do this, you can, but you can't do it "by mistake".

As Tamimi said, you should use an ArrayList instead, as it automatically grows as needed. Or better yet, if you are using .NET 2, use a generic list to make the code type safe.


---
b { font-weight: normal; }

GeneralRe: redim preserve...in c#? Pin
Roger Alsing28-Aug-06 3:56
Roger Alsing28-Aug-06 3:56 
GeneralRe: redim preserve...in c#? Pin
Not Active28-Aug-06 4:04
mentorNot Active28-Aug-06 4:04 
AnswerRe: redim preserve...in c#? Pin
Judah Gabriel Himango28-Aug-06 4:22
sponsorJudah Gabriel Himango28-Aug-06 4:22 
AnswerRe: redim preserve...in c#? Pin
Dave Doknjas28-Aug-06 15:07
Dave Doknjas28-Aug-06 15:07 
Questionusing aggregate functions Pin
haseeb_saeed28-Aug-06 1:59
haseeb_saeed28-Aug-06 1:59 
AnswerRe: using aggregate functions Pin
Nader Elshehabi28-Aug-06 3:15
Nader Elshehabi28-Aug-06 3:15 
QuestionTextBox filling in Crystal Reports VS2005 Pin
Glen Harvy28-Aug-06 1:44
Glen Harvy28-Aug-06 1:44 
AnswerRe: TextBox filling in Crystal Reports VS2005 Pin
~~~Johnny~~~28-Aug-06 3:58
~~~Johnny~~~28-Aug-06 3:58 
GeneralRe: TextBox filling in Crystal Reports VS2005 Pin
Glen Harvy28-Aug-06 5:34
Glen Harvy28-Aug-06 5:34 
GeneralRe: TextBox filling in Crystal Reports VS2005 Pin
~~~Johnny~~~28-Aug-06 6:23
~~~Johnny~~~28-Aug-06 6:23 
QuestionWord color problem [modified] Pin
jithen_dt28-Aug-06 1:22
jithen_dt28-Aug-06 1:22 
AnswerRe: Word color problem Pin
Nader Elshehabi28-Aug-06 1:29
Nader Elshehabi28-Aug-06 1:29 
QuestionCapturing TAB event of a button Button Pin
Kais4U28-Aug-06 1:13
Kais4U28-Aug-06 1:13 
AnswerRe: Capturing TAB event of a button Button Pin
Navi1528-Aug-06 1:28
Navi1528-Aug-06 1:28 
GeneralRe: Capturing TAB event of a button Button Pin
Kais4U28-Aug-06 1:34
Kais4U28-Aug-06 1:34 
AnswerRe: Capturing TAB event of a button Button Pin
Andrei Ungureanu28-Aug-06 1:33
Andrei Ungureanu28-Aug-06 1:33 
GeneralRe: Capturing TAB event of a button Button Pin
Kais4U28-Aug-06 1:38
Kais4U28-Aug-06 1:38 

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.