Scale image size (Image control on an Access form) - vba

I've done this before, but I'm working in 2010 now and it doesn't seem to be working.
I'm trying to make a thumbnail view of an image control. The pictures I store (text field, just linking to a directory) are large and have their own form to open and view them at resolution, but I want to display a small thumbnail of the picture.
I have an image control with the control source set to the image field of my record source. It changes fine with I navigate records, but it shows a zoomed "window" of the image instead of scaling the image down to a thumbnail like it worked in the past.
I've tried the "size to fit" option, thinking that would do the trick but it doesn't.
Is there a different property that I could use? I don't mind writing a little VBA for this either, but I figured it would have worked by just using the form controls.

I just tried this using a regular old Image control in Access 2010 and it worked fine for me when I changed its dimensions to something "thumbnail sized" (0.5" x 0.5") and set the Size Mode property to Zoom.

Related

How can I prevent form from randomly resizing during use?

I'm working with a status form that should look like Image 1, and initially does, but during runtime, it resizes to Image 2.
In my code I do not act upon any Length, Width or zoom levels for the form or for it's controls. I do change the borders and font initially, but that is not when the resize triggers.
I tried to run the code step by step to see exactly what triggers it, but the form does not resize when I run it like this.
This did not happened for previous versions of the file, and I didn't do any changes to the form, so I'm lost to what is going on.
I tried setting the same zoom level for both my screens, setting the zoom level for the form to 90 and back to 100, restarting my computer. After this it still resizes.
I do have a normal screen and an ultrawide one, but I've always had them, and never had any issues.
Importing the forms from an older version of the file Fixed the issue.
Can anyone give me any advice on how I can prevent this from happening?
Image 1
Image 2

Anchor settings not working

My VB.Net application is using anchoring to force certain controls to resize to their container, eg a list box on a form. This is all pretty standard and easy to do. However having just released the application into production I've found that on one user's computer the anchoring seems to just be ignored. She has Windows 7, as do I.
So far example what should look like this:
instead looks like this
I asked her to try a higher resolution on her screen but that didn't to help.
On one of them I was able to fix it by manually setting the width and height in form load properties of the control instead of anchoring it, but it seems a bit backward.
It looks to me like the form has been resized to be too small for the anchoring to work correctly. Set the .MinimumSize property of the form to ensure the form does not get too small for your layout.
Older staff sometimes reduce the screen dpi to make text easier to read, which means the screen may not be big enough to display the form. To fix this, set the screen dpi back to something reasonable and increase the text size for readability.
Turned out to be that the display issues were caused by user having the "Font Size" setting on her computer set to 200%. To be honest I didn't even know you could do that.

Virtual basic Full screen resizing

I'm making a full screen application in visual basic and is having some issues with full screen and control resizing.
I've looked around both google, stack overflow and youtube for answers but none seems to be working for me. What I have worked my way to is that i need to use anchor or docking or something like that if I am not all incorrect
Edit:
Picture examples:
The main window in my editor.
When the program runs in maximized screen
Resolution of the program is 800x600 as its going to be made for a screen with that resolution.
You probably want to use anchor points. You can anchor a control to any side, all sides, or any combinations of sides in its container (the form, usually). When the form is resized, the control is automatically sized accordingly. You can also use the form's resize event and change the size or location of the controls manually when the form size changes.

live tiles in Windows Phone and Grids

I'm trying to create a live tile for my application, using a user control.
The user control contains a grid, an image and a rectangle filled with color.
Now here comes the funny part.
I want the rectangle to act as a background for the tile's title, and the image to fill the rest of the tile. And i said to myself, well, lets put some rows in that grid and set the like you usually set them in a WPF/SL application.
I then write the entire thing in a WBM and save it to isostore.
The problem is, the parser seems to ignore the presence of grid's rows. regardless of what I try, the rectangle is not shown, and the image covers the full tile, when it should only cover the first row. It is as if the grid didn't even existed.
Another funny aspect is that it doesn't matter if I use rows or columns, the result is the same.
Any ideas?
Are you using the following method?
Dynamic LiveTile - adding background image?
I recently implemented a Live Tile using a Grid with Rows and Columns for layout of some TextBlocks. I encountered similar challenges, so I placed the control that I was using for my Live Tile on a blank page in my app to better see what was happening. Does the control render correctly when displayed on a page (versus being rendered to a WriteableBitmap)?
Another idea. Instead of trying to position the Rectangle relative to the tile's Title, why not leave the Title property blank and put the same text in a TextBlock within the user control?
If you are careful about the font and positioning of the TextBlock, the text on the resulting background image can appear indistinguishable from text displayed from the Title property. I decided to follow this strategy myself. I found the font information in the following answer:
Font size and family for a tile's title
Otherwise, could you post an example of the XAML you are using?

Chaning the background color around a PDF in a UIWebView on Device

I'm using a webview to display a PDF.
The webview displays the PDF at it's actual size which is a little smaller than the size of the webvieww itself, revealing the scroll view underneath it.
I've tried setting the Webview to opaque and setting it's background color to another color, which works fine and dandy in the simulator, but fails to change the color on the device. On the device it changes the color of the background of the view behind the scroll view, this can be seen when the PDF is pulled all the way down.
I've also tried setting all the UIView's backgrounds, by iterating through the subviews but to no avail.
I've updated a diagram to help illustrate which area I'd like to color.
Uploaded Diagram
You really shouldn't mess around with UIWebView's internals.
They can change anytime and your code might just crash on the next version of iOS.
If you need more control about pdf display, you might wanna take a look at other possibilities to show pdf, like using the CGPDFDrawPage* functions. Of course they are pretty low-level and it's a lot of work required until you can get fast page display, zooming, etc all right.