Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: WinForms Comboboxes Pin
Mycroft Holmes5-May-09 17:24
professionalMycroft Holmes5-May-09 17:24 
QuestionTo Dispose() or not Dispose(), that is the question. Pin
Peter Trevor5-May-09 13:02
Peter Trevor5-May-09 13:02 
AnswerRe: To Dispose() or not Dispose(), that is the question. Pin
Luc Pattyn5-May-09 13:25
sitebuilderLuc Pattyn5-May-09 13:25 
GeneralRe: To Dispose() or not Dispose(), that is the question. Pin
fly9045-May-09 14:22
fly9045-May-09 14:22 
GeneralRe: To Dispose() or not Dispose(), that is the question. Pin
Luc Pattyn5-May-09 14:47
sitebuilderLuc Pattyn5-May-09 14:47 
JokeRe: To Dispose() or not Dispose(), that is the question. Pin
fly9045-May-09 15:24
fly9045-May-09 15:24 
GeneralRe: To Dispose() or not Dispose(), that is the question. Pin
Luc Pattyn5-May-09 15:42
sitebuilderLuc Pattyn5-May-09 15:42 
QuestionExpose Property of Constituent Control in UserControl Pin
xfitr25-May-09 11:18
xfitr25-May-09 11:18 
I have a custom control derived from the UserControl class. I have three controls in the container; label, treeview, and toolstrip. I want to expose the Items collection of the toolstrip so that the user can add objects at design-time. When I add the custom control to a form and click the exposed Items collection in properties, I get the following error message: "Value cannot be null. Parameter name: value." I've exhausted all my resources and would appreciate any help anyone can give on this issue. I have provided my property code snippet I used in my custom usercontrol.

private System.Windows.Forms.ToolStrip toolstrip;

...

public ToolStripItemCollection Items {
  get {
    if (toolstrip == null) {
      toolstrip = new ToolStrip();
    }
    return (toolstrip.Items);
  }
  set {
    toolstrip.Items.Clear();
    foreach (ToolStripItem obj in value) {
      toolstrip.Items.Add(obj);
    }
  }
}

AnswerRe: Expose Property of Constituent Control in UserControl Pin
Christian Graus5-May-09 12:26
protectorChristian Graus5-May-09 12:26 
GeneralRe: Expose Property of Constituent Control in UserControl Pin
xfitr26-May-09 3:47
xfitr26-May-09 3:47 
JokeSolve this...... Pin
Rajdeep.NET is BACK5-May-09 9:09
Rajdeep.NET is BACK5-May-09 9:09 
GeneralRe: Solve this...... Pin
Luc Pattyn5-May-09 9:19
sitebuilderLuc Pattyn5-May-09 9:19 
GeneralRe: Solve this...... Pin
harold aptroot5-May-09 9:27
harold aptroot5-May-09 9:27 
RantRe: Solve this...... Pin
fly9045-May-09 9:25
fly9045-May-09 9:25 
GeneralRe: Solve this...... Pin
harold aptroot5-May-09 9:30
harold aptroot5-May-09 9:30 
GeneralRe: Solve this...... Pin
EliottA5-May-09 11:24
EliottA5-May-09 11:24 
GeneralRe: Solve this...... Pin
Dave Kreskowiak5-May-09 9:59
mveDave Kreskowiak5-May-09 9:59 
GeneralRe: Solve this...... Pin
CPallini5-May-09 10:53
mveCPallini5-May-09 10:53 
GeneralRe: Solve this...... Pin
Pete O'Hanlon5-May-09 11:22
mvePete O'Hanlon5-May-09 11:22 
GeneralRe: Solve this...... Pin
StarBP5-May-09 16:55
StarBP5-May-09 16:55 
QuestionPrinting Question - characters per line Pin
al3xutzu005-May-09 7:58
al3xutzu005-May-09 7:58 
AnswerRe: Printing Question - characters per line Pin
Dave Kreskowiak5-May-09 8:14
mveDave Kreskowiak5-May-09 8:14 
GeneralRe: Printing Question - characters per line [modified] Pin
al3xutzu005-May-09 9:08
al3xutzu005-May-09 9:08 
GeneralRe: Printing Question - characters per line Pin
CPallini5-May-09 10:54
mveCPallini5-May-09 10:54 
AnswerRe: Printing Question - characters per line Pin
OriginalGriff5-May-09 23:00
mveOriginalGriff5-May-09 23: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.