Click here to Skip to main content

Comments by Sergey Alexandrovich Kryukov (Top 200 by date)

   
The graphs having loops are not called "linked lists"; they are called "graphs". A linked list does not have it, by definition. Just a note...
Is it a homework?
—SA
   
Are you talking about such things: Interpreting SQL? Anyway, what's the point of your question? Is it a question at all? Do you need any help, or what? "Is there" — where and why? Your goals? And so on...
 
Right now, it looks like a post about nothing.
 
—SA
   
Real accuracy is better than that...
—SA
   
5ed — Stopwatch gives the most precised measure. To be used for optimization on a regular basis, a profiler should better be used.
—SA
   
Sorry, this is not a question. We try not to answer "give me code" requests; it can only cause abuse reports and down-votes. You need to write code by yourself; we will only answer question. If an answer requires some code, we will write it. This is not the same as sending code on your request. In such cases, you would need to hire a real software developer.
—SA
   
Not an answer.
—SA
   
The question is: why?
—SA
   
Okay, forget the first one; when the second one does not work?
—SA
   
It should work (second sample). The first one depends on the location of "Home.aspx"...
—SA
   
My answer to this is: then it should not be "popup", should be something else. Perhaps people did not develop such behavior because they wanted consistent UI.
When you say "in my case I need to...", you don't motivate it in any way. You would not need to motivate it if you tried to create the UI design consistent with well-established expectations, but if you don't, you need a good reason for breaking the common rules...
—SA
   
Thank you. Please, next time don't ask questions on someone else's page. Create a brand-new question.
—SA
   
Is your question about remote shutdown or local shutdown. Nobody discourage you from using pstools. I just answered your question. Isn't it the answer?
—SA
   
Voted 4.
 
I have some notes. Even though everyone usually can guess that numericUpDown1_Leave and numericUpDown1_KeyUp are uses as handlers of the events Leave and KeyUp, it is not written anywhere. Moreover, we saw cases when such names exist but don't work because adding the handlers to invocation lists of the event instances was removed, but auto-generate code remained. This is just the bad practice.
It's better to show the code with '+=' or at least explain what is it. I even never add even handlers using the designer and advice to never do so, be a number of reasons, but this advice can be a matter of discussion or criticism.
 
Besides, it's not good to set a sample of bad coding for the readers, especially the beginners. Such auto-generated names, as well as numericUpDown1, violate (good) Microsoft naming convention. They are auto-generated (the designer cannot do better because "it doesn't know" intended semantics) are not designed for permanent use and should be renamed after they put to use. What is the refactoring engine for?
 
There is another problem: second line in the handlers, assignment of the result of ToString. First, I think it's redundant; the assignment to the value will assign the string (you can check it up). Worse, such string assignment bypasses the string assignment already code in the original control and thus break its intended formatting.
 
And finally, I am still not convinced that the default behavior of the control is not good enough. Please see Solution 1.
 
—SA
   
You are welcome.
But please, don't post content like that as "Solution". It is not, and such posts don't belong here, considered as abuse.
And nobody receives notification. So, instead, use comments and/or "Improve question". A comment on a post generates notifications sent to the authors of the posts between your comment and a root of the post tree.
 
Thank you for understanding.
—SA
   
Good point...
—SA
   
Thank you. I cannot see "do not work" in the question; perhaps it was written earlier and removed.
—SA
   
Thank you, Bill.
—SA
   
Okay, thank you for clarification, but why?
 
I already provided a complete solution not depending on any optional utilities. This is just the simplest one; you can also implement it using Windows API.
 
So, will you accept the answer formally (green "Accept" button)? In all cases, your follow-up questions will be welcome.
 
—SA
   
The question does not make sense. If you create 100 pages parametrized by a number 1.. 100, you won't really create 100 pages; you will create one with different piece in 100 variants.
—SA
   
Programming is not done by dragging.
—SA
   
5ed.
—SA
   
Well, frankly, the problem is pretty clearly defined. And this is a pretty delicate question, even though it is based on incomplete observation of the behavior. Please see my answer.
—SA
   
With WPF, the problem is the easiest. But first, you did not provide a complete solution yet. OP needs to handle even on entering Enter and probably fire another event to notify that it happened. Second, we don't know what OP is using. I suggest we always wait until user answer our questions if we need clarification. In this case, without the clarification on the exact TextBox type, we do need it.
—SA
   
It all strongly depends on the type of the control. What is "TextBox"? Which one? Full type name, please.
—SA
   
This question is a big abuse.
—SA
   
I already answered the question. Now I suggest you read the answer thoroughly, including the referenced pages, use it in your work and accept the answer formally — green "Accept" button. But your follow-up questions will be welcome.
—SA
   
All right, confirmed: you are trying to call the method on command, which does not exist. There is the method... referenced above. This is the answer. Will you accept it formally (green "Accept" button)?
—SA
   
I did not ask about that, this is also irrelevant. (Look, to start with, you have to learn what VS does, what CLR does, what JIT does, what build does, what's your source code and what is assembly, what uses what...)
 
I answered in full. Are you going to accept the answer formally?
 
—SA
   
This is no such thing as "Print Document commands". There is the class PrintDocument; and this is what you have to use. If you used it poorly, you did not give us relevant information; so how one can help you. Just use this class and pay attention for all the detail.
—SA
   
Before talking about requirements, please explain your ultimate goal. It's possible (and even likely) that requirements are bad; then you would need to address the problem with the one who gave you these requirements and/or let this person talk to us.
—SA
   
To Visual Studio or your project? Then Visual Studio is totally irrelevant. It does not even perform build, MSBuild does.
—SA
   
You are welcome.
 
But this post is not needed or even appropriate. This is not really an answer. You could instead add this code to the question with proper comments, using "Improve question" above.
 
Good luck, call again.
—SA
   
5ed.
—SA
   
5ed.
—SA
   
Very good.
Now, will you accept both answers formally (green "Accept" button)?
—SA
   
Was that you who recently answered on that? Good information, a 5.
—SA
   
Please search CodeProject first...
—SA
   
Thank you for understanding. If your problem is not yet completely solved, please use the debugger.
I answered on the problem you spotted, but the rest of the code can cause problems.
—SA
   
5.
—SA
   
Thank you, Carlo.
—SA
   
Then something else does not work. I answered your question related to the line you referred to.
You should not "try", you should know exactly what you are doing.
—SA
   
:-)
We had such a joke in the past:
 
The book "Software Development for Microsoft Windows" was published with the classifier "NC-17" or "17+". Why? "Strong language". :-)
 
—SA
   
I guess, some systems can be offended by foul language; try to avoid it. :-)
—SA
   
And there is no such thing as "Java script". Java is not a scripting language.
Why did you put C# tag is you are using Javascript?
—SA
   
HTML is not the best data source, and Javascript is not the best language for parsing HTML. I don't know why your code works so slowly though, because you did not provide any information on that, and gave no idea how much data is there and how big the files are.
—SA
   
1) Use the debugger;
2) When asking question, comment that line 14 with exception information. Otherwise — how is going to count your lines to find the one where the exception is thrown?
—SA
   
The problem is different: OP used to manual layout using the designer, a big habit. WPF, which naturally resist such things, is easier for keeping proper alignment and harder to screw up. I put some answer as Solution 1.
—SA
   
ZIP is not quite a suitable algorithm for songs, as songs are usually already compressed. However, you can use such 3rd-party library as #ziplib, 7-zip (.NET wrapper) or SharpCompress. Please see my past answers:
Zipping of files in C# 4.0[^],
Make Zip File during download[^].
 
—SA
   
It is already pretty fat... :-)
—SA
   
"Having trouble", "does not work" and "I am unable to figure out" is not informative.
In your code shown, there is no a call to float.len(); it's somewhere else. Locate it.
—SA
   
What do you mean "how"? By doing some software development work.
How can you imagine helping you? Do you have any real questions on the topic?
—SA
   
5ed. But the question is naive, but I could not dub it "nonsense". In certain sense, .NET, as any software product, has some (parts), and some are interacting with OS, and many don't (I don't count that all code is fed to a JIT compiler which itself uses OS calls). So, the question does make sense.
—SA
   
Fair enough, a 5,
—SA
   
Yes, that was my guess that this structure comes from some application, that's why I think you can properly format the table using some formats and data source, not hard-code it. You need to create format/style reasonably presentable in different mail viewer, by using simple and consistent style.
Will you accept this answer formally?
—SA
   
You need to do your work more or less accuracy. This code is something... actually, nothing to discuss, sorry...
—SA
   
No, you can always do in some different thread through UI thread invocation, because such invocation actually delegate the call to the UI thread of the control you call Invoke on.
Only... you do it all correctly except one very tiny funny bug. Resolution is way too easy, just one word (Solution 1).
—SA
   
Just one note: I appreciate your deep and critical thinking about the design of your code, but your thorough approach really deserves better language; PHP is really the "ersatz OOP language", not something really serious. But I understand that using PHP might be no more than the practical need; because nearly all, even the cheapest Web hosting packages provide PHP. So, let me think at your question, anyway...
—SA
   
Your English is clear enough; I would not worry much about it at the moment. Just answer my questions. Is it System.Windows.Forms.PropertyGrid? Do you mean TypeConverted.
You need to produce some minimal but comprehensive code sample, explain what works with it and what not, write down some sample of the text in the control you want to achieve, with the sample of the object presented as SelectedObject.
—SA
   
OP did it; please see. The problem is not reproduced, but the quality of the code is pretty low. Please see my suggestions in Solution 1.
—SA
   
There are no tutorials on that piece of code, because this is the code from who-knows-where. There is nothing special or even any good in it. Your approach to learning is wrong. Start learning languages and programming and writing your own code. It's not very useful to look at the code written by others, at this stage, except code samples in manuals.
—SA
   
What does it mean, "singleton DB"? And why singleton?
—SA
   
Not clear. Does your application work? Will it work if you compile the application using VS 2010, but target .NET v.3.5 (as VS 2008 would do by default)? Please, check it up. If if does work, what's the problem with VS 2008?
—SA
   
Yes, it is quite a "common problem", not understanding one's own question. :-)
—SA
   
It all depends on: paste where? From where? If from PHP, do you mean its use as a server-side script language, or local application? Why? And why not some desktop application? But then, what language would you prefer to use?
—SA
   
You are mixing up some unrelated thing. LINQ is just a query language. How is that related to music? You need to embrace the idea of Separation of Concerns.
—SA
   
:-)
   
Not clear. First code fragment won't even compile, say, because exceptionMessage is not declared anywhere.
If the second fragment says "I wrote" what is the first one? Exception in what line? How to reproduce it? And so on...
—SA
   
Not clear. Not clear what your problem is. Not clear what do you mean by "language". Language as a part of human culture? (But software is insensitive to languages.) Or programming language? Why?
—SA
   
Do you mean System.Windows.Forms.PropertyGrid?
The rest of the question is not clear. Possible to do — what? What form property do you mean? Why do you think "inherited" may make any difference? It only depends on access modifier.
—SA
   
It totally depends on what you want to do to that image, and perhaps also on the image type, depending on what it is. Do you actually mean graphical raster image (picture), or something else? I don't know exactly, but doubt that there is some specific "CMUCAM4 image" type. It's more likely that the system uses some known file format.
—SA
   
I would advise you to create a title for the question more thoroughly. Absolutely any question would match that title, so why?
 
As to your question: you can miss implementation of this method. It is attempted to use (to call), but not implemented. It could be in some source code not included in the project, or some object or library file. Review everything your project depends on.
 
—SA
   
How is that different from writing no comment? Apparently, that is not the same. :-)
—SA
   
Not clear. Use any text boxes, whatever you want. But not in this way!
—SA
   
Not clear. Why it should be different. Or do you mean that the HTML in escaped HTML form, not rendered as HTML...
—SA
   
You are welcome.
Will you accept the answer formally (green "Accept" button)? In all cases, your follow-up questions will be welcome, and other can add their contributions.
—SA
   
That was exception. Do you see the difference? In what line?
—SA
   
Sure. When I started, I had a readily available patcher (VAX/VMS); patching was quite feasible, I tried it. But using it for really patching looked just crazy.
—SA
   
No transparency or "background" notion is supported by BMP. Do you want to see page background instead of black? You cannot have it with this file.
—SA
   
First of all, names you mentioned are not event names at all.
Your notion of "press" is wider than that used in .NET, where there are low-level events KeyUp and KeyDown, and higher-level event KeyPress. For arrows, the event KeyPress is not suitable. Usually, if some one says "key press event" (not "keyboard event"), "KeyPress" event us assumed. This is what I mean.
—SA
   
Thank you, Bruno.
—SA
   
No need to do anything like that. Reflector or ILSpy can reverse-engineer the whole thing. Please see my answer.
—SA
   
Wrong event, by the way. I answered the question.
—SA
   
It depends on application type. WPF? Silverlight? Forms? ASP.NET? Anything else?
—SA
   
1) Not clear; 2) Why using a timer event at all? Please, the ultimate goal.
—SA
   
Do you add each "TEMPLATE" only once? If you add 3, do you want to delete all 3?
In all cases, for each button, store the location of the added text to delete later. On each modification of text, update it accordingly. Use for deletion.
 
But I don't like the whole idea. Why doing all that?
 
—SA
   
This way of parsing is hard-coded, "atom", "atom:item" are immediate constants. This is not supportable. And XML... I don't know what to say. It's trivial. Okay, just try harder... :-)
—SA
   
Oh, I see... But I never saw how they are distributed. You decide. Want an idea? Can you make the axes and other detail interactive. Data stay the same, but the look at them, point of view, which includes the linear/log choice, is chosen by a user and can be changed at any moment.
—SA
   
:-)
   
It means that we look less threatening to the inquirers than those customer services. They prefer asking us. Aren't we well too nice? :-)
—SA
   
The question is too uncertain to make sense. Chart? What chart? In a robust chart library, you need everything, and logarithmic, and linear, and other things. Starting from arbitrary point, not always zero, and having arbitrary axis limits. Starting from "nearest round value" (not very trivial algorithm; did you think about it?) And a lot more. Zoom. And a lot more. And, depending on data and some required features, different looks at the same data may be required...
—SA
   
Agree, a 5.
—SA
   
What is that? What should it do? Why would anyone implement such a function for a general purpose library? What's the problem? And finally, are you really so desperate that you have to mess with VB6?
—SA
   
Using all those non-breakable blank spaces repeated many times is a really dirty way of making layouts...
 
Now, did you check that all IDs match? Did you check it up under the debugger, that all selectors return actual element wrappers, and every other steps go correctly?
 
—SA
   
Why? why?!
—SA
   
Why, why showing XML as a bitmap? Who is going to look at it? With closed nodes?! Is that so difficult to copy and past the text?
Now, what's wrong with reading original MSDN documentation on XML parsing? Please...
—SA
   
:-( :-( :-( (This is the link; please see :-)
But actually this is not so sad. Take a break and learn, isn't that a good thing?
—SA
   
It's likely that OP can show some code, but unlikely that he clearly understands instances and classes to answer your questions — such people nearly always know how to access a member. Let's see though...
—SA
   
Sorry, this is not a driver search service. Applications should not be developed for any specific printer.
—SA
   
Well, then stop development of Windows Form application. Stop it all and start reading some language and .NET manual, some general programming topics. Start with elementary problems, perhaps, writing some simple console-only applications as exercises. Seriously, everything else will be just a waste of time, including reading any answers you might get — it cannot help you.
—SA
   
Not informative. Anything can be called "project". Why PHP code in Java project? What is that project? And so on...
—SA
   
Thank you, Bill.
—SA
   
Same? same as what? Find the solution — based on what information?
—SA
   
What, without seeing the definition of tags, tlv_tag_compare and probably something else? Can you concentrate of seeing your information by the eyes of the person how never saw anything related to the project except your post? Then it should become apparent for you what to put in the question post.
—SA
   
Why wouldn't you publish this as a formal answer. It looks perfectly logical.
—SA
   
This is really some work which could be done, not the issue you would need an expert's advice. Even if you hope to find some application framework close to the problem of some "office bulletin board", you know what it should do much better than the people you expect to help. It looks like you are determine to use technologies based on PHP. Quite frankly: the project does not sound to present any special problems, but your "I do not know how php... are working" sounds pretty hopeless. No matter how much help you can get from anyone, nothing can help you to avoid learning this stuff. No matter what you can possibly find.
—SA
   
What container? I really don't understand what's the problem. Is it about getting the set of some files by some file name pattern and traversing it in the loop? Anything else.
—SA
   
Contains EXE's? Why? Sorry, but who would do it and take the risk? Including EXEs is a really bad thing. If someone wants to help, this person can always use just the source code.
—SA
   
What does it mean, "read file name", from where? I would understand if you asked about reading the file.
And what's the problem? What have you tried so far?
—SA
   
Are you serious? Do you really think someone will run some application without source code downloaded from who-knows-where? (Yes, from FAA, but do you think it should approve the risk?)
The whole idea of controlling some close-source application, especially with such nasty tricks as SendKeys or PostMessage, which is not designed for such "collaboration" is a big abuse of technology. I understand that you may not have any other possibilities, but it does not make your work really sensible.
 
Worse, how can you expect that anyone will fix a bug in the code without seeing it? No, the question, as it is, is not answerable and makes no sense.
 
—SA
   
Excuse me, between what two? Could you draw a line between #1 and #2? It would be the best to separate it into 2 different pre elements. The code you show now cannot even compile.
Besides, the question about "difference" is incorrect. What would you mean by that?
How is that all related to "aliasing"?
 
Probably, you are mixing up two different things: 1) inheritance; 2) having two or more different references to an object.
 
—SA
   
No. This is an OS constant, not changeable; UNC path is claimed to help.
I told you, this Microsoft problem is idiotic and archaic. But not properly fixed... :-(
—SA
   
Please, in what line? Please understand that "if I this coded correctly" depends on what did you try to achieve. Why not explaining a bit more?
What is "finished"? Where is its declaration? What is the idea of using it? You share one instance between thread and call Signal on each, why?
—SA
   
Maybe this is an interesting idea. I would gladly see your implementation. I would advice not to look for it, but create one. Or look for many different controls which may not do what you want but can give you some implementation ideas.
—SA
   
5ed.
—SA
   
Sigh...
   
Not clear what your problem is. Those folders are pretty much irrelevant; you can use the folders you like, according your own design, as always with the PHP projects. You can use some default structure or define your own.
—SA
   
Maybe, sorry if it looks like that, but this is because I got such impression from a question; generally "have no idea how to start" always looks nearly hopeless and makes the "question" non-answerable.
And please, try not to be rude even, if you don't like the comment. You are the one who initiated this waste of time; so, even if you are right about wasting time, it's a bit too much to claim it in this case. Please understand that "I cannot answer" mostly because your question does not look answerable. I only tried to stimulate you in making it more answerable. It's up to you, of course.
—SA
   
Agree. I developed in Mono and was pretty much happy with it, but Forms layout presented a number of problems not observed on .NET. The described problem is not manifested in .NET, too.
I actually suggested some reasonably practical solution, please see...
—SA
   
Right, but the problems are: 1) MAX_PATH is defined as 260 characters, and OP's examples are all shorter, 2) according to documentation, UNC path should work, but I never managed to put it to work... (so far, I tried .NET only though.)
I put some answer, but this does not present an ultimate solution, just gives some ideas.
—SA
   
Sigh... Well, this "path is too long" issue is one of those extremely idiotic Microsoft problems, known for many years, already totally archaic in nature but never properly fixed...
However... This is what makes me doubtful: both your path name examples are really short. Probably, there is something wrong in your observations.
—SA
   
I would not be so sure. Normally, the situation is different: people know several different points where to start (come to think about, this is never too much important), but have some particular problems. Well, have you already started with learning Android SDK and Google Cloud API? If you don't yet know where to start, probably you did not learn it yet. Is it a bad place to start? :-)
—SA
   
You are very welcome.
Good luck, call again.
—SA
   
Right. Except some... better documentation.
Thank you, Carlo.
—SA
   
Did you try to find the literature on the Web?
—SA
   
5ed, especially for the last statement. :-)
—SA
   
5ed.
—SA
   
Agree, a 5.
—SA
   
Add to what? :-)
—SA
   
Thank you, Carlo.
—SA
   
Excuse me, get what?
—SA
   
What's wrong with reading original documentation?
—SA
   
Please don't post non-answers as "Solution"; this is considered as abuse.
—SA
   
Maybe even nothing, just yet. Anyway, very basically, the question is answerable. Solution 1 is my try...
—SA
   
Thank you, Carlo.
—SA
   
This does not solves the OP problem, but it would be well too much. It just gets some idea on what's involved. 5ed.
 
But that's not all. The problem is extremely difficult and — surprise! — is not solvable in any cases. Strictly speaking, it is not resolvable at all in the sense of the common concept of "solution". In theory of ill-posed problems, the concept of "pseudo-solution" is introduced.
 
Please see Solution 2.
 
—SA
   
Step by step... 5ed.
 
Even the first sample is useful: it helps to demonstrate how silly are the lines like
if (A)
return true; // but A is already Boolean!
// and what to return is not A? :-)

 
—SA
   
There is nothing to discuss, unless you present some short but comprehensive code sample which can be used to reproduce the problem.
—SA
   
What have you tried so far?
—SA
   
It's not clear what to help with, exactly. The question is too general.
—SA
   
Do the shots in an infinite loop, in a separate thread with Thread.Sleep of required time inside the loop. Record real time using either System.DateTime.Now or (relative to some moment of time, with great accuracy) using System.Diagnostics.Stopwatch.
—SA
   
Please stop it. Start communicated properly, using complete accurate clauses. The way you write your comments and questions (I just answered one of them) will lead you pretty much nowhere. Put more relevant detail, in an unambiguous way. And please don't expect line-by-line explanations — please see my comment below.
—SA
   
Really, this is likely so. By the way, this is why I strongly dislike the design of System.ComponentModel. It could be done much better, using the same .NET capabilities. Many things depends on strings; and a type in a string won't be detected by a compiler.
—SA
   
Yes, I know, agree... I tried to fix my question. I want to try any implementation of any relevant property. In other words, I would need to see a complete sample which I could use to reproduce the problem. It should be something simple, but not so easy to guess what.
—SA
   
Who knows what happens on your server side? This is just the client part, it does not tell us much.
One practical advice: use jQuery.Ajax(), and other jQuery methods and plug-ins. jQuery is an extremely convenient Javascript library.
—SA
   
Explaining code line-by-line is something which would make little to no sense. We don't know your background, so each essentially different line could take a whole article of explanation.
Looking at someone's code (if this is not a sample code in an article, textbook or a manual) is not a right way to learn programming. Instead, read those manuals and write your own code; then we will gladly try to help you.
—SA
   
Where is the implementation of your property You could have missed something there.
—SA
   
The question makes no sense. We have no idea what are you confused with. The question is not answerable. Only in this way: do appropriate software development job; learn the technology to the level where you have no confusions.
—SA
   
It makes no sense at all.
—SA
   
This is not a "formula". This is some code which makes no sense, because each line ignores the result of a previous one. The question makes no sense, sorry.
 
—SAThis is not a "formula". This is some code which makes no sense, because each line ignores the result of a previous one. The question makes no sense, sorry.
 
—SA
   
This is not a "formula". This is some code which makes no sense, because each line ignores the result of a previous one. The question makes no sense, sorry.
 
—SA
   
Use Open XML SDK to read Excel files...
—SA
   
You really should learn using threads with UI. This is the key. Well, could you show the code with Show()? Could you explain your goals in sufficient detail.
—SA
   
Not an answer. Please move it to your question.
—SA
   
Think about it: can flashDescription be null?
—SA
   
My whole point so far was that I don't understand the problem. Your code looks like working for ASP.NET server part.
What's the problem?
—SA
   
"Just by calling what"? You first need to have the loaded DLL and get a function, either C++ or C++/CLI way. By the way, LoadLibrary with GetProcAddress will work for unmanaged code. (If you are sure the the DLL you want to use is native.)
I don't understand the problem of ENTRYPOINT. What is that? How can it be important?
—SA
   
First, modal ShowDialog won't return before you close it. There is nothing you can do it. If it does not work for you, change the UI design. If this method called from some other, not UI thread? (In not, you don't need this.Invoke. And why not Invoking the whole call to this method?)
—SA
   
You are very welcome.
Good luck, call again.
—SA
   
I found where your bug is; the rest of it is a different question. Are you going to accept this answer formally?
Now, usually, video is not read frame from frame. Are those the frames without video compression? If so, why?
—SA
   
Not dump code (maybe), but code dump. Do you see the difference? :-)
—SA
   
5ed.
—SA
   
Why?
—SA
   
Not clear. This is just the code dump, not a well-formulated question.
—SA
   
Sorry, we are not going to do your work for you. This is not a question.
—SA
   
You don't need to use P/Invoke with C++. But you can, in exact same way as with C#.
Or you can create a mixed-mode project and freely combine managed + unmanaged code.
—SA
   
Thank you.
—SA
   
Thank you; it feels like 5kV :-)
—SA
   
I knew you would like it. :-)
Thank you, Bill.
—SA
   
How it would be possible to solve the problem without having any code sample?
—SA
   
Oh... well, I would still use this new book, and, if something was not implemented then... figure that out. After all, think about it: you want new book on obsolete version. Wouldn't it be too much? :-)
—SA
   
Thank you, Matt.
—SA
   
This is like saying: "I need to restrict number of selected items in ListBox, because I have to restrict them while selecting items from the ListBox". if you don't want to answer, don't. I suggested you a reasonable solution, please see.
—SA
   
Are you binding it with some database? If so, it would be better to perform such calculations (really simple ones) on the data source, not on UI...
—SA
   
Haven't you been banned by Google and Bing? :-)
—SA
   
Thank you, Matt.
—SA
   
Why doing so?
—SA
   
Manas,
 
This information could be useful, but, unfortunately, this is not a solution to the OP's problem. Showing Google queries cannot be adequate in all cases, otherwise this forum would not be needed.
I am sure that real solution is the different UI design. I suggested much more reasonable design and motivated it (as well as the problems of OP's idea) in Solution 2, please see.
 
—SA
   
Unfortunately, the question, as formulated, does not seem to make any sense. The term "focus" is related exclusively to certain UI. At a time, there is on control in the whole desktop, which holds keyboard focus and responds to major input from the keyboard (not counting hot keys, keyboard accelerators, hooks, etc.). The focus cannot "go back to method", because this notion is not applicable to methods. Even though there could be some real problem behind your post (or not real :-), you did not explain it. The code sample also does not help much to see the problem, because nearly nothing tells us how different point in this code are related to your textual description. RemoteMonitor returns bool (why?), what what?..
—SA
   
Upload where? You can upload using Ajax or just some HTML form, but further processing goes on the server side, according your own description. What do you have on server side?
—SA
   
And how about using the debugger?
—SA
   
Thank you, Maciej.
—SA
   
You are very welcome.
Basically, yes, but not in all cases. :-)
There are two things to it: 1) Entry point can be other than Main; 2) entry point can be not yet called before some other method is called (shown in Solution 2).
—SA
   
It looks like the problem is about this: when one connects to a remote computer running RDP service, authentication is required. This is about Windows authentication (domain/username/password) through a RDP client (or possibly some equivalent kind of service and client). I tried to answer in Solution 1.
—SA
   
Thank you very much, Afzaal.
—SA
   
What do you mean by "jery"? The only meaning I know is the Neomixis, a genus of bird...
—SA
   
"I really can't get it" is not informative enough. Could you, instead of being focused on concrete figures, explain it properly? What piece of code should do what, what did you expect from it, what did you observe instead, what make you think that the observed result is wrong? The problem looks really simple; did you try to use the debugger to see from what place the discrepancy starts? When you figure it out, you could rethink the design of the code...
—SA
   
My pleasure, from all the heart. I really hope you will be able to repay the help in exact same way, by helping others. In a way, you already started doing that, because your questions and the responses to those question can eventually be useful for other readers, not just you. Another kind of help could be: your questions can be served as a model of productive ways of getting help. I wish other inquirers could read and understand them, before asking their own questions...
 
Thank you.
—SA
   
Right. As I say, if other inquirers just tried to approach problems like that, it would be really good.
As to the motivation for help: there is no stronger motivation then the hope that the efforts in providing some help are put in the fertile soil. No one likes wasting time, but if at least one or few percent of the answer posts changed things to better, I would call my time spent in a good way.
—SA
   
Sure. I suggest you modify the question by using "Improve question" above (in 3 places) and spell it correctly from now on.
Good luck.
—SA
   
No problem. It's never too late to sort out certain things. It's good that my guess turned out to be correct and was able to help.
Good luck, call again.
—SA
   
What is "asp:calander"? If you write something like that in code, build won't understand what you mean. :-)
—SA
   
In Solution 2, I provided your some guaranteed illustration of my point. Will you accept it formally, too?
Thank you again for this question.
—SA
   
Thank you, Carlo. This is a pretty interesting, not so trivial question. I even provided one more detailed answer with the code sample. I would be interested if you could give us some different idea.
—SA
   
Sorry someone voted 1 for this question. The question is not so trivial as it may seem to some. I up-voted it with my 5 and added my edit to it, to attract the attention to this aspect to those who already read posts on this page before.
 
Thank you for the interesting question.
 
—SA
   
If your WCF-based applications use HTTP, the use of the proxi is no different from any other HTTP-based applications, such as HTTP servers and browsers. This is a totally orthogonal aspect. Aren't you mixing up HTTP proxy and remoting proxy interface (code)?
If so, you probably need to read on each topic separately, to overcome this confusion...
—SA
   
No, not exactly. Almost, but not always!
—SA
   
Agree. It was Microsoft who acted in a confusing way, not OP: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633534%28v=vs.85%29.aspx. :-)
 
Thank you very much, Carlo.
 
—SA
 
P.S.:
 
Speaking of the OP's correctness: did you pay attention that he always prepares all his questions thoroughly, putting adequate effort and providing enough of sufficient detail? I with other inquirers at least tried to do the same.
 
Probably this is because he is always learning new stuff. :-)
   
Thank you very much.
—SA
   
From reading just the title of the question: if you just move the window, it does not change its size. Change the size properly, if you need to.
—SA
   
Thank you, Carlo.
—SA

Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid