Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by shabnam

  1. shabnam

    Append data to an xml file

    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...
  2. shabnam

    Convert ctime to DateTime in C#

    The timezone was the problem - thanks a ton. It is working fine now.
  3. shabnam

    Convert ctime to DateTime in C#

    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?
  4. shabnam

    Convert ctime to DateTime in C#

    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...
  5. shabnam

    Listing ALL forms in an application

    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 = &quot;form1&quot; load s I have to say load form1 Is there an API I can use and pass it the...
  6. shabnam

    Listing ALL forms in an application

    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
  7. shabnam

    Closing Word

    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
  8. shabnam

    Mouse/keyboard event

    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
  9. shabnam

    Closing Word

    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...
  10. shabnam

    Mouse/keyboard event

    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?
  11. shabnam

    Setting the paper orientation for the default printer

    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...
  12. shabnam

    Mouse/keyboard event

    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...
  13. shabnam

    Setting the paper orientation for the default printer

    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.
  14. shabnam

    Good VB.Net book

    Can anyone recommend me a good book for VB.Net? I have worked on VB6 but .NET is so different. Need a head start :)
  15. shabnam

    CString::Find

    I want to remove all the &quot;/&quot; from a string. I write the following code CString str = &quot;c:/home/dir/test1.txt&quot;; int iPos = str.Find(&quot;/&quot;, 0); while (iPos > 0) { str = str.Mid(iPos + 1); iPos = str.Find(&quot;/&quot;, 0); } This works fine as long as...

Part and Inventory Search

Back
Top