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
C

cinias

@cinias
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Label printing with c#
    C cinias

    There are some options to do it. One is that with Zebra printers you are receiving also software to create labels fe. Zebra Designer. You can create tamplate in this software, save it as text file (it will be ZPL language) and in your application you will read this template then you will do string replace with your data and send it all as text to the printer. Other option is to generate pdf file in your app and send pdf file with your label to printer. But printer will need to support it.

    C# question csharp

  • UserControl and Collections in Designer
    C cinias

    Hello, I've wrote UserControl where one of properties is collection. Item of collection is object of type GroupClass. Code below: [Serializable] public class GroupClass { private string pGrpupName; private Control pGroupControl; [Category("Group")] [Description("Definition")] public string GroupName { get { return pGrpupName; } set { pGrpupName = value; } } [Category("Group")] [Description("Definition")] [Browsable(false)] public Control GroupControl { get { return pGroupControl; } set { pGroupControl = value; } } } And after when I add item to collection also groupbox should show on UC. I've override some methods in my Collection. It works. But it doesn't when I try to remove item in designer. Groupbox is still there and method RemoveItem doesn't works :( public class WRListClass<T> : Collection<T> { public event EventHandler<ItemInsertedArgs<T>> BeforeItemInserted; public event EventHandler<ItemRemovedArgs<T>> BeforeItemRemoved; public event EventHandler<ItemSetArgs<T>> BeforeItemSet; public event EventHandler<ItemInsertedArgs<T>> AfterItemInserted; public event EventHandler<ItemRemovedArgs<T>> AfterItemRemoved; public event EventHandler<ItemSetArgs<T>> AfterItemSet; public event EventHandler ListChanged; protected override void InsertItem(int index, T item) { EventHandler<ItemInsertedArgs<T>> beforehandler = BeforeItemInserted; EventHandler<ItemInsertedArgs<T>> afterhandler = AfterItemInserted; EventHandler handlerListChanged = ListChanged; if (beforehandler != null) { beforehandler(this, new ItemInsertedArgs<T>(index, item)); } base.InsertItem(index, item); if (afterhandler != null) { afterhandler(this, new ItemInsertedArgs<T>(index, item)); } if (handlerListChanged != null) { handlerListChanged(this, null); } } public new bool Remove(T item) { return base.Remove(item); } public new void RemoveAt(int index) {

    C# database
  • Login

  • Don't have an account? Register

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