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
A

A Wegierski

@A Wegierski
About
Posts
79
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help combing rows to columns
    A A Wegierski

    Only manually. Add prices as strings with separator ... use hashtable as intermediate Hashtable ht=new Hashtable(1); foreach(DataRow dr in myTable.Rows) if(ht.Contains(dr["id"]) ht[dr["id"]]=ht[dr["id"]].ToString()+","+dr["price"].ToString(); else ht.Add(dr["id"],dr["price"].ToString(); Next, clear DataTable and copy Hashtable into it. Not tested Hi, AW

    Database database help tutorial question

  • Exit statment in visual C#
    A A Wegierski

    Sorry Hi, AW

    C# csharp help

  • C++ Bit Fields implementation in C#
    A A Wegierski

    C# has constants too Hi, AW

    C# question csharp c++ help

  • How to use variable in property (attribute)
    A A Wegierski

    Thx for all Hi, AW

    C# tutorial question

  • Event in visual C#
    A A Wegierski

    Web or Win Form? There are some events and properties in WinForm to see keyboard: KeyPreview, KeyPress, KeyDown etc. See EventArgs and KeyData, KeyChar, KeyCode properties. Hi, AW

    C# csharp help tutorial

  • C++ Bit Fields implementation in C#
    A A Wegierski

    Use BitArray(sealed) or BitVector32 or try to create new class using uint and next define set/get properties: private uint a=0; public uint A { set { A=value; } get { return a; } } public uint A0 { set { a &= 0xFEU; if(value>0) a+=0x1U; } get { return a & 0x01U; } } ... Hi, AW

    C# question csharp c++ help

  • Get currently active window
    A A Wegierski

    Form.ActiveForm or Form.ActiveMdiChild static methods. But use myDialogWindow.ShowDialog(this) method I think. Hi, AW

    C# csharp question

  • Exit statment in visual C#
    A A Wegierski

    Application.Exit() static method. See help Hi, AW

    C# csharp help

  • How to use variable in property (attribute)
    A A Wegierski

    I want to use a variable (or constant) in following class property: [EventTrackingEnabled(true),ObjectPooling(true,1,50)] public class Aktualizacje : ServicedComponent {... instead of number 50 in many classes in many projects of one solution. Is it possible? Thx in adv Hi, AW

    C# tutorial question

  • How can I find resource values like Cut/Copy/Paste names in Win?
    A A Wegierski

    I thought I can get option names from standard context menu for right mouse click. Thx. Hi, AW

    C# question csharp tutorial learning

  • How can I find resource values like Cut/Copy/Paste names in Win?
    A A Wegierski

    I want to get international names of menu items on mouse right click. How to get them using standard .net classes without using Win functions? Hi, AW

    C# question csharp tutorial learning

  • Customizing buttons
    A A Wegierski

    Use simply labels and change their borders after click on them (create Your own inherited "RadioLabel" control). May be, You can use another control instead all "radiolabels" ... combobox etc. Hi, AW

    C# csharp tutorial question

  • How to avoid menu on RMouse button
    A A Wegierski

    It's right. But I thought, that someone could solve this problem in simpler way. Thx. Hi, AW

    C# tutorial question

  • How to avoid menu on RMouse button
    A A Wegierski

    I use right mouse button to open next form in overridden OnMouseDown() method in overridden DataGrid (standard DataGrid works ok). Before this, automatic menu (copy, paste etc.) is opened - while creating new form. How to avoid it? Only OnKey...() has Handled property - but OnKey isn't fired. -or- How to add my item to automatic menu (copy, paste etc.)? Thx in advance. Hi, AW

    C# tutorial question

  • ComboBox in DataGrid
    A A Wegierski

    To see ComboBox in DataGrid always - try to override Paint method in suhass'es example. To avoid extra row set DataGrid ListManager protected property: (DataView)(myDataGrid.ListManager.List).AllowNew=false; Hi, AW

    C# css help

  • Add typed DataTable from one DataSet to another DataSet
    A A Wegierski

    1. I think it's impossible to have one table into two datasets 2. Try to use one dataset or copy table with data Hi, AW

    C# question

  • Overriding DataGrid::OnPaint
    A A Wegierski

    I use OnPaint in DataGrid to autosize one of their columns. It works unexpectedly good ... with some exceptions (not Exceptions). In some cases it gives neverending loops. Now I'm working on it. Hi, AW

    C# question

  • DataSet, DataRows etc.
    A A Wegierski

    :laugh:Thx Hi, AW

    C# help database question

  • DataGrid alterations...
    A A Wegierski

    Add next table to the DataSet with Your dictionary and create relation into it. See Expression property of DataColumn. It can do this association. Hi, AW

    C# database question

  • DataSet, DataRows etc.
    A A Wegierski

    You have more than one row and DataRow object doesn't contain Columns objects. See help on Data namespace. Should be: foreach(DataRow dr in dsDBData.Tables[0].Rows) { MessageBox.Show(dr[0].ToString()); } Hi, AW

    C# help database question
  • Login

  • Don't have an account? Register

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