|
Hi,
AFAIK if pnlChild is not anchored, not docked, and you want pnlParent to cause a
pnlChild resize, then you must invoke it, typically by assigning a new pnlChild.Size
in pnlParent_Resize().
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I am writing code about a form.it similar to Paint of Window.i have a some problem,so i find code to look for my problem
leo
|
|
|
|
|
nta_3886 wrote: i have a some problem,so i find code to look for my problem
That's nice. Have a good trip then...
... or did you mean to tell us about the problem you're having with your code??
|
|
|
|
|
What is up with the original post? It makes no real sense. Is there a problem in there somewheres or does the OP want people to do his work for him, so he gets praises/fame for other's efforts?
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
Yeah, I was thinking the same thing. Apparently his code needs to go on a "vision quest" to find the problems with itself.
|
|
|
|
|
Dave Kreskowiak wrote: "vision quest"
[Homer Simpson voice over] Mmmmmmm, vision quest [/Homer Simpson voice over]
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
thank your reply.my problem:i make a event draw a line
example
Point p=new Point();
Pen pe =new Pen(Color.Black,1);
private void mouseDown (object sender, MouseEventArgs e)
{
p = e.Location;
}
private void mouseUp(object sender, MouseEventArgs e)
{
Graphics g = this.CreateGraphics();
g.DrawLine(pe,p,e.Location);
g.Dispose();
}
this code draw a line from the location at Mouse Down to the location at the Mouse Up
When mouse move, I want alway have a line from location at Mouse Down to the location of Mouse at the moment.but when Mouse up,there is only a line.
It is similar to the draw a line in program Paint of Window.i can't write code.
If you know,please tell me quick
leo
|
|
|
|
|
Rephrase your question.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
I write a class inherit from CDHtmlDialog, and show a HTML page
but the HTML page include a lot of CSSs,JavaScripts,
so have some blemish:
Dialog show first, and after about 2~4 secs, then the HTML page is showed
when HTML page is not showed, the WebBrowser Control area is blank,it is unsightly.
I also try:
1.Add the HTML file into .exe as a resource, but it is as of old.
2.Reduce css and js, can resolve this problem,but it is the only way???
any ideas???
thanks..
|
|
|
|
|
what is the code in displaying this:12345
4321
321
21
1
|
|
|
|
|
Sounds like a classroom exercise. You are supposed to figure it out for yourself. Why not make an attempt and if it doesn't work show us the code then we'll help you out.
|
|
|
|
|
shen17 wrote: what is the code in displaying this:12345
4321
321
21
1
Do your own frigging homework!
If something like this is too challenging for you, go pick a different profession because if you cannot solve this on your own, real world problems in software development will be too much for you.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
I can tell you:
Console.WriteLine("12345");
Console.WriteLine("4321");
Console.WriteLine("321");
Console.WriteLine("21");
Console.WriteLine("1");
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
LOL - I hope you're kidding ( and I hope he takes this to class and learns a valuable lesson )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
And I hope he will not give it to a teacher as a solution of this excercise (or whatever it is)...
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
if you have a simpler solution, don't hesitate and post it!
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
No, I do not have a simpler solution.
But I think that the task was to find out how to generate such output with a loop not just a couple of WriteLine statements... I suppose that data posted by Shen was just a sample - the program should be able to generate any number of such sequences.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
Yeah, I assume you're right.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm using Visual Studio 2005 and writing a C# MDI form appliction.
I insert a menustrip and toolstrip into a child mdi form. I then, click on the respective SmartTags and Inserted Standard Items. But when I run the program, Toolstrip shows up, but the menustrip doesn't show.
Any ideas why?
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|
|
By default, the MenuStrip items will be merged with the MDI parent's menu. So you should see them on the main form's menu. You can disable this by setting AllowMerge[^] to false on the child MDI form. Or you can customize how the items are merged using the MergeAction[^] and MergeIndex[^] on the individual menu items.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks Tom
It works just as you say.
I have another question.
The child's ToolStrip AllowMerge Property is set to true, yet it does not merge with its Parent's ToolStrip.
Do you know how I can set it to merge with it's parent.
Thanks again, in advance.
Paul
------------------------------------------------
Paul Chin
|
|
|
|
|
There's a bug[^] with merging ToolStrips. Basically, you will have to perform the merge yourself.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks Tom
Based on the MSDN links that you shared, I manage to get the Child's ToolStrips to merge and unmerge.
Solution:
In Parent MDI Form, insert an event handler called MdiChildActivate. This can
be done via the Properties Grid. Then, insert the following code within this
event handler:
<code>
private void MainForm_MdiChildActivate(object sender, EventArgs e)
{
ToolStripManager.RevertMerge(toolStrip1);
if (this.ActiveMdiChild != null)
{
try
{
ToolStripManager.Merge((ActiveMdiChild as PictureForm).toolStrip2, toolStrip1);
}
catch (Exception err) { };
}
}
</code>
MainForm is the parent MDI Form, toolStrip1 is the Parent's Toolstrip, toolStrip2 is my child's ToolStrip and PictureForm is my Child MDI Form.
------------------------------------------------
Paul Chin
|
|
|
|
|
I am trying to create a data-posting mechanism in my winform application.
The application has one MDIparent and another main form in it.
I have added another form with a datagridview. What i want is for the user could enter the data in the datagridview such that data is saved there in the application and can be pulled out by the virtue of an identifier.i.e. each row of data can correspond to a 'Date'. And whenever the user wants to pull up that saved data respective to that particular date, he/she can do it just by clicking a date in the calendar.
I also want to make the column in the datagridview, just like the access. In access, we can make a filtered selection of data in the columns.
Any ideas?
|
|
|
|
|
how to get the desktop of each users
like
system.environment......
what else
can anybody help me
|
|
|
|