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

C#

 
GeneralRe: pictures in a datagrid Pin
Heath Stewart17-Feb-04 4:21
protectorHeath Stewart17-Feb-04 4:21 
Questionneed sql query? Pin
murali_utr17-Feb-04 3:19
murali_utr17-Feb-04 3:19 
AnswerRe: need sql query? Pin
Heath Stewart17-Feb-04 4:33
protectorHeath Stewart17-Feb-04 4:33 
Questionwhats wrong? Pin
ASGill17-Feb-04 2:16
ASGill17-Feb-04 2:16 
AnswerRe: whats wrong? Pin
Uwe Keim17-Feb-04 3:01
sitebuilderUwe Keim17-Feb-04 3:01 
AnswerRe: whats wrong? Pin
Heath Stewart17-Feb-04 3:15
protectorHeath Stewart17-Feb-04 3:15 
GeneralCustom ListBox.Items Pin
Simon Wren17-Feb-04 2:11
professionalSimon Wren17-Feb-04 2:11 
GeneralRe: Custom ListBox.Items Pin
Heath Stewart17-Feb-04 4:52
protectorHeath Stewart17-Feb-04 4:52 
You have to hide that member by using the new operator, which only makes it valid when the variable type is your custom ListBox derivative class:
public class MyListBox : ListBox
{
  // ...
  private MyListBox.MyObjectCollection items;
  public new MyListBox.MyObjectCollection Items
  {
    if (items == null)
      items = new MyListBox.MyObjectCollection();
    return items;
  }
  private class MyObjectCollection : CollectionBase // CollectionBase helps,
                                                    // but is not required
  {
    // Implement methods like Add with Typed parameters.
  }
}


 

Microsoft MVP, Visual C#
My Articles
GeneralWinForms: SuspendLayout on Application Pin
troels_sorensen17-Feb-04 2:06
troels_sorensen17-Feb-04 2:06 
GeneralRe: WinForms: SuspendLayout on Application Pin
Heath Stewart17-Feb-04 4:54
protectorHeath Stewart17-Feb-04 4:54 
QuestionResize all items? Pin
thomasa17-Feb-04 1:51
thomasa17-Feb-04 1:51 
AnswerRe: Resize all items? Pin
Heath Stewart17-Feb-04 4:57
protectorHeath Stewart17-Feb-04 4:57 
GeneralRe: Resize all items? Pin
je_gonzalez17-Feb-04 17:28
je_gonzalez17-Feb-04 17:28 
GeneralRe: Resize all items? Pin
Heath Stewart17-Feb-04 19:35
protectorHeath Stewart17-Feb-04 19:35 
GeneralRe: Resize all items? Pin
je_gonzalez18-Feb-04 3:20
je_gonzalez18-Feb-04 3:20 
AnswerRe: Resize all items? Pin
je_gonzalez17-Feb-04 17:21
je_gonzalez17-Feb-04 17:21 
GeneralProblems with thread cancellation. Pin
Chen Pang17-Feb-04 1:21
Chen Pang17-Feb-04 1:21 
GeneralRe: Problems with thread cancellation. Pin
Corinna John17-Feb-04 1:41
Corinna John17-Feb-04 1:41 
GeneralRe: Problems with thread cancellation. Pin
Chen Pang17-Feb-04 1:53
Chen Pang17-Feb-04 1:53 
QuestionException Handling . To throw or not to throw? Pin
bzurer17-Feb-04 1:05
bzurer17-Feb-04 1:05 
AnswerRe: Exception Handling . To throw or not to throw? Pin
Jonathan de Halleux17-Feb-04 1:13
Jonathan de Halleux17-Feb-04 1:13 
GeneralRe: Exception Handling . To throw or not to throw? Pin
bzurer17-Feb-04 1:50
bzurer17-Feb-04 1:50 
GeneralRe: Exception Handling . To throw or not to throw? Pin
Jonathan de Halleux17-Feb-04 2:09
Jonathan de Halleux17-Feb-04 2:09 
GeneralRe: Exception Handling . To throw or not to throw? Pin
bzurer17-Feb-04 1:56
bzurer17-Feb-04 1:56 
AnswerRe: Exception Handling . To throw or not to throw? Pin
Heath Stewart17-Feb-04 5:04
protectorHeath Stewart17-Feb-04 5:04 

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.