|
SORRY, Richard,
I meant that I'd deleted this post as well as the original question in the "Regular Expressions" forum, which I saw didn't have any questions or answers since february... BTW deleting both of them was my only idea after I saw how someone anonymously downvoted my question in the C# forum - why it didn't work here I can't tell, deletion of the original obviously worked (that's the reason for the broken link - but I update the link, that really makes sense..).
Maybe you can recognize my attempt to follow the rules.
I'd posted the original question in the VB forum, as I said meaning to have the other ones deleted. Now it seems that this post isn't deletable anymore now (maybe because of being answered now). I will if you can tell me how to do it.
Thank you still [Rose]
|
|
|
|
|
Michael Schäuble wrote: I'd posted the original question in the VB forum But that was still the wrong place.
Use the best guess
|
|
|
|
|
I've tried my best first, by putting the question into a completely unattended forum and linking to it. What would you suggest to do in such a case? Wait another four months? I wonder why unattended forums aren't closed down...
And: Can a place which is visited be a wrong place, anyway? My posting there resulted in a good, simple and working solution of the problem some minutes ago, from someone who looked at the question itself instead of judging helpless attempts to follow the rules for the remaining rulebreaking. I guess that's what a forum needs and what other searchers want to read even after years, right?
I'm German and know a lot about useless formalities - this seems like one of them. All I did was what you yourself write in your signature:Richard MacCutchan wrote: Use the best guess Have a nice weekend, still!
|
|
|
|
|
Michael Schäuble wrote: I've tried my best first, by putting the question into a completely unattended forum There is no such thing. Each forum is dedicated to a different subject and peple who are interested in that subject will visit those forums in their own time. The site makes no guarantees about responses or their validity.
Use the best guess
|
|
|
|
|
Hi
I have developed Window service in .Net 2010 and in that windows service we are using Word COM object to covert DOC to PRN file.
if i run the window service in my local its working fine, but if i deploy the window service in Server 2008 R2 server i am getting below mentioned error, (Server 2008 R2 server Word 2003 is installed)
There is insufficient memory. Save the document now. (C:\...\ACL-PhillipSholar_1482.doc)
source Microsoft Word [System.Runtime.InteropServices.COMException]
at Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
If any one know how to resolve the issue, Please let me share your fix.
Regards,
Ganesan. B
|
|
|
|
|
Is it a 64 bit server? It may be an issue with that.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi
i have a question about help file button and f1 keydown property in c#.
can we have in a form help button and keydown property about help(with press F1 key) ?
i use the following commands for the key :
-------------------------------------------
if (e.KeyCode == Keys.F1)
{
Help.ShowHelp(this, "Help.chm");
}
and for the help button:
-----------------------------
Help.ShowHelp(this, "Help.chm");
But only one of the two methods are working the other one activated when start other one method.
for example if when i press F1 key is activated the help file then if i press the help button will work too but if i close the running program and i will start again and press help button without press f1 key before then the button does not working.
|
|
|
|
|
I have an application in C# which launches remote desktop for user in our control room to various remote machines. the problem I am having is the need the windows shrank to a tiny window and to scroll all the way to the left and about 5 click down. I cannot find anything in the wild that shows how you can control the scrollbar of an external application any help would be great
thanks
|
|
|
|
|
I am writing a new C# 2010 desktop application. This application will allow users to select a file from a specific directory location. I am wondering is there anything in a windows application called 'type ahead' feature? Basically
the user will stat typing a few letters and all the files in a selected directory path will appear. (I am asking this question since this feature is available in web applications.)
If there is this type of a feature, can you tell me what this feature is? In addition can you tell me and/or point me to a reference that will tell me how use the 'type ahead' feature?
|
|
|
|
|
|
public void Foo(Bar bar)
{
if (bar== null)
{
bar = new Bar();
}
}
--- or ---
public void Foo(Bar bar)
{
bar = bar ? new Bar();
}
Which do you think is better?
[Edit]
Thanks all for your help. I opted for 1 (it was the original code so I know it'll make it through the code review) and easier for newer devs to understand. I might drop the {} .
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed” “One of the greatest problems of our time is that many are schooled but few are educated”
Sir Thomas More (1478 – 1535)
modified 28-Jun-13 9:22am.
|
|
|
|
|
I prefer the first one. I only use ? or ?? in places where an if isn't allowed.
But I'd probably throw an Exception in the case you show.
|
|
|
|
|
The first one is more readable. The second one is probably more performent?
The signature is in building process.. Please wait...
|
|
|
|
|
vonb wrote: The second one is probably more performent?
Probably not. Under the comvers, it still comes down to an if statement that the compiler is going to optimize any way it sees fit.
|
|
|
|
|
It probably doesn't matter as the compiler will optimise it to the best case. However, I would choose the first for readability and maintainability.
Use the best guess
|
|
|
|
|
Why is "??" bad for readability/maintainability?
|
|
|
|
|
I never said it was, just that I would choose the first option.
Use the best guess
|
|
|
|
|
You logically implied it.
If you choose option 1 over option 2 "because readability/maintainability", there has to be something wrong with the readability/maintainability of option 2.
|
|
|
|
|
harold aptroot wrote: You logically implied it. No I didn't, I merely said what my preference was. That in no way implied anything about option 2, except that it was my second choice.
Use the best guess
|
|
|
|
|
Actually you did, even if you didn't intend to.
|
|
|
|
|
harold aptroot wrote: Actually you did, even if you didn't intend to. Actually I didn't, intentionally or otherwise.
Use the best guess
|
|
|
|
|
No, you did. Look, you said "I would choose the first for readability and maintainability".
You can only make that choice for that reason if you believe the first to have better readability and maintainability. Thus by symmetry, the other thing must have worse readability and maintainability.
|
|
|
|
|
No, I did not. I know exactly what I said, and I cannot help it if you choose to believe that I said something else.
Use the best guess
|
|
|
|
|
I don't choose to believe you said something else, I quoted you exactly. Evidently I'm reading something into it that you didn't intend, but I just proved my point while you keep saying the equivalent of "lol nope".
|
|
|
|
|
harold aptroot wrote: I quoted you exactly. No, you are trying to tell me what my words meant. I am telling you that your assumptions are wrong. Why do you continue to insist that you know better than me what I meant? You are rapidly going down the troll road.
Use the best guess
|
|
|
|