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....
User Profile
Collapse
-
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?Leave a comment:
-
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... -
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;
-
-
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?Leave a comment:
-
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 -
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.Leave a comment:
-
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) {
-
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... -
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 -
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...Leave a comment:
-
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 -
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...Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: