border edge will not disappear - vb.net

I'm using a really nice third party circular progress bar (installed via nuget & v2.5.6403.13419) Found here that has no border property but it still insists on displaying a top and left hand border artifact as per my attached screenshot (from VS 2017) although in all the examples this is not the case. I can't figure out why this should be and have experimented with every setting I think may cause it to no avail. I've set the forms paint to
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias
but no difference and I've run out of ideas and my searches for anything similar have turned up nothing. Can anyone suggest anything please?

Related

Mirror material doesn't show reflections correctly

I hope you all having good day.
To the point, I placed two mirrors, as shown below, but there is something wrong with the reflections, the reflection of front mirror and its image doesn't appear in the left hand mirror. I tried "Light Path" node but it didn't worked. any suggestions, please?
Thank you
I found the cause of my problem, It was the checkbox "Fast GI Approximation" under Light Paths.
I was trying different presets, then suddenly It works, checked that checkbox again, and the mirror is black again.

Working Area showing incorrectly in VB.net

So I am trying to get the screen size without the taskbar, and through reading around I found that the only reliable way was to get the "working area" of the screen (Especially since I might be using multiple screens.), then subtract it from the screen size
Now, my issue is that the working area I am getting is equal to the screen size, which means it is not showing my the actual working area. I have tried some different solutions, and the codes are straight forward.
Dim workingArea = My.Computer.Screen.WorkingArea
This would give me back 1920x1080 which is the same as my resolution. I am not using an auto hide taskbar, and I am not sure what's the issue with this, and/or if there is a better way to do what I am trying to do.
Edit: I have tried to use the DPI aware as per the last comment (following the steps in Using SetWindowPos with multiple monitors)
I am quite confused why I am not getting the correct number here, any feedback is appreciated.
Edit2:I have tested this code itself in another PC and it was a similar result, I will attempt to install an older version/newer version of visual studio or another .net version, however the issue is still illogical, and no solutions seem to be working (with one or more screens having the exact same feedback.)
Edit3: The task bar does not hide, testing the numbers still shows the same regardless of the number of screens, different resolutions were the same as well.

Position of PictureBoxes in form design window do not correspond to their position during runtime

EDIT: I realized that I didn't tag this properly - I should have included vb.net as a tag, on the grounds that there could be a code based solution. Note, that no changes to the resolution are made in my source code.
UPDATE: When the program starts execution, the left coordinate for each PictureBox is multiplied by ~0.376, whilst the top coordinate for each PictureBox.Top is multiplied by ~0.418 . This "down-scaling" applies to all picture boxes. The source code I have is incredibly rudimentary and cannot be responsible for this. I also looked at another project and I still face the same error. A simple but poor fix would be to divide each coordinate by the corresponding values mentioned above.
In order to show you the issue I'm facing, please look at the images below. Compare this image, where each PictureBox (i.e. a snake, set of arrows, etc.) has been placed so that they line up with a feature of the background image:
To this image, where the PictureBox elements are bunched together. Their positions have been "down-scaled" closer to the origin of the form (note that all the elements are transforming horizontally during runtime, which is why the elements are in the top right corner):
In the solution I was given (developed in VS 2010 I believe), the position of each PictureBox goes beyond the background image as shown:
It is clear that each picture box has been placed in an organized fashion. During execution, each PictureBox goes to it's intended position (i.e. lines up appropriately with the background image).
Obviously, the original developer of the solution I was given would have not faced the problem I am. The fact that the solution works properly during runtime indicates some kind of error with my instance(s) of VB. Does anyone know of any solutions?
I've came across this question which asks how to change the default resolution for a Windows 8 App and this question which asks why some applications appear differently on different machines, but they pose no clear solutions. I would appreciate any help, since it's holding me back from critical work I must do. Thank you in advance!
I feel a little silly now - I started carrying out a bit more research on VB forms and came came across this Microsoft documentation on form scaling. Realizing that my issue may have been caused by having this scaling automatically carried out, I then found the AutoScaleMode property of my form and changed it from Font to None, which resolved my problem.

Split Container Anchor issues in VS2010

I have had multiple projects where the UI seems to become "corrupt" in the designer. It always seems to pertain to split containers, DataGridViews, and anchoring the DGV inside the split container. It seems the DGV anchor somehow becomes de-synced and the DGV grows larger than the Panel that it is supposed to be anchored within. This causes a part of the DGV to be cut off and no scrollbar is available to see the rest.
Has anyone encountered this, and hopefully also found a fix?
The solution was to get rid of the split container. I started to remember other projects I've had issues with the designer also contained a split container.
I found a few bug reports about this on the Microsoft website and they appear to have been swept under the rug. I have a feeling this is a known issue that is not likely to get fixed.

Gtk Sharp - Treeview nodes will not expand sometimes

Sorry in advance for the vague conditions in which the problem below occurs. It is very intermittent, and I have not pinned down a consistent set of steps that reproduce it yet. (Which is why I'm asking for some general or common things that might cause it)
The application I'm working on consists of MonoDevelop.Components.Docking dock frames. There is a tabbed group of panels in one if the frames, and one of them has a GtkTreeView in it. Every now and then, the nodes of the Treeview will not expand when clicking on the + button. This does not go away until restarting the application.
However, since I have not been able to consistently reproduce it, I'm kind of at a loss of what to look for/mess with to fix it. So does anyone have any ideas on what might generally cause the nodes to not expand when clicked? Or any better steps I should try in order to reproduce it?
I have found this occurs when a disabled node is in the TreeView. In my case it was a project in the solution pad of MonoDevelop that was set to not build in the current configuration. When I removed the project, all other nodes in the TreeView started working again immediately.
You can use the arrow right/left keys to expand/collapse nodes.
It may be related to a Gtk bug:
https://bugzilla.gnome.org/show_bug.cgi?id=675835
which was fixed recently:
http://git.gnome.org/browse/gtk+/commit/gtk?h=gtk-2-24&id=b32a9eb691920f21ad3b9127c833aaba15727c4b