|
Hi Adam,
I have read that and was lost , i would appreciate if someone could post a simple application with a form , and then call it from webbrowser. My aplication involves Microsoft Agent controls also with speech enabled.
samar
|
|
|
|
|
Here[^] is a code project article on the subject.
"...practice safe hex when IM'ing"
--Shawn L. Morrissey, Managing Editor, MSDN Online ( MSDN Flash; Volume 8, Number 20, 10/4/2004)
|
|
|
|
|
thanks i am going to try ,
thanks again
samar
|
|
|
|
|
I have a buffer containing MPEG-1 audio data. How can I play such data in C#, assuming I have the right codec installed, and using DirectX .NET ?
Thank you
|
|
|
|
|
I am trying to find a way to extract and send the contents of TEXT FILE 1, via email, to a list of email addresses in TEXT FILE 2.
So just to clarify, I would like some code which will rip the contents of Text File 1 and send the contents to everyone in Text File 2.
Any help received will be greatly appreciated.
Thanks,
|
|
|
|
|
You should just lookup the System.IO class for reading files. I think there is another class that works on top of a System.IO.Filestream or FileInfo or something. It reads text into strings.
As for the email, check out System.Web.Mail;
You are going to want something like:
SmtpMail.SmtpServer = theIP;
mailMsg = new MailMessage();
mailMsg.From = "stuff@stuff.com";
mailMsg.To = "recipient@anemail.com";
mailMsg.Subject = subject;
mailMsg.Body = body;
SmtpMail.Send(mailMsg );
Are confused about how you could actually traverse through the files in the text files?
Hope this helps,
Jim
|
|
|
|
|
|
Your spelling and phrasing makes it difficult for me to understand what you're asking. Do you want to print your form, and only your form? Or are you trying to print your form, and anything that's on top of the form (like the task manager)?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Hallelujah! It's Ken Jennings!
Judah Himango
|
|
|
|
|
Sorry I talk french....
I want to print only my form event if there was another application in front (like task manager).
I can't use the class DrawControl because i use many control that i create.
Tanks
|
|
|
|
|
|
Hi All,
I am calling below code in installer class it is giving exception.System.Diagnostics.Process.Start("mailto:abc@yahoo.com")."The requested lookup key was not found in any active activation context".
But the above line of code is working fine by opening a Outlook Express New MailMessage window,when i called from a button click event in a windows form.But when i try to call it frominstaller class its giving exception.
Any body have idea please reply back.
Thanks in advance.
Sastry.
Sastry
|
|
|
|
|
Please see this recent MSDN article, in particular, scroll down 3/4ths of the way down the page and you'll see the exact problem you're describing:
Process::Start("http://www.microsoft.com");
Alas, if you try this at home, the same thing happens. The call throws a Win32Exception which yields an even more cryptic code in its NativeErrorCode property: ERROR_SXS_KEY_NOT_FOUND. The description for this error is "The requested lookup key was not found in any active activation context." Huh?
If you poke around the documentation for Process and read all the fine print, you'll discover that Process uses something called StartInfo in order to tell it how to start the process. One of the properties in StartInfo is UseShellExecute. By default, UseShellExecute equals True, which tells the Framework to launch the process using the shell, that is, ShellExecuteEx. Okay, so try setting it to False. But then, as the fine print explains, you can only start EXEs, not file names or URLs.
The article mentions some other options, such as using rundll32, to launch your URL.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Hallelujah! It's Ken Jennings!
Judah Himango
|
|
|
|
|
Hi,
Is there anyway to add a custom button using the .NET MessageBox rather than creating my own class to do this? I wish to add an Extra Info button to a message box and hook in an event handler e.g. be able to:
MessageBox.Show("Error", "Error", MessageBoxButton.OK + MessageBoxButton.ExtraInfo);
Many thanks,
Gary
|
|
|
|
|
I don't think so. There are some other existing message boxes built into Win32 that you could wrap (for example, SHMessageBoxCheck), but if you're trying to do anything elaborate (for instance, display a checklist of files to be saved), you'd be better off implementing your own MessageBox.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Hallelujah! It's Ken Jennings!
Judah Himango
|
|
|
|
|
You might be able to do something with an article on MSDN, written by Dino Esposito (Windows and .NET GOD! IMHO), Using Windows Hooks to Enhance MessageBox in .NET[^]. I don't if any of the techniques will let you do want to you want, but it's worth a look.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I used the wizard to create an install application. I works fine except if a file exist it does not replace it.
If "C:\mydir\myfile" exist then it does not install a newer version.
Is there a property I can set to say, replace existing objects?
thanks
|
|
|
|
|
|
|
|
I need to get a new pixel color starting by a green color and another one over this blue semi-transparent at 50%.
I've readed some articles on this forum but i need just 2 lines of code not warking with whole bitmaps.
I know it is a very simple stuff, but i don't know how fuse or join two pixels getting another colored pixel.
i've tried with
myColor.R = Color.Green.R & Color.Blue.R
myColor.G = Color.Green.G & Color.Blue.G
myColor.B = Color.Green.B & Color.Blue.B
it works but it fuse full blue on green, i need to fuse semitransparent blue instead.
Please help me.
thanks
|
|
|
|
|
I want to add a button on windows Save As dialogue tool bar. I need information (name, path) about current document (which send Save As dialogue). From any documents I want to save them automatically in a fixed folder(s).
Best regards,
Mihai
MihaiChioariu
|
|
|
|
|
You can do this using the Win32 APIs OPENFILENAME structure and GetSaveFileName() functions. You need to define the OPENFILENAME structure in your C# application and use P/Invoke for the GetSaveFileName function.
The OPENFILENAME structure has a parameter called lpfnHookProc. You will add code like the following for this parameter:
public delegate int OFNHookProcDelegate(int hwndDlg, int uMsg, int wParam, int lParam);
ofn.lpfnHook = new OFNHookProcDelegate(HookProc);
The HookProc receives all messages sent to the FileSave dialog. You will need to intercept the WM_INITDIALOG message, get the window handle for the toolbar, and add your toolbar button to it. You will also need to respond to any notification messages from your toolbar button.
Customizing the FileSave dialog involves much interaction with the Win32 API via P/Invoke. You can do a search on Code Project for examples. The FileSaveDialog and FileOpenDialog classes are sealed so you cannot subclass them.
I hope this helps.
Andy
|
|
|
|
|
Hi,
Is there any tool by which i can debug my Exe.I had made that Exe from C#.net 2005.
Can any one can guide me on that?
thanks.,
regards.,
montu3377
|
|
|
|
|
|