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
Z

ZejulioZ

@ZejulioZ
About
Posts
9
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to order ToolStrip
    Z ZejulioZ

    Might sound like a silly question, but jeez it's really not obvious to make those toolstrips behave. I'm really really interested in the solution too ! :)

    C# help tutorial lounge

  • PropertyGrid : Remove properties at runtime
    Z ZejulioZ

    Oups sorry about that, propertyGrid1 is a System.Windows.Forms.PropertyGrid control.

    C# css design help question

  • PropertyGrid : Remove properties at runtime
    Z ZejulioZ

    Hi, I've some issues using property grid features, more specifically removing properties from the propertyGrid's selected object. I want to edit the properties of the class at runtime, and dynamically remove some of them depending on some criteria. The attribute [Browsable(false)] does not do what I need since it does not allow me to dynamically select what to remove, and invoking Properties.Remove in the component.PreFilterProperties method is more what I'm looking for. Unfortunately, and contrary to all the msdn's articles I've read on the subject, what I'm doing is not working as expected. Here is a snippet to illustrate my point : -------------------------------- entity = new Entity(); entity.MyValue = "Hello world !"; propertyGrid1.SelectedObject = entity; [Designer(typeof(Entity.EntityDesigner))] public class Entity : Component { public Entity() { } private string myValue; public string MyValue { set { myValue = value; } get { return myValue; } } public class EntityDesigner : Component { public EntityDesigner() { } protected override void PreFilterProperties( IDictionary Properties ) { base.PreFilterProperties( Properties ); Properties.Remove("MyValue"); } } } -------------------------------- The 'entity' class is never instantiated, and I suspect this is because it will only be done at design-time and not runtime, could you confirm this ? Or am I missing something else ? Thanks for the help, Julien

    C# css design help question

  • mpeg2 library
    Z ZejulioZ

    Hi everyone, I'm looking for a mpeg2 decoder library. What I'm doing is a network mpeg2 player. The mpeg2 stream format is a bit particular, thus I get rid of the non-mpeg2 information and transmit it to a library. The one I'm using now as a proof of concept is libmpeg2. But legally I won't be able to use it in a commercial use without give the source code which is impossible. ( libmpeg2 is a GPL library ). Do you know any worthwhile interesting mpeg2 libraries, usable in a commercial purpose ? Thanks a lot. Julien

    IT & Infrastructure sysadmin question

  • read stream to unmanaged memory
    Z ZejulioZ

    That's interesting. Do you know what is actually GCHandle.AddrOfPinnedObject doing behind ? Because I'm not sure C# arrays are contiguous like C/C++ arrays are. And I profit to ask you; have you compared both methods efficiency ( GCHandle / standard Marshal.Copy ) ? Thanks for the hint anyway :D Julien

    C# performance question career

  • read stream to unmanaged memory
    Z ZejulioZ

    Is there any ways to read directly and rapidly from a stream to an unmanaged buffer ( IntPtr or byte* ) without having to do a convertion from the byte[] to the IntPtr through Marshal.Copy method ? More clearly, I want to avoid this Marshal.Copy : byte[] b = new byte[1024]; int size = theStream.Read(b, 0, 1024); IntPtr bufferPtr = Marshal.AllocHGlobal(size); Marshal.Copy(b, 0, bufferPtr, size); Apparently there is a UnmanagedMemoryStream class coming along with winFx doing the job, but I'm looking for something usable with the framework 1.1 Thanks a lot, Julien.

    C# performance question career

  • Child form, which stays in front
    Z ZejulioZ

    Make it modal. When you load you're authentification form, call theAuthForm.ShowDialog(parentForm); and that's probably enought but if you are looking to have the dialog abolutely on the top of all the others application windows , try the property theAuthForm.TopMost=true. I hope I've correctly understood your question. Julien

    C# security

  • GDI+ question
    Z ZejulioZ

    I haven't tought to mix GDI and GDI+, that's definitely a good idea.. Thank you for the explanations about the anti-aliasing processing. thanks, thanks, thanks :)

    C / C++ / MFC graphics question c++ winforms learning

  • GDI+ question
    Z ZejulioZ

    Hi I'm using GDI+ for a C++ application which is a great library. But this library sooo powerfull is not able to do a simple thing I need to do :( I have a picture 1 x 10 px that I want to stretch to a very flat 100 x 10 px. As result I have a wonderful alpha gradient which is not what I want. Of course I tried to change the interpolation mode to InterpolationModeNearestNeighbor which give me a better result but still not perfect since and - I don't why - the area painted is not completly filled. There is the very simple code : // Load in some initialisation function // a 1 x 100 picture sized m_pBitmap1 = Bitmap::FromFile( csFilename.AllocSysString() ); // Then in onpaint method CPaintDC dc(this); Graphics graphics(dc.m_hDC); graphics.SetInterpolationMode( InterpolationModeNearestNeighbor ); graphics.DrawImage(m_pBitmap1, 0, 0, 100, m_pBitmap1->GetHeight()); Can somebody provide me some explainations or even better... a solution ? :) Thanks

    C / C++ / MFC graphics question c++ winforms learning
  • Login

  • Don't have an account? Register

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