|
You've got something seriously screwed up in your project. The compiler cannot look for System.Windows.Forms in your namespace. I don't know what to tell you because I can't even replicate the problem in a test project with what you've posted. What are the namespace properties of the project? What namespaces are you importing at the top of the code for each of these??
|
|
|
|
|
I've run into this before. You are correct in that the compiler is looking in Foobar.System.Windows.Forms because you named your namespace 'System'. The local namespace 'System' overrides the global namespace 'System'. I do not know how to get around this. In my case I chose not to name my namespace 'System' but instead named it 'Foundation'. I just wanted to let everyone know that therei s nothing messed up with your project.
|
|
|
|
|
Hi all,
Is it possible to call a function with sending a XML file as XML DOM object.The XML is corrupted(means it contains special characters and will not open in internet explorer)
code is something like this
XmlDocument xmlDoc = new XmlDocument();
--------------------------------
--------------------------------
--------------------------------
xmlDoc.save(path+filename)
bool uploadstatus= functionName(xmlDoc);
public bool functionName(XmlDocument XmlDocToUpload)//is not calling
{
----
----
----
}
Thanks in advance
|
|
|
|
|
hi rakeshs312,
the example you wrote above is possible, you can't send objects direct over tcp or serial port.
you need to get the byte of the XmlDocument.
In your case you have special characters, so you need to convert these character to UTF-8 charset.
(IE doesn't show it because the secial characters are not correct encoded!) take a look at the HTML characters so an open breaked character '<' is in the inner xml not an '<' it would be written as ‹
if you write ÄÖÜ in xml you have the same problem, IE can show this, but the encoding is wrong either.
to solve get the hole Xml from the document as string and convert it to an UTF-8 string or byte array.
hope i could help you
bless
|
|
|
|
|
|
here take a look at System.Web.HttpUtility.HtmlEncode(data) need the System.Web reference!
|
|
|
|
|
Hi!
We have a problem with a program. This program is running 2 years ago and it is used by a lot of users. Some days ago we have had a problem with some users.
When I view a report of crystal report, afert i click escape, the program close without enter in any methods "closing". I have read the msdn that only can happen when there is an applicattion exit. there isn't an applicattion exit in this side. Still debugging i can't do anything because it close all forms.
We think that it can happen with something external to our program, there is something more in the computer... If someone hava a similar problem and can left me an opinion...
Ty
|
|
|
|
|
saldanha22 wrote: there isn't an applicattion exit in this side.
In that case there must be a bug somewhere in the program. It is impossible for anyone here to guess what might be the cause as we have no knowledge of your application. It looks like you have to do some debugging to try and find where it is going wrong.
|
|
|
|
|
if u press f11 key, after the report closed, it move on the disposes of the form's open without enter in the method closing. Is random. Sorry for my bad english
|
|
|
|
|
saldanha22 wrote: if u press f11 key
I (and everybody else here) have no idea what your application does when you press the F11 key. You will have to look at the source code and figure out what debug code to add in order to try and find the error. I know that random errors like this are very difficult to debug, but that is the only solution.
|
|
|
|
|
When i talk about the f11 key i am talking about debug key (i debug the aplicattion line to line with this key). And after do the return, this going to disposes of all forms. It doesnt continue by the stack traces.
|
|
|
|
|
Sorry, but without being in front of your system I cannot offer any further suggestions.
|
|
|
|
|
hello
I asked for a component Changing the Windows Form
|
|
|
|
|
What? Can you be descriptive?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
component for Changing Windows application form
|
|
|
|
|
I'm sorry, english must not be your primary language but please, describe exactly what you want, what you expect it to do, how you expect it to do it, what it is for, and please use more than one sentance to explain all of this.
|
|
|
|
|
Surely he is not talking about the Visual Studio IDE? That is the "component" I use to change windows forms.
|
|
|
|
|
Sorry
For example,
That this component of work to do
Rad Controls for Winforms
i request component free like this component
|
|
|
|
|
What do you mean by changing windows application form? If English is not your first language, you can write the post in your own language and translate it using google. It would give a better picture than current.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
yes
What do you mean by changing windows application form?
|
|
|
|
|
You, sir, are a patient man.
Regards,
Rob Philpott.
|
|
|
|
|
First
You're a fool
Secondly,
If you do not Literacy
Speak not in vain
|
|
|
|
|
h.pordel wrote: First
You're a fool
This comment is unnecessary; a number of people here are trying to understand what your question is and you waste time with abuse rather than explaining what you want.
|
|
|
|
|
Hardly a fool. He is saying that d@nish is being very patient in trying to understand what your problem is, from a nearly useless description. We do understand that English is not your primary language, and d@nish is trying pretty hard to get a better description of your problem from you. That is no reason to start being abusive, particularly to people who have not offer you any insult.
As d@nish suggests, write out a full description of your problem in your native language, and use google to translate it into English - we may be able to help you more then.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
h.pordel wrote: First
You're a fool
You're the one starting with the insults, needlessly. I hope you dont really need help with anything now...
h.pordel wrote: If you do not Literacy
He's not the one with the literacy problem here. Your description of what you want is lacking any explanation of HOW you want to change a form. Without that, it's impossible to tell you what controls would work for your problem.
|
|
|
|