|
Thank you very much for your fast response and for this new patch that I never heard of it.
I downloaded it, I try to install it, and I get this:
https://i.imgur.com/OWkxhcq.jpg[^]
My impression is that I have to install something else before this thing to work.
|
|
|
|
|
As I said I can't test it for you, and I can't see your computer - so I'd have to guess. Did you install SP1 first?
"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!
|
|
|
|
|
Message Closed
modified 10-Feb-22 8:19am.
|
|
|
|
|
Message Closed
modified 10-Feb-22 8:19am.
|
|
|
|
|
Message Closed
modified 10-Feb-22 8:19am.
|
|
|
|
|
Ok, everything is now installed. I successfully installed "Windows 7 Convenience Rollup" patch.
BUT - the problem still remain unresolved - the same errors in Device Manager. Nothing changed there.
https://i.imgur.com/LMyROW1.jpg[^]
|
|
|
|
|
I re-checked on the official website and re-installed all my 'PRIME B450M-A' motherboard drivers.
I always suspected these drivers are doing some monkey bizniz.
But still, after the "Convenience Rollup" patch, after the oficial and slightly updated drivers of my motherboard, still no change in the bunch of errors in my Device Manager. It is exactly as before. No change.
You did helped me.
I start to believe is a motherboard driver problem that I have here. Specifically for w7. Although I did not had absolutly any kind of errors in Device Manager in my last (auto-updated) version of windows7. It is either: 1-Microsoft didnt share everything; or 2-the motherboard drivers concentrated on w10 and w11 but w7 left it float like a useless label. Damn im pissed off. This is my best guess the problem might be. I'll have to take the fight to them, if they will even answer to my questions... hmmm.
But we reach some conclusions and for that I thank you! It's better for me to think in tandem with someone else. So thank you for sticking with me.
If you think on some other solutions... please lay them down. It is always a good thing to have more options.
|
|
|
|
|
You're welcome!
"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!
|
|
|
|
|
Update: This is after 5 days. I didn't do anything important these days, I believe I installed 1 or 2 software and 1 or 2 games, and I guess at least 10 restarts of PC in the last 5 days from when I installed that patch from you.
- Today I input the usb into my phone again, and for my surprise it appear on the phone "usb PC connection" and on my actual PC, in device manager the things are the same, nothing appear or dissapeared, but the content of the phone is now visible!!! Before, when I come with the problem, nothing was visible inside the folder of the phone. It was all white.
Now is back to normal.
https://i.imgur.com/mBf0r3c.jpg[^]
I have no logical explanation. It just worked. But why exactly? What is the trigger? Maybe that update was still updating my windows, after a couple of PC restarts? It's the only thing I can think. Welcome to the weirdness of windows world.
I felt responsible to bring the good news to you, because like me, you are a technical guy who likes good results. Have a good day.
|
|
|
|
|
Ah. The Development Fairies have defeated the Random Fault Gremlins ... I hate it when that happens ...
"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!
|
|
|
|
|
|
I killed the communication between my PC and my Android phone a while ago. The phone won't work with my portable, nor with my desktop. It lost them both ad the same time, so it wasn't the fault of the PC(s) - and I know how I did it:
I am not a big fan of smartphone apps. My eyes are too old, my fingers too large, and touch screens everywhere refuse to react to my fingertips - if you see someone at the coffee machine tapping, tapping harder, tapping again, ... then it could be me. Same with my baking oven. And my desktop radio. I set up my Bluetooth PC keyboard to talk to the phone, but that works at home only.
I decided to clean up my phone, so that it would have only the apps that I "must" have. Not the other hundred or so apps that somehow have made it into my phone. I killed off every one that I didn't remember ever using. Obviously, I removed one too many.
I haven't yet gotten around to fixing it, but assume that a complete 'restore to factory settings' will do the job - crossing my fingers for factory restore still being available even if OS updates no longer are. If not, I have another reason for replacing my six year old Galaxy S7 edge with several cracks in the front glass 
|
|
|
|
|
trønderen wrote: touch screens everywhere refuse to react to my fingertips
I used to have a similar problem until I realized that the cause was that I wasn't keeping my finger stationary during the tap.
If you make contact with the screen and don't keep your finger absolutely stationary, it will assume you mean to start a drag and drop operation.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I've recently experimented with base and derived forms, and though it works fine with non-resizable forms, there are problems with resizable forms.
As you know, with resizable forms, you use anchoring and docking to keep the controls in place and let the form resize gracefully. But when you inherit from a form that has anchored or docked controls, the inherited form does not display correctly in the Visual Studio Form Designer. It appears to compile and display correctly while running, but that too could break.
Obviously, in an inherited form, both constructors execute, the base form's and the derived form's. It seems the problem is that one form's constructor sets measurements while the layout is suspended in the other form's constructor. I read about this in Roland Weigelt's blog Roland Weigelt - Visual Inheritance - How to escape Layout Hell[^]
He explains that
Quote: In the moment the constructor of the base class is left, the layout and the controls are perfect for a Form1 instance - but that's not what we want. The method InitializeComponent() of class Form2 contains the code that is necessary to achieve the desired layout by tweaking the base form and adding the second button. While setting the Text property to "Form2" is rather trivial, setting the ClientSize property causes serious trouble. The problem is that the size is set while the layout logic is suspended; i.e. the size of the form is changed, but the anchored elements of the base class are not updated.
And in Roland Weigelt - Visual Inheritance Revisited[^]
Quote: Question: So why does docking work, but not anchoring?
Docking tells a control to grab as much space as possible (for top/bottom/left/right: towards to the specified direction) until a border of the container is reached. When the size of the control's container changes, the border is moving, so the docked control will resize itself accordingly.
Anchoring tells a control to keep a constant distance between a specified border (top/bottom/left/right) of the control and the corresponding border of the container at all times. Now if the container is resized while layout is suspended (which is the case in InitializeComponent() of class Form2), the anchored control does not notice the change. When layout is resumed, the control will keep the distance that exists at this time. This can be observed if you resize the form either inside the forms designer or at run time. The anchoring works perfectly, but unfortunately using the wrong offsets...
He advises to use docked panels, but I found this not to work, probably because WinForms has changed since 2003, when he wrote that article.
For now, I'm experimenting with form templates. But templates go only one way. They are basically just copies, so later revisions to the templates don't appear in the forms created from the templates.
Do you use form inheritance, and if so, how do you deal with this?
|
|
|
|
|
So, WinForms. Might helpt a bit if you include that info.
RobertSF wrote: He advises to use docked panels, but I found this not to work, probably because WinForms has changed since 2003, when he wrote that article. It didn't, but you found me in a non explaining mood.
Did you really think that WinForms would change after these years?
RobertSF wrote: Do you use form inheritance, and if so, how do you deal with this? Yes. And elegant.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Sorry, and thank you. Hope your day gets better.
|
|
|
|
|
Hahaha, yeah, you do that
You can inherit resizable forms offcourse.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I inherit from resizable WinForms quite often (mostly to provide a common "look and feel" plus I use large image buttons and fonts that all forms need - and it works well:
public partial class FormBase : Form
{
...
}
public partial class FrmMain : FormBase
{
...
}
The "standard" buttons are set in FrmBase, and all derived forms include them.
The only PITA for me is that the base form cannot be abstract because the designer can't cope unless you add a dummy concrete class "in the middle" for design mode only (which I hate because it means I'm not testing the same code I'll use in production).
I've never had a problem with Anchoring or Docking - what exactly is happening to your derived form when you resize it?
"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!
|
|
|
|
|
OriginalGriff wrote: I've never had a problem with Anchoring or Docking - what exactly is happening to your derived form when you resize it?
The problem happens as soon as I derive a form from a base form. The derived form appears in the visual designer like this https://i.ibb.co/5sDNBRP/Untitled.png[^]
The derived form only shows the control box. I expand the form to its proper default size, and everything looks good. When I reopen that form in the designer, however, the controls are all jumbled and out of place. Curiously, if I compile and open the form during execution, it appears fine.
The blog I linked in my first post describes the problem and its causes. Thanks for the reality check. I'll upgrade my VS 2017 to the latest, and maybe it's time to move to WPF and drop WinForms. 
|
|
|
|
|
Have you tried expanding the size?
"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!
|
|
|
|
|
Yes, and when expanded, the form looks fine, but after saving and reopening, then the controls are jumbled and out of place. However, I'll have to figure out what I did different because now the form reopens just fine. Thanks for your suggestions.
Maybe it did solve the issue to use docked panels instead of putting the controls directly in the form. Is that a technique you use?
If you have a chance, give the articles I linked a look. They're interesting, and the writer seems to know his stuff.
|
|
|
|
|
Mostly, yes - though I generally create a UserControl if it's going to fill an area like a toolbar does, or provide a status bar. Those work fine docked to the top / bottom, then I'll use a central panel to drop other controls on.
"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!
|
|
|
|
|
|
It can get confusing sometimes - easy mistake to make!
"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!
|
|
|
|
|
Hello,
I already have a approved bot account on non english wikipedia. I am having trouble with converting the provided sample codes to C#. Would someone kindly do it? More details can be found at API:Tutorial - MediaWiki[^] and API:Edit - MediaWiki[^] Samples in java, PHP and python can be found at "API:Edit - MediaWiki" link. Here is sample code in java:
var request = require('request').defaults({jar: true}),
url = "https://test.wikipedia.org/w/api.php";
function getLoginToken() {
var params_0 = {
action: "query",
meta: "tokens",
type: "login",
format: "json"
};
request.get({ url: url, qs: params_0 }, function (error, res, body) {
if (error) {
return;
}
var data = JSON.parse(body);
loginRequest(data.query.tokens.logintoken);
});
}
function loginRequest(login_token) {
var params_1 = {
action: "login",
lgname: "bot_username",
lgpassword: "bot_password",
lgtoken: login_token,
format: "json"
};
request.post({ url: url, form: params_1 }, function (error, res, body) {
if (error) {
return;
}
getCsrfToken();
});
}
function getCsrfToken() {
var params_2 = {
action: "query",
meta: "tokens",
format: "json"
};
request.get({ url: url, qs: params_2 }, function(error, res, body) {
if (error) {
return;
}
var data = JSON.parse(body);
editRequest(data.query.tokens.csrftoken);
});
}
function editRequest(csrf_token) {
var params_3 = {
action: "edit",
title: "Project:Sandbox",
appendtext: "test edit",
token: csrf_token,
format: "json"
};
request.post({ url: url, form: params_3 }, function (error, res, body) {
if (error) {
return;
}
console.log(body);
});
}
getLoginToken();
Thanks a lot in advance.
modified 9-Feb-22 12:08pm.
|
|
|
|
|