|
Not quite what you are looking for maybe, but in this CodeProject example you can see a simple way for resizing a form depending on the font size: RoundedButton Control - Demystifying DrawArc[^]
this.Font = new Font(this.Font.Name, this.Font.Size + 2);
I tried many complicated examples which did not work, but this simple way works for me.
|
|
|
|
|
|
thanks for your great input.
I saved your link for my use.
diligent hands rule....
|
|
|
|
|
Just backed a 22/1 winner at Cheltenham - happy days !!!
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I didn't even know The Fonz was running!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
He keeps it quiet
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Fonzie might have been running but now pk is Rich-ie!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
|
While I know the refence, and it rhymes, I always found chicken dinner to be quite common for a life or death vs 100 experience!
I would expect at the very least an osso bucco, on a bed of vegetable and chocolate fountain! Just saying!
|
|
|
|
|
Osso buco on saffron risotto, as it should be (tipical Milan dish).
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I respect you even more now. I have been doing all the household work, taking care of our kid and managing work for about 2 weeks since my wife is not feeling well. I feel totally spent by the end of day which was always closer to midnight and it is always doing the non-dishwasher dishes. I also have realized how we both have it easy since we can get help from each other. So, single parents, if you still have some energy left at the end of day today, have a drink to appreciate your dedication and hard work. I will.
I think my wife already knew this and that is why I have been tolerated thus far.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
I know some sets of Grandparents who, for various reasons, end up being the "full time parents" to their grandchildren. I can't imagine having the energy for that either! My hat is off to them also!
|
|
|
|
|
As my daughter and her two kids (3 yr old boy and 1 yr old girl) have moved in with us recently, thank you.
She is leaving her husband who has been mentally and emotionally abusive. The final straw was he left for a ski trip. It was 2 days after my grandson came home from being in the hospital for a week after being diagnosed with leukemia. He left on a Wednesday and his son had treatment that Friday. We confronted her on Sunday and she finally admitted he went. She moved in with us that day. He came home on Monday with no clue.
His reasoning for going was that "it would ruin the trip for the other 5 people if he didn't go".
It takes all three of us and we can barely handle it.
Can you tell I'm sorta ticked off at the guy.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
MarkTJohnson wrote: he left for a ski trip. It was 2 days after my grandson came home from being in the hospital for a week after being diagnosed with leukemia. What a ing . Hope she sticks it to him good.
P.S. Sorry to hear of your grandchild's illness, no kid should have to go through that. I do hope treatment is an option, and that it works spectacularly. F**k cancer.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
He is responding very well to treatment. He just finished a steroid that makes him want to eat like a 13 year old.
He has the most common, best treated version.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
MarkTJohnson wrote: He is responding very well to treatment. Great news!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
MarkTJohnson wrote: His reasoning for going was that "it would ruin the trip for the other 5 people if he didn't go".
Douchebaggery knows no bounds.
At the very least I hope these 5 people found out and let him know under no uncertain terms that this was no excuse.
And if it would have "ruined" the trip for any of those 5 people...he needs better friends. He sounds incredibly insecure.
|
|
|
|
|
Indeed! And I hope your wife feels better soon. I imagine you do too!
|
|
|
|
|
Hope your wife will recover soon.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Good morning CPers, haven't been round these parts for a while but I return today with a dull question:
Have you worked in an environment where there are multiple windows domains? Until recently I've never needed to mess with that drop down on the login box below your username and password where you state the domain, as its always the same and is the same for the whole company. I'm now being exposed to the idea that you put your development, UAT and Production environments in different domains, and you need different credentials for each. In practice this means doing odd stuff like running visual studio 'impersonating' a different account (runas I think). You can see the broad purpose, to fully isolate the environments but of course there has to be 'doors' to allow the software to propagate towards prod.
Anyone done this? Good or bad?
Regards,
Rob Philpott.
|
|
|
|
|
I did this by accident after our company changed the domain, I kept working in the old domain which was not very limited. Eventually however my "cheating" was discovered and measures were taken to prevent this
|
|
|
|
|
Our Test, QA, and production domains (we call these the "plus side") all use windows authentication (and they're separate domains), and we have 2FA (a card that goes into a card reader, and a pin code). Only our dev environment requires a password (access card doesn't work on dev).
We can't run vis studio on any domain except dev. On the plus side domains, we can't use the dev console in the browser (it's disabled), which has forced me to "take steps" by putting pages on our app that only devs can see.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
But what happens when you need to sort some production issue out which, say, involves examining production logs and your tail program (/development arsenal) is in another domain?
Regards,
Rob Philpott.
|
|
|
|
|
Well, we don't. We have to involve a dba (for some reason, they have admin rights on the web servers) to look at things like the system log. For our web apps, we have to try to determine what's happening by looking at the problem on the dev side.
0) All four environments have different hardware configurations (memory, disk space, cores, and number of servers on the farm).
1) It's almost impossible to determine the cause of a problem. We also have sys admins that apply patches that may/may not affect the operation of IIS. Tthis has bitten us at least twice, where we had to actually modify our code to get around the new "security" restrictions.
2) We are subject to the whims of our "authoritative data sources", where our data pulls may or may not work (connectivity issues, internet outage issues, data that changes format, etc). Of course, it's up to the devs to prove it's not the code. This is exacerbated by the fact that the dev environment has NO ACCESS to the internet at all, meaning we cannot actually do a data pull in that environment, meaning we have to have a DBA do it on an environment we can't log onto.
3) We have an insane program manager that has prohibited us from sucking data off the plus side and putting it onto the dev side, so we secretly backup production data, and put it onto dev one table at a time (we can't do a restore because it will overwrite work in progress stored procs.
4) The dev-only pages I've recently added to the app allow us to circumvent the need to suck data or restore from backup most of the time.
5) Last year, we updated vis studio to 2017 (from 2015). We can't update any further because we can't get a non-web installer (from what I've been told), and as I've already stated, we have no internet access. This also means we can't get to NuGet...
6) To save money (we get charged a certain amount for every 15 minutes our dev environment is running, even if nobody is using it), our entire dev environment is shutdown on weekends and holidays, so even if we wanted to work on a weekend day, we can't.
Our dev experience where I work sucks big hairy donkey testicles... I actually hate it. It doesn't help that our program manager has taken on the duties of scrum manager and dev team lead - and he has exactly ZERO experience as a developer.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Ooph, tough read. Sounds like a human rights violation.
It amazes the the way they throw so many hurdles at developers. No internet in dev, just what the hell is that? And part (3) rings bells and strikes me as madness. There are those who hold the opinion that developers should not see the data they work with. How that can ever work...
I'll surmise the general tone as being 'not good' in respect of distinct domains then. Thanks for the lengthy response!
Regards,
Rob Philpott.
|
|
|
|