|
Like the other's suggested I would use XML also. In your case you are interested in the DataSet.ReadXml() and DataSet.WriteXml() methods. I would:
1) Input all the data by hand into my DataTable and then add that DataTable into a DataSet.
2) Call the DataSet's WriteXml() methods and pass a FileStream into it so you will end up with a file.
3) Now you can use that file as a template to manually change the Value tags in there.
4) When you are done with changing your Value tags you can call the DataSet's ReadXml() method, with another FileStream, to take all your data in the XML file and put it inside a DataTable and a DataSet.
-Peter
|
|
|
|
|
Hi,
Can anyone tell me a way to put my Application on to a web, This is right now a stand alone application with forms ,button ,tab controls ..etc , how do i make this web enabled.
I have tried to put the code under wwwroot on IIS and created a simple html file with a button to invoke my .exe file directly , but it throws an expection for security breach, then i have removed all the security issues and tried, then i get different error.
is there a simple way to move (convert) your stand alone Application to web based
thanks
Samar
|
|
|
|
|
This[^] is a good way to go.
"...practice safe hex when IM'ing"
--Shawn L. Morrissey, Managing Editor, MSDN Online ( MSDN Flash; Volume 8, Number 20, 10/4/2004)
|
|
|
|
|
|
Read this[^] to find out what it is.
"...practice safe hex when IM'ing"
--Shawn L. Morrissey, Managing Editor, MSDN Online ( MSDN Flash; Volume 8, Number 20, 10/4/2004)
|
|
|
|
|
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
|
|
|
|