|
If both your classes are in the same namespace, simply create an instance of your class and make a call to the method
...
XMLWriter myObject = new XMLWriter();
myObject.WritingToXMLDoc("elementString", "writeToXMLDoc");
...
I'm not sure if im on the right path here but i hope it helps
|
|
|
|
|
Hi,
Thats exactly what i have
|
|
|
|
|
Yustme wrote: DateTime dateTimeNow = DateTime.Now;
Why ?
Yustme wrote: writer.Close(); is to stop writing and used for disposal.
But that reads as if the method can only be called once - why ?
What are you expecting and what are you getting ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
To write the date and time in the xml file too.
What do you suggets instead of using Close()?
Havent tested it all yet, but it writes the start and end element and the time and date.
|
|
|
|
|
Yustme wrote: To write the date and time in the xml file too.
But it's more than redundant, it will continue to point to the moment the file was created, which is not what Now means. And, if you only use it in one method, why is it even a member, assuming you had to create it at all ? Just use DateTime.Now.
Yustme wrote: What do you suggets instead of using Close()?
If you need to close the file, expose a method to do this, otherwise calling your other method once will close the file, but not make this clear.
Yustme wrote: Havent tested it all yet
OK, then at what point did you have a problem with what it's doing ? Or did I misunderstand you ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
Not having any problems atm.
|
|
|
|
|
Hi
i have to access data from a file located on a remote pc on the network. Can anybody suggest me which method to use, either asynchronous sockets or remotig. and what will be the pros and cons of using remoting or asynchronous sockets.
sAqIb
|
|
|
|
|
Hi,
My reply regards sockets. They could help you but to use sockets you have to create a server and a client application. This could be a problem sometimes. I've worked a lot with sockets and they suited well in my applications. I don't know much about remoting but sockets require a server which listens for a connection and that could pe a con sometimes
Do your best to be the best
|
|
|
|
|
Can you not use network file-sharing to achieve this?
Regards,
Rob Philpott.
|
|
|
|
|
Hi,
I have DataTable that is binded to a DataGridView. How to I retrieve the values in the columns/rows dynamically? I want to retrieve the string representation of each cell. Clearification: When user have finished entering data in the datagridview he/she hits the save button every data in each cell is saved into a objects fields.
Thanx in advance
Regards
/Christoffer
|
|
|
|
|
Hi all,
I need to covert a video file to a .flv file,
How do i do that?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
import the video in Macromedia Flash. flv is a Flash Video.
regards,
g00fy
|
|
|
|
|
sorry i didn't get u,
Here is what i want to achieve.
I have created a web Page, now i want to play a video file on this page.
For this i want to convert a video file to a .flv file.
how do i convert a video file to a .flv file?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
To convert the video, import it in flash and from within. Moreover there are external FLV converters also available.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
I think u didn't get wht actually i am trying to do.
I have a web application, on my ftp server there are video files which i
need to play on my page.
Now when i get the files from the ftp server they are video files,
And i want them to convert to .flv files so that i can play them in the browser.
Hope i am able to explain it now.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hi,
i have a desktop application in which i have a datagrid.
each row of the grid have few dropdowns.
now after the user make the changes in the grid, i want to just bulk update the grid in the database, i dont want to include the rows in the update which have not been updated.
Thanks.
Deepak Surana
|
|
|
|
|
Well for this, you can use the datagrid row properties to find out which are the changed/modified rows and likewise only update those rows in the DB.
Does that answer what you looking for?
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi,
I think it can solve my problem,
can you please provide me a code snippet for the same.
|
|
|
|
|
i want to make style as this
http://www.shoppinp.com/testing.png
how can do this ???
Palestine
|
|
|
|
|
google or search on cp for 'outlook bar' and you will find alot of them.
here[^] is one on cp, although the look is not quite waht you are after
regards,
g00fy
|
|
|
|
|
I use an IPCChannel to relay information between 2 apps on the same PC. This all goes well. The problem is when I close the server side application, and then start it again I can not re-establish the IPCChannel untill I close the client app that connected to the previous server side app too.So I guess somewhere the .NET framework still keeps track of that IPCChannel. I tried to run Channelservices.UnRegisterChannel on the server side app before I close it and running an UnRegisterChannel on the client side too, but to no avail.
Does anybody know how I might fix this problem?
Thanks for any help,
Davy
|
|
|
|
|
Reinitiate the remoting setup request by dynamically performing the steps to register the channel and connect. You need to ping the Server and when it becomes online, reinitiate the remoting framework from the client.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
hi,
i'm writing a code to read and write to my serail com port
to know when i am writing i use hyperterminal and connect com1 to com5
but i dont know how i should test the reading?
any suggestions?
here is my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
namespace serial2005
{
public partial class Form1 : Form
{
// Instantiate the communications port with some basic settings
SerialPort port = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);
public Form1()
{
InitializeComponent();
}
private void send_button_Click(object sender, EventArgs e)
{
// Open the port for communications
port.Open();
// Write a string
port.Write(txt_send.Text);
// Close the port
port.Close();
}
private void read_button_Click(object sender, EventArgs e)
{
port.Open();
txt_rec.Text = port.ReadLine();
port.Close();
}
}
}
|
|
|
|
|
one document is there in codeproject only.what you do use one female com port connector and connect the two pins with a wire ,i dont know the pin no but read the document you will get that one.and run your application ,mine is working fine.i will search out and will let you know the pin nos
<marquee>nishu
|
|
|
|
|
Check this link
http://www.infonewsindia.com/pinout/#3[^]
connect 2 and 3rd PIN and you will get your result.I have done suchh kind of application and its working really fine...
Enjoy!!!
<marquee>nishu
|
|
|
|