I am creating reports in visual studio and am looking for a way to specify a default font and size apply to a textbox each time I drop one onto the designer.
Update: This is not winforms or webforms development, but using the report designer in visual studio. My biggest issue is that a text box by default is .25 inches in height and after I change the font from Arial, 10pt to Tahoma, 8pt the textbox needs to be changed to .2 inches in height.
Folks, I could be off-base here, but based on the tags (specifically, ssrs-2008 — SQL Server Reporting Services), I’m guessing the original poster isn’t referring to WinForms nor WebForms (where answers by @pablito and @jmein would apply).
I had the same issue in the SSRS under VS2005. My team got around it by laying out the entire report first, with no formatting at all. After the entire report was laid out, we painstakingly shift-clicked to select multiple report elements at a time, and then set the properties accordingly.
If you’re intimately familiar with the report XML format, you could also attempt to to run the report file through an XSLT transformation to add the appropriate missing formatting XML. If you got this working, it’d be SLICK, but I personally wouldn’t go to the trouble unless I knew I’d need that exact same formatting on multiple reports.