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
S

SeeBees

@SeeBees
About
Posts
20
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How many of you use WPF
    S SeeBees

    At least, WPF has better performance than GDI+. And I love this tech, for all the new stuffs it brings.

    The Lounge graphics game-dev csharp wpf winforms

  • How to programmatically change text to underlined style in RichTextBox?
    S SeeBees

    :) Thanks for all the suggestions you give!!!

    C# help tutorial question

  • How to programmatically change text to underlined style in RichTextBox?
    S SeeBees

    This one is really helpful, thank you!

    C# help tutorial question

  • How to programmatically change text to underlined style in RichTextBox?
    S SeeBees

    Thank you. :-D Your suggestion worked. I splitted my multi-font-selection into several homogeneous parts, selected each part and underlined them one after another. Finally I restored the original selection. However, as I try out the program, it flickers.

    C# help tutorial question

  • Threading problem
    S SeeBees

    Is it such that everything related to UI-rendering should be done in UI thread?

    C# help question

  • How to programmatically change text to underlined style in RichTextBox?
    S SeeBees

    Thanks. Well there's a problem. What if my selection includes multiple fonts? RichTextBox.SelectionFont Property returns null in that case. How can I underline my selection without changing the original fonts?

    C# help tutorial question

  • How to programmatically change text to underlined style in RichTextBox?
    S SeeBees

    Can anybody help me in this? thank you in advance.

    C# help tutorial question

  • Exceptions related to IEnumerator
    S SeeBees

    Yeah, I see, thanks for your neat idea. Then my collection class has to expose an extra property, say Generation{get{}}, right?

    C# tutorial question

  • Exceptions related to IEnumerator
    S SeeBees

    According to MSDN, methods of IEnumerator are expected to throw an exception if the enumerated collection has been modified For Example, List<int> list = new List<int>(); list.Add(1); IEnumerator enumerator = list.GetEnumerator(); enumerator.Reset(); // It' ok to reset the enumerator list.Add(2); // The collection is modified. enumerator.Reset(); // Now InvalidOperationException is raised When implementing the methods of IEnumerator in our own class, we should have them throw the exception if the collection is modified. Now I have a class : class MyEnumerator:IEnumerator{ int[] integers; /// /// Methods /// public void Reset(){ } } How to implement Reset in an elegant way, so that I can throw an InvalidOperationException when Reset is called after integers are modified? Thank you! :-O

    C# tutorial question

  • Load an image from a file
    S SeeBees

    Thank you. You approach is surely better. However, I've found that using the GDI+ provided by .NET, whatever I do, even loading and displaying a single large picture is time consuming. And I don't know the o'thems as you called it. Could you please briefly explain it to me?

    C# performance graphics question code-review

  • Load an image from a file
    S SeeBees

    Thank you. What I wanna do is load all the pictures from a folder and display them all as thumbnails on a panel. For example, I have a folder containing 50 pictures of size 3000 * 2000. I used the Image.FromFile() to load all the pictures. And whenever a single picture was loaded, I used Graphics.DrawImage() to render it on the panel in no delay. That's where the problem comes. The pictures came out at a incredibly low speed. Compared to Adobe Bridge, ACDSee or other softwares of that kind, I think although my algorithm may be inpropriate, there should be a better way to load and display images than using the .NET GDI+.

    C# performance graphics question code-review

  • Load an image from a file
    S SeeBees

    I'm trying to load an image from a file and then draw it. I found out the speed is quite unacceptable. This is the case especially when I want to render several images simultaneously using Image.FromFile() and Graphics.DrawImage(). I wonder if there's any other way to improve the performance while rendering images?

    C# performance graphics question code-review

  • When is the PictureBox redrawn?
    S SeeBees

    Hello everyone I've written a little application to load pictures and display them on a windows form at the same time. What I've done is put a group of PictureBoxes onto a scrollable panel, and let the PictureBoxes draw their contained images. However, I find it's very unefficient. When I scroll the containing panel up and down, the already drawn PictureBoxes are redrawn again, which is quite undesirable. So I'm wondering which event causes the PictureBoxes to be redrawn? And when will the event be raised? Worse still, I even have no idea which one is doing the actual drawing job, the PictureBoxes or the containing panel? Can anyone help me with this? Thank you!

    C# graphics help question career

  • What is HandleCreated Event?
    S SeeBees

    Thanks for your helpful explanation.:-D

    C# question csharp

  • What is HandleCreated Event?
    S SeeBees

    Hello, I've recently found stranged things could happen when I set up an event handler for the HandleCreated Event in C# windows controls. So what is HandleCreated Event? When will it be raised? Thanks in advance.:)

    C# question csharp

  • Abstract class implementing interface [modified]
    S SeeBees

    In my previous example, the abstract B results in an error if it doesn't contain method A.A(). So I guess it is necessary to implement an interface even in an abstract class:-O

    C# csharp question

  • Abstract class implementing interface [modified]
    S SeeBees

    Thanks, but why won't the following code compile? using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { interface A{ void A(); } abstract class B : A { // public abstract void A(); } } I got an error! The compiler says I should implement A.A() in abstract class B.

    C# csharp question

  • Abstract class implementing interface [modified]
    S SeeBees

    There's an abstrat class in .NET public abstract class CollectionBase : IList, ICollection, IEnumerable{...} However, No definition or declaration of IList's functions are found in CollectionBase. How could this ever happen? If it's an abstract class, it's allowed to not implement its interface? Thanks everybody:-D

    C# csharp question

  • Properties Window in windows programming~ [modified]
    S SeeBees

    Thanks for your advice!:-O

    C# question csharp

  • Properties Window in windows programming~ [modified]
    S SeeBees

    Hello, everyone. I was working on a windows program with C#, and wanted to associate my PictureBox component with a ContextMenu. I searched into the Properties Windows, only to find a ContextMenuStrip property there instead of a ContextMenu. Then I was unable to set the property using the Properties Window which would otherwise save me a lot of troubles. So here comes my question. Since not all the properties of a component are displayed on the Properies Window, can I manually put the ContextMenu or some other property onto the Properties window? Or there's just no way for me to customize the Properties Window like that? :-O -- modified at 6:25 Saturday 20th October, 2007

    C# question csharp
  • Login

  • Don't have an account? Register

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