Hoho! I get it! Put another panel as the container of the drawing zone and set AutoScroll = True. When drawing, if the figure is close to the width and height of the drawing zone, increase the width and height! Excited!
radic feng
Posts
-
Draw larger drawings -
Draw larger drawingsI use a Panel as drawing zone and set AutoScroll = True, hoping a scroll will be attached to it automatically when I draw large drawings. But it does not happen. How can I make it? Appreciate any advice! Radic
-
How to add a larger cap to a line?Any easier way? Before you construct a CustomLineCap, you need construct GraphicsPath, FillMode, etc, which, I think, is troublesome. Will you be kind enough to show me an easier way? Thanks, thanks, thanks! Radic
-
How to add a larger cap to a line?I thought the manual way. But you know the slope of the line changes sharply and the arrow has to change. So it needs much calculation work and I doubt if the effect is good. Radic
-
How to add a larger cap to a line?I want to add an arrow cap to a line. So I use pen.EndCap = LineCap.ArrowAnchor. But the arrow is so small. How can I add a larger one? I try to use CustomLineCap, It is so troublesome and I failed. Any advice? Regards! Radic
-
How to make ScrollBar attached to Panel automatically?I am developing a drawing tool and make Panel as drawing area. I set Autoscroll of the panel true in case that the drawing may be large. But why the stroll does not appeat automatically? How can I attach a scroll manually and when you drag the scroll, different part of the drawing apears in the drawing area. Many thanks! Radic
-
How to avoid flickering problem when drawing?`Thanks, Christian! Absolutely you are the most warm-hearted!
-
How to avoid flickering problem when drawing?`Hi, guys, I am now developing a drawing program in C#. Everytime when adding new lines, ellipse or other shapes, I have to use "this.Invalidate(); this.Update();" to refresh the drawing area then new shapes will appear. However, it has to paint all the shapes I drew before, or the shapes I drew before may be erased! But everytime redrawing every shape causes terribly flicking! How to avoid this? Can it only draw newly-drawn shape? ps: I use ControlStyles.DoubleBuffer and ControlStyles.UserPaint. The effect is not obvious. Many thanks! Radic Beijing, China -- modified at 21:25 Sunday 28th August, 2005
-
string.Empty and nullMany thanks!
-
string.Empty and nullHot discussion! I have another topic: what's the difference between "==" and method "Equal". are they same? It is quite confusing! In jave language, "two object Equal" means the refs pointing to the same memory address. But in C#, I find it is different. You can use if( stringA == "aa" ) instead of if( stringA.Equal("aa" ); Any ideas? Radic Feng Beijing, China.
-
Please could you...Does it work? In your way, you have to set this.isMdiParent = true; Then its appearance will change. I do not think it is a good method. ps: can you give me some idea to make a logo. many thanks!
-
Using ArrayListMy experience is adding objects with the same type to one arraylist. if casting is needed, for instance, to a string array. you can use this statement: string[] myString = ( string[] )listOfStrings.toArray( typeof(string ));
-
string.Empty and nullIn my eye. string a = string.Empty; is the same as string a = "";
-
Creating Simply Audio FileGreat help, thnx
-
Flicker problemIt seems flicker problem is a big disadvantage of C#, I developed a drawing tool using C#, It flicked terribly when drawing more figures. And I also use DoubleBuffer, AllPaintingInWmPaint. Its effect is not so good.