User Profile

Collapse

Profile Sidebar

Collapse
elmbrook
elmbrook
Last Activity: Feb 17 '11, 01:15 AM
Joined: Feb 21 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • elmbrook
    replied to Can't open a Modal (showdialog) form
    I have found a work around but it is not pretty.

    What I have done is open the modal form from the MainForm. I have to call this method from my Child form. This works however, for every modal form in my application, I have to setup a new entry in my MainForm....
    See more | Go to post

    Leave a comment:


  • elmbrook
    replied to Can't open a Modal (showdialog) form
    I think you may have mis-read the question.
    I would like to open a modal form (dialog form) within my top level form.

    They must fill out the information on my modal form first before they can continue.

    Does that make sense?
    See more | Go to post

    Leave a comment:


  • elmbrook
    started a topic Can't open a Modal (showdialog) form

    Can't open a Modal (showdialog) form

    I am unable to open a child form as a modal form.

    Here is my scenario

    I have a MainForm which is a toplevel form.
    Inside the MainForm I have a Toolbar Form which is a child.
    From the Toolbar Form I call another child form.
    From that child form I need to call myModalForm.

    I have tried:

    myModalForm myform = new myModalForm ();
    myform.TopLevel = true;
    myform.MdiParen t...
    See more | Go to post

  • Show image in Listview when populating with an array.

    Hi

    I am trying to add an image to a listview box. I have the below code and according to me this should work. However, the image does not show at all. I can add an image when I manually add each item but not when I add the items as an array.

    Can someone please tell me what is going wrong?

    Code:
    this.lstUser.View = View.Details;
                this.lstUser.GridLines = true;
    ...
    See more | Go to post

  • elmbrook
    replied to Form within a form within a form
    myform.MdiParen t = this.MdiParent;
    See more | Go to post

    Leave a comment:


  • elmbrook
    replied to Form within a form within a form
    Surely there is an easier answer than this? Should it not be a setting that says that this the first form is the parent form and the rest are child forms?
    See more | Go to post

    Leave a comment:


  • elmbrook
    started a topic Form within a form within a form

    Form within a form within a form

    Here is my problem.

    I have a MainForm which is the parent.
    I have a toolbar form which is the child.

    ToolBarForm mytoolbarform = new ToolBarForm();
    mytoolbarform.M diParent = this;
    mytoolbarform.S how();

    I now want to call a third form from the Toolbar form which is a child of the MainForm.

    How do I do that?

    Thanks
    See more | Go to post

  • elmbrook
    replied to Custom Error Handling Class
    I would like to get a general Exception handler.

    I don't want to put try and catches around everything?

    In other programming languages I have created a general exception handler class that handle all errors and exceptions.

    I was wondering if there was any general Exception handler classes in C#.

    Something that would have to be a generic custom built class.
    See more | Go to post

    Leave a comment:


  • elmbrook
    started a topic Drag and Drop a list item to a button

    Drag and Drop a list item to a button

    Hi All

    I am trying to drag and drop text from a listbox to be the title of a button.

    Can someone please help or point me in the right direction?

    I thought that this should have worked but it does nothing. I have set Allow Drop on the button to true.

    Code:
                   private void listBox1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
            {
    ...
    See more | Go to post

  • elmbrook
    started a topic Custom Error Handling Class

    Custom Error Handling Class

    Hi

    I would like to create a custom error handling class and am not sure how to go about it.

    Try/Catch statements work however, if I am outside of that statement then the VS2008 debugger comes up.

    I would like to create my own class to handle any/every exception so that I can display back to the user what the error is, where it has happened (Form Name), Line Number and a box for them to write in what they...
    See more | Go to post

  • elmbrook
    started a topic How do I save a custom color in the Color Chart

    How do I save a custom color in the Color Chart

    Hi There

    How do I save a color in the color chart so that it is available to all controls. I have a form that has a custom background color. Each time I create a new form I have to set the custom color, but every time I go to the color picked my color has not been saved.

    How do I save my custom color in the color picker?

    Thanks
    See more | Go to post

  • IT's ok, I figured out how to do it.

    The solution is I found is here:
    http://forum.codecall.net/c-programm...hild-form.html...
    See more | Go to post

    Leave a comment:


  • elmbrook
    started a topic how do I run code in one form from another form.

    how do I run code in one form from another form.

    Hi

    I have a login form inside my MainForm.

    Once a person logs in I want to run some code in a method in the MainForm that sets the menu to visible and creates my toolbar.

    However, I cannot see the MainForm code.

    Can anyone help?

    Thanks
    See more | Go to post

  • elmbrook
    replied to Textbox Class for Toolbox
    Thanks Alexis

    That is a great start.

    I am following this article http://msdn.microsoft.com/en-us/libr...6x(VS.80).aspx

    I have created a Windows Forms Control Library with the button in it.

    However, when I get to the second part of the article when I try to add the control it does not show up in my project reference.

    5. Click the tab labeled Projects. Your ValueButtonLib...
    See more | Go to post

    Leave a comment:


  • elmbrook
    started a topic Textbox Class for Toolbox

    Textbox Class for Toolbox

    Hi

    I am starting a project and am wanting to create a custom Toolbox class.

    It is a simple textbox with the background colour set to grey.

    I am not sure how to create that class and upload it to the Toolbox.

    I would like to use this class on all my forms but have the ability to change the background colour to another colour if it is needed. I would like to drop this custom textbox from...
    See more | Go to post
No activity results to display
Show More
Working...