Set codepage of forms in a setup and deployment project - visual-studio-2010

I have a setup and deployment project (VS 2010) and I added TextBox Form in the UI view. The text I want to show to the user is not English, it's Greek. When I run the msi, the text looks more like an ancient dwarven language.
Now, I don't want to localize the whole msi (i don't want alternative texts for different languages and all this stuff). I just want this particular text to show properly. Is there a way to set the code-page the msi will use?

Usually MSI has code page set to 1252 for English.
For displaying Greek characters, the code page must be set to 1253. \
English text will be still displayed correctly.
You need to set the correct LangId for your Product, and set the code page in the Summary Tabel. For more information see Code Page Handling.
I cannot provide guiding as to where this is set in the Visual Studio deployment project.

Related

NSIS Uninstall Feedback Dialog with Radio Buttons

I am trying to show a simple dialog before uninstall in NSIS. It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. Uninstallation cannot continue until a user selects one of the radio buttons.
As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). As well as 2 more text fields for custom text and email.
Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; or laternatively construct a POST request to a predefined URL using InetC or similar plugin. I cannot figure out how to create such a dialog page. Any help would be appreciated.
What I am looking for:
First, you should get familiar with nsDialogs to create the interface according to your needs. Since nsDialogs is a function, you would then can call it as a custom page.
You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code.
(If you are "writing" the installer - I assume you have some experiences with nsDialogs).
Also there are some other tools like NSIS Dialog Designer (http://forums.winamp.com/showthread.php?t=329801) which can help you and generate lot of code for you.
This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts!

change default font SSRS Visual Studio

I have been searching hi and lo, within and outside internet but it seems I cannot find a definitive answer:
Can I change the default layout-items in SSRS reports? If so, how?
So that a textbox does not have Arial 10 as default fontsize but has fontsize 8?
So that tablixes have default properties like 'show column-headers on each page' enabled?
and so on?
I am familiar with custom templates (.rdl) but they do not offer the possibility of changing layout-items like default font and colors and properties of report parts and such.
In VS 2005 there was the StyleTemplate to play with but that is only effective when using the wizard.
It seems it is the same way with VS 2010.
I prefer to hear that it can be done and instructions how to, I would be satisfied with tips how to circumvent the problem of manually changing those properties eacht time and I will be grateful for a definitive answer. Right now it is driving me crazy :)
I am working with VS2010 (latest updates and such) icm SQL 2008, 2008R2 and (local) 2012BI
Thanks for thinking with me!
Unfortunately by design, you are not allowed to set default font etc. There is active defect in Microsoft https://connect.microsoft.com/SQLServer/feedback/details/574003/modify-the-default-font-family-for-sql-server-business-intelligence-development-studio-while-creating-a-report#
I know it's a very old post, but for others in search of an answer, I thought I'd add the following. If I want all my textboxes in a font other than Arial 10pt, I will make the first textbox and set my font styling, then use that as a master textbox, copying it and changing the interior text rather than creating new textboxes each time. It's a hack, but since VS still can't do this in 2015, it's the best we have.
You can always open code(XML)-view and edit font properties there. Eg. search for
<FontFamily> -tag and add <FontSize>10pt</FontSize> as a sibling for <Style>-tag.
Before editing the XML, close report design-view. Otherwise properties of objects are not functioning properly.
At the start of the XML for the RDL file (what you see if you select View Code on the file) there's a tag <df:DefaultFontFamily> which defines the default font. If you change this to the family you want and re-save the XML file, any future textboxes you create will pick up this default font family.
The FontSize property must be in npt format. If this property takes the value from an SQL query that returns an integer, add the expression by adding "pt": (for example, = Fields! DimFont.Value & "pt").

Specify the language of the app in the marketplace?

I just tried to submit my new Windows Phone 7 app to the Market Place and realized that apparently I have set English as my project language instead of German. In the app hub application submission walkthrough - step 2 it says
Provide the following information to submit your application. You'll repeat these steps for each language that your XAP package supports.
And in the next page as the only "supported language" English is shown.
How can I put German instead?
Thanks
PS: Does it even matter? What if I just provide a German description even though it says English?
Your changing the native language of the app. Open properties of your project, get the assembly info and you should see a list of languages (I'm not exactly sure as dont have VS on this machine).
The other option is to add / change the NeutralResourcesLanguageAttribute in the assemblyinfo file. The new version would look like:
[NeutralResourcesLanguageAttribute("de")]

Custom controls in Visual Studio Lightswitch

Can someone point me to an article or tutorial on using custom controls in Visual Studio Lightswitch? I'm trying to add a rich text box to a page, linked to a string property. When running the app, sometimes the field will show up, sometimes it won't. If it does show the width of the field is small, about 2 characters, but will expand when text is pasted inside. Saving doesn't work, though.
I'm not even sure about whether or not I'm allowed to use controls like these in a Lightswitch app, even though custom controls are obviously supported. Are the custom controls restricted to a certain type or set?
Thanks in advance for any assistance.
W.
Have a look at the following example, http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/10/LightSwitch-Student-Information-System-Part-3-Custom-Controls.aspx
Also the Training Kit has examples of Custome Controls included.
There is also this tutorial:
Creating A LightSwitch Custom Silverlight Control
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx

Visual Studio 2010 code display colour scheme - where do I find some properties?

I'm working on my own colour scheme for displaying code in visual studio. I can't find some text section name so I don't know where to change its colour. :( Can anybody help me and tell me where do I find them, I mean what is the name of the following sections:
The grey one (documentation tag value and it's quote) - picture below
(source: yfrog.com)
The olive colour: header of a asp.net in vb language document. - <% and underline.
http://img12.yfrog.com/img12/7375/headerqt.png (NOTE: image is now broken)
To write my code I use vb.net language.
XML Doc comment, XML Doc Quote should be what your looking for. VB user types, User types and keyword also.
You might want to save yourself some time, i just did my color scheme, which i call Steam (based on Steam Platform from valve). It kind of looks like what your going for
I can't post a screenshot since i am new, but here is a download link. You can import it via the tools menu in VS. It includes resharper color settings.
Steam for VS 2010/08
The first one is XML Doc Attribute.
The second one is HTML Element Name.

Resources