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...
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...
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
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...
The path variable (PATH)in the autoexec.bat (Win 98) or enviroment tab (NT) lists the folders to search in for an executable.
The registry entry on the other hand according to MSDN are -
'Whenever an application creates an instance of a COM component, the registry is consulted to resolve...
I read this tip about using a DBCombo to have a hidden field (as a bound column) and another as the ListField. But the DBCombo works only with the Data Control not the ADO Data Control. I hunted for but could not find a combo control that bound to ADO DataControl. Any suggestions?
I am using a Sheridan ultragrid and trying to bind its datasource to an ADO recordset. I use the following code -
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
conn.Open "provider=sqloledb;server=ssarup-desk1;uid=shabnam;"
rs.Open "select * from...
Hi,
I need to use an editable grid in my application. As far as I know MSFlexGrid is uneditable. I know that there is a control called Sheridan grid but I don't know the name of the company that produces it. Any ideas - any other grid that I can use?
Guess I didn't explain my query properly. The Crystal Report is called from VB and is based on a SQL Server stored procedure that has a datetime input parameter. In Crystal Report 5 when we pass the date from the front-end (VB) or even in Crystal Report if we say database - stored procedure...
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.