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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
G

geali_dor

@geali_dor
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to convert a string with linq query content
    G geali_dor

    I guess the only way to execute a dynamic linq-statement at all is to generate a dynamic code at runtime and use the statement as only dynamic part. for more information i found this page for example i've just googled for that hope this helps!

    hack the planet

    LINQ csharp database linq help tutorial

  • Override Text property in GroupBox
    G geali_dor

    Did you copy the source from your Visual Studio direct in here? If it's like that, you won't be able to compile the code anyway, because you are missing the type of your Text property

    public class ExpandableGroupBox : System.Windows.Forms.GroupBox
    {
        public ExpandableGroupBox()
        {
            base.Text = "";
        }
    
        public override **string** Text
        {
            get
            {
                return label.Text;
            }
            set
            {
                label.Text = value;
            }
        }
    }
    

    hack the planet

    Windows Forms csharp visual-studio question

  • Flickering Problem [modified]
    G geali_dor

    Hey there, i am programming a charting Libary for my Financial Suit. Therefore my idea was to have a Panel that has Lists of all my shapes (Line, Pie, Bar etc.) Wenn i resize my Panel the whole shapes are flickering very much. i googled and codeprojected a few days but i got no satisfying answer.

    Control.SetStyle(ControlStyles.OptimizedDoubleBuffer, true)

    ...does unfortunately not work, because, when i set this style, the shapes only appeare frequently on resizing, but when the resizing is finished (MouseUp) the Panel is empty (white; and if i override the OnPaintBackgound and comment the base.OnPaintBackgound out it is black) Does anyone know about this problems or had the same? Do i need some more Styles etc? Do i have to override some methods or properties? [Edit] Hey there, i finally figured it out: the problem is, if i use Control.SetStyle(ControlStyles.OptimizedDoubleBuffer, true) and an object uses Control.CreateGraphics() it will only be painted while resizing and not when resizing is finished! Now i'm using public void Draw(Graphics g) instead of public void Draw(ChartingSketch sketch) and now it works!! [/Edit]

    hack the planet

    modified on Sunday, September 13, 2009 4:28 AM

    Windows Forms wpf graphics help question

  • Form Resizing and Docked Controls
    G geali_dor

    Hey there, if you change the form's or any controll's size to smaller, i guess it won't repaint, but there is a possibility to tell the form/controll to do so:

    public ExampleForm()
    {
    this.SetStyle(ControlStyles.ControlStyles, true);
    }

    hope this helps!

    hack the planet

    Windows Forms help winforms question announcement
  • Login

  • Don't have an account? Register

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