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 bkrike 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 d00ape

  1. d00ape

    Write to the Visual Studio Output window

    How do I write to the Visual Studio Output window? Can I read user input from there like I can in Eclipse?
  2. d00ape

    Playing my animated gif in a Form

    How do I play animated gif or an avi clip in a Form?
  3. d00ape

    Console.WriteLine(myFloat.ToString()) with two decimals?

    I want to print a float with value 1.98765 with only 2 decimals: (1.99 in this case). How?
  4. d00ape

    Call a native dll from my managed dll

    I’m about to call a function in a native windows dll from my managed C# dll project. I want the function to return some kind of string (char*) so I get it as a System.String in my mandaged dll. How can I do that? I’ve tried to add CLR support on my native dll but for different reasons it can’t...
  5. d00ape

    Invoke a controls property

    I’m struggling with a thread that should update a TreeView. I’ve started to use the Control.Invoke method when for e.g. adding nodes and so on. I now wonder how I “Invoke” a property. (I got the “Cross-thread exeption…” when I try to set the TreeView.ImageIndex property)
  6. d00ape

    Force my WinForm application to show…

    I’ve created a Spash-form that shows and hides while my main form initializes. When I closes the splash-form my main window is paced behind other applications in Windows. How can I force my application form to be the “on top application”? I’ve tried all these functions: this.Activate()...
  7. d00ape

    MPD-file to xml-file (MS Project 2003)

    I have a program that reads Microsoft Project 2003 XML-files Now I'm in need to read in mpd-files as well. Any tip on how I can do that? A simple tool/service for converiting mpd to xml would be great!
  8. d00ape

    Variant in C# ?

    Got the solution!! Object obj = System.Reflection.Missing.Value; temp.Add(known, ref obj); ...easy as that!
  9. d00ape

    Variant in C# ?

    object obj = new object(); temp.Add(known, ref (object)(new Nullable<object>(obj))); ---------------------------------------------------- Error 1 The type 'object' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method...
  10. d00ape

    Variant in C# ?

    hmmmm... never usen the Nullable type. the compiler don't like casting the: ref object with: (object)(new Nullable<object>(obj))
  11. d00ape

    Variant in C# ?

    I’m coding in C# and I am working with a COM object that I earlier in C++ made this call: COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR); hresult = pTemp->Add(knownObject, &varBeforeEnd ); How do I make the call in C#? The IDE in VisualStudio say that the Add(…) function should...
  12. d00ape

    Creating an options dialog for my WinApp.

    Perfect! You made me think in the right direction!
  13. d00ape

    Creating an options dialog for my WinApp.

    I’m about to create an options dialog that will be opened from my windows application main Forms menu. I have many different “modules” in the application which each of them need to have an own options dialog. For sure this is a common situation. I need some kind of “pattern” to create an...
  14. d00ape

    Creating a typed dataset of MS Project 2003 XML files

    Where can I find the typed dataset for MS Project XML files? Iv’e tried to create my own but when trying to read an MS Project XML-file like this: MSProjectDataSet dataset = new MSProjectDataSet(); dataset.ReadXML(“savedXMLfileFromProject.xml”); I get different exceptions. All tips in this...
  15. d00ape

    The XML Schema for MS Project 2003?

    Where can I find the XSD schema for how Microsoft Project 2003 XML-files are formatted? I’ve searched on MSDN but no result…

Part and Inventory Search

Back
Top