The checkbox tick of webbrowser and the scroll bar button keep showing as square.
This does not happen when with other PC.
I tried to load the HTML code in normal browser, all other browsers showed the tick correctly except
internet explorer.
I've searched for solutions online I couldn't get one.
It reminds me of this thread, where the problem was solved by uninstalling and reinstalling Segoe Symbol UI font. You can have a try.
While this is not the correct place for this question, my guess is you have a problem with your fonts since these characters are painted using fonts, Webdings or something like that if my memory serves me connect
IE is very outdated and therefore will have weird styles for lots of html elements, I do not know if this is the problem with this specific element but if it is, you can use -webkit-appearance: none; to stop the default style and then style it the way you want. Make sure to target the tick and not the checkbox by using a pseudo element. Hope that helps.
Related
I have been developing winform applications for a long time and I've never noticed something very simple, almost basic so I went back to the basics, I made a big form with a button on the extreme and I noticed that the size of the form changes completely when run:
design
run
As you can see the form size gets smaller and the button is hidden.
The properties are the default ones AutoSize false and AutoScaleMode Font.
This question is similar to this but unfortunately the answer there is not useful since the recommendation is the default.
Note: This is automatically solved when my notebook gets connected to another display
Below are some steps you can try if one of them can solve your issue:
If the problem occurs only when you connecting with other monitor, try to change the settings when connecting, does this happens to other PCs too? Or try to use another PC or install a VM (Virtual Machine) to run it there.
Check your DPI settings, for example in Windows 7, is that Smaller - 100% (default), or Medium - 125%, or Larger - 150%?
Try to set Form's property AutoScaleMode to Dpi or Font for each case.
If the problem still persists, try to create the sample form with the help from Creating a DPI-Aware Application.
I once tried to use FlowLayoutPanel control to arrange some identical elements such as buttons, pictureboxes. If possible, try to use it when applicable.
Last one, try WPF instead, it seems complicated at first, but you will get used to it soon and find out interesting things that Winforms doesn't have. You can arrange control to a grid (similar to a table), then put your controls to each cell with no problem. My suggestion if you plan to learn from ABC: WPF Tutorial.
Leave comment if you need more help, I will come back to see if any further I can provide. Because I've come into this obstacle when creating an app before :)
Set button "Anchor" (Right*, bottom) in property window
I've tried a few approaches and did a bit of searching, but can't seem to find a working solution, so would like to ask for your combined wisdom.
I generate a jpg file on-the-fly based on text that a user types in. I then assign it to an asp:image control with a random number appended to get around browser caching.
The asp:image is inside a conditional updatepanel that gets refreshed when a hidden button is clicked. It all works nicely, except that the when the updatepanel refreshes the image, it flickers.
I've tried using two images and swapping them and I also tried hiding/showing two CSS divs (one on top of the other), but neither way seems to be stopping the flickering. I've also read a bit on using jQuery's fadeIn/fadeOut to stop flickering, but it doesn't seem to work for me either, or I'm doing something wrong. I can see the image fading out and then fading in, but it flickers in the middle, when it's actually updated by the updatepanel.
I'm happy to post snippets of code, if needed. Just let me know what you need to see.
Thanks in advance!
Dynamically add updatepanel and updatepanel triggers, this will solve the problem.
Couldn't find a working solution, so going with client-side JavaScript instead.
Googled really much on this issue, but didnt find any related problems.
I wrote a Browser with WinForms and the webbrowser control and since a week ago the Browser is showing a little Icon on the top left corner with an "x" in it instead of PDF File on every Website.
Dont know why, cause it worked fine for a couple of months.
Also tried to change back to the IE9 Engine by setting the registry entries, cause i thought about some IE Updates. But didnt work.
Any suggestions?
Found the source of the problem. The trick is to build a x86 application. If you set any cpu or x64 platform in your build settings, this little box with the "x" will show up when you try to view PDFs.
But really dont know why this happens and why he can find addons from IE in the webbrowser control, cause i didnt use any one of them in my code and im also not using any dlls for this. And why IE is showing PDFs without Addons activated.
But its working again now.
I have written several WinForms apps in my life, and every once in awhile something will go wrong with the layout at run-time. Today, while I was fiddling with the fonts in my application (mainly whether fonts were bold or not), I found that a control (which was anchored to all four sides of a TabPage) was extra-wide at runtime, going beyond the right edge of the page. I fiddled with the fonts again and the problem disappeared. Then I tried to replicate what I thought caused the problem in the first place, but it did not recur.
Another problem I sometimes have is that a Form with no MaximizeBox will randomly start maximized--maybe not on a development machine, but on a user's machine.
Can anyone tell me if they've had one of these problems and found the cause or solution?
Make sure you are familiar with the Anchor and WindowState properties, and set them to the correct values.
I am creating a NotifyIcon and then calling this to show a balloon-tip from the system tray:
_trayIcon.ShowBalloonTip(100000, notifierTitle, notifierText, ToolTipIcon.Info);
Everything works fine but I wondered: is there any way to format the text in a system tray tooltip? (In my case, notifierText)
Obviously, I am adding newline characters etc. but I would like certain parts to be bold or italic and maybe even add blue hyperlinked text to separate lines in the tooltip.
I am aware of the events that are available and they don't cover this sort of thing.
I'm sure I've seen it done elsewhere...
So is it possible, and if so, how do I do it??
There's a ever so slight hint that this might be possible if you run on Vista or higher. From the documentation of NOTIFYICONDATA:
When uVersion is set to
NOTIFYICON_VERSION_4, the standard
ToolTip is replaced by the
application-drawn pop-up user
interface (UI)
But with any hints whatsoever how to actually make this work. Googling for +NOTIFYICON_VERSION_4 +ToolTip doesn't produce anything relevant. It also isn't wrapped by the Windows API Code Pack. I'm guessing that it takes listening for callback notifications.
At any rate, you will have to completely replace the NotifyIcon class to make this work. Maybe your google fu can get you a better hit.