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
R

Roman Lerman

@Roman Lerman
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Loading an external image to WPF App ?
    R Roman Lerman

    Window.Icon Property http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx[^] Imaging Overview http://msdn.microsoft.com/en-us/library/ms748873.aspx[^] Just read this articles, i hope this information will be helpful.

    WPF wpf csharp question

  • How i can seletct tabitem on Mouse enter?
    R Roman Lerman

    XAML

    <TabControl Name="mainTabControl" >
    <TabItem MouseUp="TabItem_MouseUp" >
    </TabItem>
    </TabControl>

    CODE

    private void TabItem_MouseUp(object sender, MouseButtonEventArgs e)
    {
    if (e.MiddleButton == MouseButtonState.Released)
    mainTabControl.SelectedItem = ((TabItem)sender);
    }

    WCF and WF question

  • Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]
    R Roman Lerman

    Try this: this.Validate(); this.customersBindingSource.EndEdit(); this.ordersBindingSource.EndEdit(); Test2DataSet.CustomersDataTable customerChanges = null; Test2DataSet.OrdersDataTable orderChanges = null; customerChanges = (Test2DataSet.CustomersDataTable)this.test2DataSet.Customers.GetChanges(); orderChanges = (Test2DataSet.OrdersDataTable)this.test2DataSet.Orders.GetChanges(); if (customerChanges != null) this.customersTableAdapter.Update(customerChanges); if (orderChanges != null) this.ordersTableAdapter.Update(orderChanges); // Error has been occured in this line this.tableAdapterManager.UpdateAll(this.test2DataSet);

    C# help announcement

  • Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]
    R Roman Lerman

    If you use TableAdapterManager your project contain TableAdapters, so try to use them. Sorry for my English.

    C# help announcement

  • C# -Savefile Dialog to save an image file
    R Roman Lerman

    Two things: 1: SaveFileDialog save = new SaveFileDialog(); save.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"; save.Title = "Save the File"; if(save.ShowDialog() == DialogResult.OK) Use this to prevent exception on Cancel click { string fName = save.FileName; if (save.FileName != "") { System.IO.Stream fileStream = (System.IO.FileStream)save.OpenFile(); switch (save.FilterIndex) { case 1: this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Jpeg); break; case 2: this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Gif); break; case 3: this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Bmp); break; } fileStream.Close(); } } } 2: Set Buttons Image Property !!!

    C# csharp graphics help

  • Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]
    R Roman Lerman

    1: try to remove -> this.customersBindingSource.EndEdit(); <- from ordersBindingSource_AddingNew(). or 2: modify private void customersBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.customersBindingSource.EndEdit(); this.ordersBindingSource.EndEdit(); DataTable changes = null; changes = your datatable here.GetChanges(); if (changes != null) { TableAdapter.Update(changes); } your datatable heree.AcceptChanges(); }

    C# help announcement

  • playing multiple video files using axWindowMediaplayer tool !!!
    R Roman Lerman

    I think you should read this.[^]

    C# help database graphics question

  • Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]
    R Roman Lerman

    I found this, may bee it's helps. Make sure you don't modify the access database anywhere in your code without going through the datatable, because if you do the data in the datatable will no longer be synchronized with the database.

    C# help announcement

  • canvas.Focus does not unfocus textbox
    R Roman Lerman

    My idea is to set Canvas.Focusable Property to True ;)

    C# graphics help question

  • Performance - Memory Usage
    R Roman Lerman

    It is normal. See comments here.[^]

    WPF tools performance csharp css wpf

  • How to import following C DLL function to C# ? [ I am still waiting .... :( ] [Wating no more :)]
    R Roman Lerman

    :( I have a native C DLL which contains the following function: int FOO( UINT A, UINT B, int X, int Y, void *(*get_Z)(int, int, void*), void* I, int G, int* &K, int* &L ) throw () ; What should I do to be able to use it in my C# program. The solution: this link[^] Thanks to Henry Minute Roman

    modified on Tuesday, April 21, 2009 7:35 AM

    C# com csharp c++ tutorial 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