I need to append data to a pre-existing xml file.
We run a process and write out a certain amount of information in the beginning. The we need to append data to the file as long as the process is running.
My file will look something like this
<Main Tag>
<BeginningData value="This is the...
Chiph - that does help somewhat - my date convert fine except for the hour - the other components - including the min and second are fine - the hour is always 7-8 + of what it should be so if the date is 01/01/2003 1:1:1 it will convert as 01/01/2003 8:1:1. Any suggestions?
I have some files written using VC++ 6, they use ctime. I need to convert the data to a datetime object in C#. ctime starts from 1 Jan 1970 while datetime in C# apparently starts from 1 Jan 1601.
As a example - the old code stores the date - 15 Sep 2003 as 1063664140 (this includes the time...
Thanks for that - the application is in VB and so I cannot use AllForms property.
Now I have all the form names but how do I load them ?
Load needs a specific name cannot use
dim s as string
s = "form1"
load s
I have to say
load form1
Is there an API I can use and pass it the...
Is there some way to list all the forms that are present in an application. I cannot use the forms collection since it only lists the loaded forms, I want to list ALL the forms that are part of an application
Not sure if you last comments were for what I posted - in case it was
DO NOT set ObjWord to nothing in the same button click - set it in the form unload. Also DO NOT initialize it in the button click - do it in the form load. I have tried the code I mentioned above and it does work
It does not execute the code in mousedown or mouseup when I click on the some control in the form. Is KeyPreview supposed to capture mouse events too? Its help only talks about the keyboard events
Try this -
the declarations need to go into the form's general declarations part. You can either remove the code to move to the end of the document and add a line (Selection.EndKey Unit:=wdStory
Selection.TypeParagraph
) and close the document without saving
OR - you can keep those 2 lines and...
Thanks - using keypreview and keypress works for the keyboard events - but does not work for the mouse. How can I capture the mouse click events for the entire application?
That piece of code does work. But the problem is that I am using a third party control which brings up the windows print dialog. But even if I set the paper orientation before calling the function that displays the dialog, the dialog always shows the default printer orientation and not the...
I have an MDI application with a status bar that shows a timed error message (using the timer control).
I want the error message to be shown till a mouse/keyboard event or till the timer event whichever is longer.
Since the user can click on a child window - the MDI form does not always get the...
Hi,
I need to print from VB and I want to set the paper orientation to Landscape. I cannot use the windows print dialog control. So to set the orientation I use the code
Printer.Orientation = vbPRORLandscape
But it still prints in potrait which is the default setting for the printer.
I want to remove all the "/" from a string. I write the following code
CString str = "c:/home/dir/test1.txt";
int iPos = str.Find("/", 0);
while (iPos > 0)
{
str = str.Mid(iPos + 1);
iPos = str.Find("/", 0);
}
This works fine as long as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.