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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. flnhst

    [C#] Command like control

    Is there a control that works like cmd.exe or like PuTTY? With the possibility to have prompts? With the looks of PuTTY? I have looked around and i have found some, but some don't do all i want. And i have no idea on how to create a prompt in a RichTextBox or TextBox. With prompts i mean that...
  2. flnhst

    Type conversion

    CItemBox doesnt contain any methods, only some public variables of string and int types. Is there anyway to cast this way?
  3. flnhst

    Type conversion

    I have the class CItem, with a derived class called CItemBox. I can easily cast an CItem to CItemBox with this: ((CItemBox)InstanceOfCItem).MethodOfCItemBox(); but how can i cast when i have a Type class instance of CItemBox? This doesnt work...
  4. flnhst

    Array slicing

    CopyTo copies the array, but instead of starting at the index of the array at which i want to copy, it places the whole array in the other array starting at specified indexing, no splitting or slicing happens. Or am i using it wrong?
  5. flnhst

    Array slicing

    Lets say i have this array of strings: "foo", "bar", "foo2", "bar2" How can i 'split' the array, that i have only the items after "bar"? So i would get this: "foo2", "bar2" How is this done? Has C# any form of array slicing (Like in Python)?
  6. flnhst

    C# XML Problem

    public void WriteToFile(CHardwareList HardwareList, FileMode FMode) { Stream stream = File.Open(FileName, FMode); XmlSerializer bformatter = new XmlSerializer(typeof(CHardwareList)); bformatter.Serialize(stream, HardwareList); stream.Close(); } This is...
  7. flnhst

    C# XML Problem

    What i mean when i serialize a instance of the class CHardwareList (With some data, etc), There is nothing in the XML file but those lines.
  8. flnhst

    C# XML Problem

    I have these classes: public class CHardware { [XmlElement("HardwareID")] public int HardwareID; [XmlElement("HardwareName")] public string HardwareName; [XmlElement("HardwareType")] public string HardwareType...
  9. flnhst

    Give data to a thread?

    The name of the constructor was wrong, but it works perfect! Thank you!
  10. flnhst

    Give data to a thread?

    How do i pass a variable to (not yet) running thread? And how do i access the variable inside the thread?
  11. flnhst

    Dynamicly load DLL.

    Thanks! It worked. Here is the code that i used: static void Main(string[] args) { Assembly T = Assembly.LoadFrom("CSDLL.dll"); foreach ( Type A in T.GetTypes() ) { if (A.IsClass && A.Name == "CSDLL") { Console.WriteLine("Found. Invoking Function."); object[]...
  12. flnhst

    Dynamicly load DLL.

    how do i dynamicly load a user input given DLL in C#? The DLL is also written in C# and .NET. I have googled around, but i couldnt find anything.

Part and Inventory Search

Back
Top