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.
Roman Lerman
Posts
-
Loading an external image to WPF App ? -
How i can seletct tabitem on Mouse enter?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);
} -
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]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);
-
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]If you use TableAdapterManager your project contain TableAdapters, so try to use them. Sorry for my English.
-
C# -Savefile Dialog to save an image fileTwo 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 !!!
-
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]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(); }
-
playing multiple video files using axWindowMediaplayer tool !!! -
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency]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.
-
canvas.Focus does not unfocus textboxMy idea is to set Canvas.Focusable Property to True ;)
-
Performance - Memory Usage -
How to import following C DLL function to C# ? [ I am still waiting .... :( ] [Wating no more :)]:( 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