I want to write my program in .NET 2.0, just because I'm used to it (and because it will be primarily run on XP). However, for a certain part of the screen (i.e. a separate window) I want to use WPF to render text and video etc. Is this possible? What I was thinking was creating a component in WPF, and adding it to my app. Does anyone know of an easy way to do this? Am I just confused, thinking that I cant use .NET 2 controls in a .NET 3 project?
supposed to return a value?
No, SmtpClient is a class, not a method. Perhaps you were thinking of the SmtpClient.Send() method? But it also doesn't return a value. If something goes wrong, it will only throw one of six exceptions, documented here[^].
Anybody know right off the top of their head how
to ping /poll the SMTP server before hitting
You can ping the target server, but there is nothing that says that the target server has to respond to that ping. It's also entirely possible that the target is sitting behind a firewall, blocking ICMP Echo requests, thereby neutering your attempt to "test" the server's presence.
Basically, you can try to ping the server, but it's no guarantee that the server is, or isn't, actually there and responding. The only thing you can do is try to send the message and see what happens.
I have a problem when I use an Add-in to word, I want to get the filename / path of opened document.
(i.e i have a opened a document in word, now when i click my button it should return the filename / filepath of opened word document.
I think it will mostly depend on how the application is written. Keep in mind that WPF is a vector based display technology, but it shouldn't have a problem.
The better option will probably be to rewrite the application to take advantage of WPF and the data binding capabilities rather than to just port it. WPF is a completely new beast and there are better/different ways to do things than we had in WinForms.
In just two days, tomorrow will be yesterday.
I am making simple screen capture win32 application using VC++.NET. I am able to capture it in the memory and getting handle of that bitmap but I am not able to show that bitmap in Picture Control in dialog box. Can I know what wrong with my code??
I am pasting my code here.
I have two requirements of my religiously applied XML comments. I would like some way of also using shared documentation, e.g. a glossary of terms. The only way I can think of achieving this is including an external file at the assembly level. Then the generated overview documentation for each assembly can contain this information. Is there any other way of going about this?
My second wish is to extend the actual schema, to include tags that I can use to document relevant unit and integration testing information for types and members. I don't think this is possibly in pure VS 2005, but I suspect that something like doxygen may be able to allow this. I just can't get to experimenting yet so I thought I'd check if someone knows more than me.
iam working on asp project here i need some datareport generated has to be exported to excel for this i wrote one dll and its working fine when i checked that using vb code but it is not working from the asp page?
i am unable to catch the error
its not giving any error and giving message as done (i placed as output)only
but it is not exporting to excel
can any body help
(not in asp.net its asp only)