Let's take an example. If your destination directory is named DirA and it already contains a file named AnyFile.txt. When you transfer a newer version of this file (for example by greater timestamp), what would you like the directory to contain?
I need to save font selected by user by Ctrl+MouseWheel in Winforms RichTextBox.
I tried override below but this does not remember font: in this method Font.Size property
seems to be always *initial* Font size when RichTextBox is created, *not* the font size set by ctrl+mouse wheel.
How to find the font size set by Ctrl+Mouse wheel ?
class MyRichTextBox : RichTextBox
protected override void OnMouseWheel(MouseEventArgs e)
Settings.Default.TextBoxFont = new SerializableFont(Font);
Hi at all,
i use a Dataview to show the Data from a xml File. I have the following code to read the xml file:
this.dataGridView1.DataMember = "Document"; // Document =Tag in the xml file
custDV = dsAuthors.Tables.DefaultView; // custDV = Dataview
this.dataGridView1.DataSource = custDV; // Display the data from the view
if i use the rowfilter i see not the rows thye have empty cells.
Dataview.Rowfilter = "City = 'Berlin'";
does anybody know how can i avoid this effect. Or how can i avoid to set empty cells in dataview?
Hi, I have an image in memory as an RGB array, I need to make a fast copy of it?
I access the image in usafe mode using the following pointer byte* p = (byte*)(void*)pBuffer; I need another copy of the data so that I can create a new pointer to it and leave my origional data unaffected.
SELECT product.name AS Name, product.modelNo AS [Model No], product.[desc] AS Description, category.categoryName AS Category,
product.MRSP AS MSRP, product.retailPrice AS [Retail Price], product.[image] AS Img
FROM (category INNER JOIN
product ON category.categoryID = product.categoryID)
When this is being showed on my datagrid, the retail price and msrp is not in currency format. How do i make it either adding a $ sign infront OR having it to be 2 decimal place
This has nothing to do with your SQL query. You need to learn how to use the datagrid specifically how to format things. I suggest you find some beginner articles about using the DataGrid. I imagine there are some here on CodeProject. If you are trying to use the ASP.NET DataGrid you might also want to check out the DataGrid Girl's web site.
I have several high-res (600dpi) TIFF files. I need to stitch these files together into one new high-res (600dpi) TIFF file. I got it working with the standard resolution (96dpi) but i can't get it to work with 400 or 600 dpi. Any help would be welcome!
This is the code i have so far:
Bitmap bmp = new Bitmap((int)imagewidth, (int)imageheight, PixelFormat.Format24bppRgb);
Graphics g = Graphics.FromImage(bmp);
int startpoint = 0;
for (int x = 0; x < bands.Count; x++)
string file = bands[x].ToString();
Bitmap tmp = new Bitmap(file);
g.DrawImage(tmp, startpoint, 0, tmp.Width, tmp.Height);
startpoint = startpoint + tmp.Width;