is there any command to change all font when i maximize windows in vb? - vb.net

In my program, my default font is fit to small windows but user can maximize windows and then all font is too small when user do that. I would like to increase all font size in all page of my program when user maximize a windows. I can change size for each text but there are too many text that i need to change. Is there any command to change all font in my program ??
Thank you.

If you have not messed about with the fonts in the controls, then they should all be linked via their ParentFont property. So all you have to do is assign a new font to the form they are on and they'll all happily follow suit.
Note you'll need to get your controls resizing properly as well.

Related

How to increase the font size of result text in Azure Data Studio Notebook?

I have found how to increase the font size of about everything except the result text of a code cell in an Azure Data Studio notebook. Zoom works, but is not ideal. Does anyone know of a way to increase the font size of that text?
I have found that using the zoom-in and zoom-out shortcuts ('ctrl+' and 'ctr-' for me) will also increase the text size in the notes/messages pane.
I am using version 1.28.0 and it works that way.
By hitting 'ctrl+shift+p' will also pop up the command palette where you can further customize the shortcuts after searching for 'zoom'.
I hope it will help you, too.

Can the Font for a UWP Drag and Drop (DragUI) caption be changed?

I am implementing drag and drop for a UWP application and all is working well, except for the Font on the DragUI caption.
I have DragUIOverride.IsCaptionVisible = True and DragUIOverride.Caption = "My Text String",
but does anyone know how to change the font? My application uses a unique font and the system font stick out like a sore thumb.
(On a similar vein, I had the same issue with ToolTips, but figured out how to set a new style for ToolTip in <Application.Resources>, but I cant seem to find anything (i.e. a TargetType) for the DragUI text.)
Any help appreciated.
Can the Font for a UWP Drag and Drop (DragUI) caption be changed?
I'm afraid, you can't change the font style for DragUIOverride.Caption, currently, there is not such api to change Caption font, it was manage by the system. And you could post your requirement with windows feed back hub.
And we have a workaround that use SetContentFromBitmapImage method insert text image to replace DragUIOverride.Caption. For more please refer XamlDragAndDrop code sample

How can I set the line height of a multi-line PDF form field, and save it so it doesn't get reset by filling it?

I am having the exact same issue described in this question: Multiline pdf text box
I have a PDF that has some dotted lines that I want to convert into a fillable multi-line field. I tried the solution in the linked question, but my setting is not staying when I try to fill in the field outside of Acrobat.
When I am preparing the form inside Acrobat, I set the line height to 30 and it is lining up fine:
But when I save this PDF and then try to fill in the field outside of Acrobat, the line height setting does not stay. It gets reset every time:
It's super frustrating and I have scoured the internet looking for an answer but I have nothing yet. If someone knows what to do to get the line height looking like the first screenshot, please save my sanity.
I'm using Adobe Acrobat Pro DC 2021.001.20135 on macOS 10.14.6.
Thank you
You can't. Those settings don't "stick" when the field is cleared and there's no way to set them programmatically. It's best to simply remove the lines from the PDF.
As #joelgeraci stated, the settings don't stick.
However, if the form has to be manually fillable, removing the writing lines may not be the best idea. In this situation, it would be better to change the field's background color. When the field has no content, its background color is transparent, otherwise white. And that will cover the writing lines.

VB.net webbrowser control behaving oddly

In Windows Forms, using VB.net (VS 2017 and/or VS 2019), I programmatically create a Webbrowser control in a form to show the contents of a pdf file - it works, but one thing is strange: the pdf appears in the upper-left-hand corner of the Webbrowser, using half the height and half the width of the control (it shows up with scrollbars, so it's still readable).
The rest of the webbrowser control is there, just blank - no reason the pdf should be in just a quarter of the window. If I open the same pdf in any of a number of browsers it appears normally, that is full sized.
The fact that it's using exactly half of the height and half of the width seems to be a clue, but I can see no property or setting that would affect this. Does anyone have any ideas?

Specifying a font in AutoComplete TextBox

Has anyone managed to modify the default font size for a AutoComplete TextBox, Windows Forms.
No, the underline Windows API does not have an option to change the font size. If you need to customize the suggest list's appearance you need to implement autocomplete by yourself.
Suggested reading:AUTOCOMPLETEOPTIONS