Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Author filtered by: Roman Lerman [x]
Answer 9 Apr 2013   license: CPOL
Please see these examples:1. Automatically Filtering a ComboBox in WPF [^]2. A Reusable WPF Autocomplete TextBox [^]
My vote of 5 by Roman Lerman
Forum Message 31 Dec 2012  
I enjoy reading your articles.
My vote of 5 by Roman Lerman
Forum Message 31 Dec 2012  
I enjoy reading your articles.
My vote of 5 by Roman Lerman
Forum Message 23 Sep 2012  
Simplicity
Answer 9 Aug 2012   license: CPOL
1. Animate multiple transforms from C# – WPF[^]2. Animated SkewTransform Example[^]SkewTransform Class[^]
Answer 8 Aug 2012   license: CPOL
Save the Form & other controls as Bitmap[^]This code is checked and working at least for me. Also provided example of SaveFileDialog usage. public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Load+=new...
C#
Answer 10 Jul 2012   license: CPOL
See my answer here I want read from the file and write line by line it in another file.[^]
C#
Answer 10 Jul 2012   license: CPOL
Here is sample code. It may be good example of what you need to do. That code is not tested!void Foo(string inputFilePath, string outputFilePath) { try { if (File.Exists(inputFilePath)) { //open...
C#
Answer 8 Jul 2012   license: CPOL
I Hope that this is going to help you.You need to use keyboard hook[^] or Low-level Windows API hooks from C#[^]to handle the ctrl+s key press and then use Process.Start Method ()[^] to run 'explorer.exe'.
C#
Answer 7 Jul 2012   license: CPOL
This is what you need Virtualizing WrapPanel[^]
WPF
Answer 4 Jul 2012   license: CPOL
I found one.Implement a basic IP Scanner for a local LAN in C#[^]
Answer 3 Jul 2012   license: CPOL
HiYou can use SevenZipSharp[^] but you have to understand yourself how to use this library. Example(read the documentation how to use it right):using (SevenZipExtractor sevenZipExtractor = new SevenZipExtractor(source_path, pwd)) { ...
C#
Answer 3 Jul 2012   license: CPOL
Use DispatcherTimer[^]System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);dispatcherTimer.Interval = new TimeSpan(0,0,1); // 1 secdispatcherTimer.Start();private...
Answer 1 Jul 2012   license: CPOL
This may help youpseudocode+sampleHiding:Skip steps 1&2 if you know the drive letter1. Find removable drives:foreach (DriveInfo driveInfo in DriveInfo.GetDrives()) { if (driveInfo.DriveType == DriveType.Removable ) { 2....
C#
Using C++ library in C# by Roman Lerman
Answer 20 Jun 2012   license: CPOL
Generated by P/Invoke interop assistantpublic partial class NativeMethods { [System.Runtime.InteropServices.DllImportAttribute("", EntryPoint="oemGetImage")]public static extern System.IntPtr oemGetImage(ref byte[] pImageBuffer, ref uint pdwSize, ushort...
Answer 20 Jun 2012   license: CPOL
In .net 3.5using (Process proc = new Process()) { proc.StartInfo.UseShellExecute = false; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; ...
checkBoxList in Wpf by Roman Lerman
Answer 20 Jun 2012   license: CPOL
Sample code here http://www.c-sharpcorner.com/uploadfile/syedshakeer/checkboxlist-in-wpf/[^]and here http://social.msdn.microsoft.com/Forums/eu/wpf/thread/a355a085-2650-45b6-a75b-b6a298e3f20d[^]
Answer 20 Jun 2012   license: CPOL
Create each control derived from Panel and Interface. Then you can load/unload each panel dynamically. Load = attach child to Panel2, unload = detach child control.You can hold those panels in some dictionary or list for example "List" where key is the name of panel and value is the...
C#
explain the error please by Roman Lerman
Answer 20 Jun 2012   license: CPOL
Take a lookhttp://support.microsoft.com/kb/312629/EN-US/[^]http://stackoverflow.com/questions/2041482/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is[^]
C# Round Up Values !!! by Roman Lerman
Answer 14 Jun 2012   license: CPOL
Hi,val = System.Math.Ceiling(val);Have a nice day
Answer 6 Jun 2012   license: CPOL
Hello1. Integrate No-IP[^]2. Bind your server`s dynamic ip address to DynDNS.org[^]3. C# class to update DynDNS[^]I was glad to help you.Roman
Answer 23 Apr 2012   license: CPOL
How to detect Windows shutdown or logoff[^]
Answer 18 Apr 2012   license: CPOL
Hi.NETPlat...
Answer 18 Apr 2012   license: CPOL
HiIs that what you meant?Hosting EXE Applications in a WinForm project[^]I hope it's helps.Roman
Answer 18 Apr 2012   license: CPOL
Hi,Here is some tutorials: 1. from wpftutorial.net Drag and Drop in WPFl[^] 2. from Codeproject WPF Drag-and-Drop Smorgasbord[^]I hope it's helpsRoman
C#
Problem while viewing image by Roman Lerman
Answer 5 Apr 2012   license: CPOL
HiAdd the image to project and set its "Build action" to "Resource".XAML:Like this:ororI hope it helps.
WPF
Answer 1 Apr 2012   license: CPOL
HiThis is what you need: Getting installed app path in C#[^]Or private const string keyBase = @"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths";private string GetPathForExe(string fileName){ RegistryKey localMachine = Registry.LocalMachine; RegistryKey fileKey =...
Rendering WPF Controls by Roman Lerman
Answer 1 Apr 2012   license: CPOL
HiSeems that you aren't using Binding. I have had same problem and I solved it by using Binding.Look at the example - How to Navigate, Group, Sort and Filter Data in WPF[^]Note: Grouping disables virtualization! This can bring huge performance issues on large data sets. So be careful...
Answer 31 Mar 2012   license: CPOL
WPF - How can I make a brush that paints graph-paper-like squares?[^]As i understand you want to draw a grid.I am using approach that posted above, for drawing ECG like paper in my application. DrawingBrush is what you need, draw 2 lines and then use the TileMode="Tile"...
Answer 29 Mar 2012   license: CPOL
Next time use search optionHow to convert a numeric value or currency to English words using C#[^]First match from Google searchConvert Numbers to Words in C#[^]Another nice solutionConveting Number to Word in C#[^]GIYFHave a nice day
Retrieving time from bios by Roman Lerman
Answer 29 Mar 2012   license: CPOL
GIYFHow i get the BIOS Date and Time using c#[^]
Reload Data's in grid view. by Roman Lerman
Answer 29 Mar 2012   license: CPOL
Hi1. Use DataSet to keep the DataTable.2. Use DataSet.WriteXml(stringFileName) to save the data in XML format.3. Use DataSet.ReadXml(stringFileName) to load the data from saved XML file.Examples[^]Have a nice dayRoman
Answer 26 Mar 2012   license: CPOL
Probably MyTextbx and MyComboBx not been yet initialized when the ListBx_SelectionChanged is handled.Try to check MyTextbx and MyComboBx for null private void ListBx_SelectionChanged(object sender, SelectionChangedEventArgs e){ if(MyTextbx!=null && MyComboBx!=null) { ...
WPF
Answer 25 Mar 2012   license: CPOL
Use the CodeProject search engine...Exporting DataGrid to Excel, Word and Text Files[^]DataTable to Excel[^]Export DataGrid to Excel[^]
Answer 25 Mar 2012   license: CPOL
Use the CodeProject search engine...Serialization in C# .NET II - XML Serialization[^]Working with XML[^]Easy XML Parsing in C#[^]Serialize and Deserialize Objects as XML using Generic Types in C# 2.0[^]
C#
Answer 15 Mar 2012   license: CPOL
Button.Visibil...
C#
Answer 15 Mar 2012   license: CPOL
GIYF :)ChildWindow.DialogResult Property[^]
Answer 15 Mar 2012   license: CPOL
HiYou can print the document as XPS How to: Programmatically Print XPS Files[^] Then use the GhostXPS GhostXPS[^] to convert the XPS document to PDF.I hope this will help you.Roman
C#
Forum Message 21 Apr 2010  
Window.Icon Property http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx[
Forum Message 24 Oct 2009  
Now it's won't be painful :-D
Forum Message 19 Aug 2009  
XAML <TabControl Name="mainTabControl" > <TabItem MouseUp="TabItem_MouseUp" > </TabItem> </TabControl> CODE private void TabI
Thanks !!! by Roman Lerman
Forum Message 21 Apr 2009  
Try this: this.Validate(); this.customersBindingSource.EndEdit(); this.ordersBindingSource.EndEdit(); Test2DataSet.CustomersDataTable customerCh
Forum Message 21 Apr 2009  
If you use TableAdapterManager your project contain TableAdapters, so try to use them. Sorry for my English.
Forum Message 21 Apr 2009  
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() == Dialog
Forum Message 21 Apr 2009  
1: try to remove -> this.customersBindingSource.EndEdit(); <- from ordersBindingSource_AddingNew(). or 2: modify private void customersBindingNavigatorSaveItem_Click(objec
Forum Message 20 Apr 2009  
I think you should read this.[
Forum Message 20 Apr 2009  
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 long

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid