|
No!!! No whitespace! Whitespace is akin to white noise. Well, I suppose it's a personal choice.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
But it's quiet white noise.
|
|
|
|
|
Return Type should be string.
|
|
|
|
|
WHAT THE %#&*# ARE YOU TALKING ABOUT??
|
|
|
|
|
I think this is a problem of data type.
|
|
|
|
|
No its not. Nowhere in the post did OP mention about variables. OP is simply asking if there is a way to disable Visual Studio's automatically removing of the whitespaces that OP is putting on his methods (ex. void Method1( string arg1 ) )
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
|
Your solution doesn't have anything at all to do with the question that was asked.
You are so far off topic that everyone who reads your answer will wonder if you intended to post your answer to an entirely different question.
|
|
|
|
|
This is a direct email response to your message on the page "C#". This message has not appeared on the discussion board for that page.
Message from Apocalypse Now <..........@qq.com>:
I think you haven't understanded this problem.You think How do his problem resolved?
________________________________________
Ummm, I think it's very much YOU who haven't understood the problem. The 1st reply (JOAT-MON) to the OP solves the problem as described.
|
|
|
|
|
|
You can describe what you think you're code is doing all you want, but we can't tell you what is actually doing unless you post the code that is creating this other child form.
|
|
|
|
|
If I remember correctly - when you create a child form, you need to set the child form's parent. This might be the cause of your problem.
For example:
MyChildForm frmMyChild = new MyChildForm();
frmMyChild.MdiParent=this;
frmMyChild.Show();
|
|
|
|
|
Dave / Egenis,
I'm using exactly this code to create a child form...
I have 2 situations which, maybe, clarifies the problem...
I put:
frmParent MdiForm = frmParent.Instance();
MyChildForm frmMyChild = new MyChildForm();
frmMyChildForm.MdiParent = frmParent;
frmMyChildForm.Show();
The other thing is, at the second form child I have an Crystal Reports Viewer (crViewer), and it seems to be the actual cause of the problem, cause, after post this question, I tried to create an identical application, without this crViewer and it works fine...
Any clue ?
Thanks in advance.
Nothing is Impossible, but sometimes it's hard to do
|
|
|
|
|
What's with the "singleton"?? Since a MdiForm is usually the top level form in an app, why the singleton pattern??
As for CrystalReports, I never use it.
|
|
|
|
|
I put it on Singleton cause I'll call / use its instance in another forms, so, if I put "new MDIForm" I will create a new instance of it and lost the actual reference...
As I said before, as I create a specific menu for each form, using the ToolStripMenu from the MDIForm, and I call another forms from the very last form loaded (a child form calling another child form) using its menu. Ok, about the "using ToolStripMenu..." I forgot to say...
It's a little complex to me to explain all is going on... It has a lot of details and more I explain, more is needed to explain, a detail have lots of details behind it...
And, to complete this, my English is not fluent. (Although I think I'm making a good job... hehehe)
Nothing is Impossible, but sometimes it's hard to do
|
|
|
|
|
Ok I'm stumped!
Only thing different then in your implementation is the singleton parent. Wonder if that might not cause this?
Is there not maybe a property on the report viewer that is pointing to the parent window instead of the child window?
|
|
|
|
|
|
I GOT IT!!!
When I'm calling the second child form, although I use the MDIParent singleton, and use at the first form child:
MdiForm mdiParent = MdiForm.Instance()
frmForm2 frmChild;
frmChild = frmForm2.Instance();
frmChild.MdiParent = mdiParent;
For an unknown reason, the second form child was encapsulated into the first child form, so, I change the approch to:
frmForm2 frmChild;
frmChild = frmForm2.Instance();
frmChild.MdiParent = this.MdiParent;
And it works great!
None about crViewer... My Fault!
Thanx a lot for your help!
Best regards,
João Luiz
Nothing is Impossible, but sometimes it's hard to do
|
|
|
|
|
WHAT IS THE USE OF RETURN KEYWORD IN C#?
IS THERE ANY COMPLETE ARTICLE ON IT?
|
|
|
|
|
It allows you to return a value from a method. Basically, it returns a value that is appropriate to the return type of the method; so if you were trying to pass a string back out of your method to the calling code, your method would be defined with the string as the type for the method, then you use something like
return "This is my string";
modified 14-May-12 16:13pm.
|
|
|
|
|
Pete O'Hanlon wrote: ur
Pete, what were you thinking!
|
|
|
|
|
I posted from my tablet without reading what I was typing. Unfortunately the Android keyboard really sucks. I'm on the laptop now, so I shouldn't have missing letters.
|
|
|
|
|
Is that from your galaxy 10.1?
I wish they would get their finger out and get an official ICS update pushed out. Chrome on ICS is so much better than the standard browsers. (well it is anyway on my Nexus phone!)
|
|
|
|
|
DaveAuld wrote: Is that from your galaxy 10.1?
Yup.
I just want them to get the Chrome browser sorted out. It's ironic how much it sucks on an Android tablet.
|
|
|
|
|
I am sure I read that Chrome Browser has dependency on ICS so, no Chrome browser on < Android 4
|
|
|
|
|
Well, they do have a browser on there that they call Chrome. Unfortunately, it's not the proper Chrome version - that's ICS+ only.
|
|
|
|