Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

ssoffline

@ssoffline
About
Posts
45
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Deployment problems
    S ssoffline

    hi guys i posted earlier about an app i am developing for making DFD's . I have made something at least but the problem here is that when i deploy the application its behavior changes. first the features: 1. you can make a Data Flow Diagram. 2. Save it On saving three files are created a. file 1 is .bmp file which is the image of your DFD. b. file 2 is an XML file which shows the logical meaning of this DFD, in my self defined schema , if you want to know it ask me i will explain but here i m too lazy to explain. c. The third file is a..dfd file which is a custom extension defined by me for saving the DFD,this is also an XML file , it is used for saving and reopening the DFD for editing and is pretty self explanatory. 3. you have to drag drop objects on work area and click line to draw a line from one to another. 4. you can move lines , delete them , move delete objects,etc. 5. The lines move along with the objects and resize themselves. 6. As DFD's are all about data flow , you can drop labels onto the work area and name the lines (these will be saved in second XML file), drop them on line. 7. you can compile DFD's and it show if any errors there, to understand that you need to know DFD's,check out wiki. 8. you can print them and save them as another one and stuff like that. features to be added 1. real time compilation . 2. real time adjustment of lines as you draw them. 3. Multi level DFD's and if possible , i 'll try to generate some code too suggestions are welcome You can get it here http://www.esnips.com/doc/7bd44a49-dfe3-46bc-a157-a9b1d9d3c2ca/Release.rar Now the problem , the problem here is that when i am debugging this project the double buffering thing works fine , but when i deploy it you will notice when you put a label on line and move objects( boxes ), the lines start disappearing, in debug as well as release exe, please guys help and to do post some reviews

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# xml help database com sysadmin

  • double buffering in child controls
    S ssoffline

    hi i have an app in which i can drop objects onto a form and move them, it consists of graphics (lines), i am using double buffering to avoid filckering in the parent control which is a panel,but when i add controls to this panel dyanamically, the double buffering effect is not there, i move all lines conneted to a control when the control is moved , at this time flickering occurs, please help.

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help

  • Lines disappear
    S ssoffline

    hi thanks for previous suggestions, i am already doing the same only, in fact i can save and compile my diagram and even reopen it using XML, my problem is how to show those selected points as are shown in windows form editor around that graphics object, of course if it becomes selectable like other controls then resizing is no big thing.

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    hi I am doing it in OnPaint event and i even redraw them on invalidation, the problem has been solved by christian's suggestion,actually the lines are drawn on screen pixels and objects lie on the panel, so you need to make a bitmap in memory and draw those line son to the bitmap and save it thanks and regards

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    ok thanks i 'll try and tell also i posted earlier today how to make lines resizable? i mean i should be able to select them like controls and resize with mouse? i can move them but how to resize?

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    i am using a panel because my app is used for making diagrams, so al objects other than lines are user controls, and secondly how to do that in memory,Do you mean that i shoul draw lines manually on the bitmap i am gonna save?

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    @sameer i am doing that in onpaint event only and they don't diappear in maximize minimize

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    Point ps = new Point(l1.Source.X - 110, l1.Source.Y - 50); Point pd = new Point(l1.Destination.X - 110, l1.Destination.Y - 50); Graphics graph = this.MainPanel.CreateGraphics(); Pen penCurrent = new Pen(Color.Red,4); penCurrent.EndCap = LineCap.ArrowAnchor; graph.DrawLine(penCurrent, ps, pd); penCurrent.Dispose(); This is the code for line drawing, these are drawn no a panel which is located at 110,50 hence the adjustments, or u mean to save here that i should save the form, i tried saving the whole form but then also i have no lines

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    Bitmap bp = new Bitmap(900, 800); MainPanel.DrawToBitmap (bp,new Rectangle(0,0,900,800)); bp.Save(filename + ".bmp"); Mainpanel is the panel where al work is done and 900*80 is the size

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    Acrually only lines disappear as they are drawn using GDI, i have saved the start and end point of the line in an rraList, the lines are not coming rest evrything is there, they are redrawn on page invalidation,sohelp if any solution out

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • Lines disappear
    S ssoffline

    Hi i have a made an app where you can draw things like lines graphics etc.,the problem is that when i save it there are no lines in bitmap, though all the physiacal controls like labels are there , but no lines or graphics why?

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# graphics help question

  • uerasable lines
    S ssoffline

    Not that, i mean lines are there, but as i move other objects (not lines), then they may move over any of the line may be one or more, how to detect that, u need to redraw then.

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# csharp help tutorial question

  • uerasable lines
    S ssoffline

    ya i know about that , how will i detect that which line to redaw among so many lines, this is the main problem how to get the rectangle at the right place

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# csharp help tutorial question

  • uerasable lines
    S ssoffline

    hi First do it then answer me, imagine a scenario where 5 or ten lines are there, and also 5 or 6 controls object on the same board which you can move with mouse,so first question how will you know which line to refresh or redraw, the even if u redraw then the flickers are so high that it doesn't look nice, plus then as i said it's reversible lines , so when some part of it is missed and then i redraw, that missed part gets erased permanently, it's easier said than done my friend , pls try it.

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# csharp help tutorial question

  • v1.1 equivalent of v2.0's "List" class??
    S ssoffline

    use arraylist

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# question sysadmin windows-admin data-structures announcement

  • uerasable lines
    S ssoffline

    i knw that and i hv done it the problem is that it's a reversible line and this is done using controlpaint. this line is drawn only w.r.t. a form and not a control as far as i kinw, so hw to do that, to make it simple let us say u re drawing a line like mspaint, hw to handle that sort of line?

    Sameer Sood Microsoft Student partner NIT Durgapur,india

    C# csharp help tutorial question

  • uerasable lines
    S ssoffline

    Hi I am developing an application for making data flow diagrams in c#, i can move around objects and also draw lines from one point to another, but the problem is that once the lines are drawn and then i move other objects around the lines get erased for obvious reasons how to get rid of that?

    Sameer Sood Microsoft Student partner NIT Durgapur,India :-O

    C# csharp help tutorial question

  • Stretchable and movable line
    S ssoffline

    now that's like a professional Tnx for the replies, i 'll learn gdi+ , bt mikone u must knw that there will be not one but many lines in my case as i am going to make a tool that will make Data flow diagrams like smartdraw, its a college assignment. i 'll try and post again if i have more such problems tnx again

    Sameer Sood :-O

    C# csharp help

  • Stretchable and movable line
    S ssoffline

    ok that is clear bt how to move it and give it funstion like press delete key to delte it and enable selection on it and make it stretchable there are lots of questions, tell me the methods and strategies , i have no idea.

    Sameer Sood :-O

    C# csharp help

  • Stretchable and movable line
    S ssoffline

    tnx for the reply bt i also understand that some events have to be handled, bt the question is how, and wat role does onpaint play here Sameer Sood :-O

    C# csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups