Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Carsten Zeumer

@Carsten Zeumer
About
Posts
53
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • English language question - [MODIFIED]
    C Carsten Zeumer

    Correct me if i am wrong, but i remember that the pronounciation of route differs slightlly in meaning. The "root" is an itinerary. The "rouwt" has an military touch - meaning somthing like a line of approach. So from the historical roots of the arpa-net, the box that handles IP traffic is mostly pronounced "rouwter". But i prefer "rooter", due to the more pacifistic sound of the word :) But probably i am completely wrong anyway :confused: /cadi 24 hours is not enough

    The Lounge question help tutorial

  • What is the RegEx Pattern for filtering File Extensions?
    C Carsten Zeumer

    there is one other solution using a non capturing group: (?<=.+\.)[^.]+$ this will have only the extension in the resulting match. /cadi 24 hours is not enough

    C# regex question

  • What is the RegEx Pattern for filtering File Extensions?
    C Carsten Zeumer

    sorry, the braces got lost... pattern= @"(?.+)\.(?[^.]+)$"; (i should use preview before posting...) /cadi 24 hours is not enough

    C# regex question

  • What is the RegEx Pattern for filtering File Extensions?
    C Carsten Zeumer

    hi redfish34, try something like this: pattern= @"(?.+)\.(?[^.]+)$"; then you can access the extension by matchList[0].Groups["extension"].Value /cadi 24 hours is not enough

    C# regex question

  • regex preformance issue
    C Carsten Zeumer

    Hi, this regex should do the match: ([^,]*,){2}1\.0\.0,([^,]*,){7} /cadi 24 hours is not enough

    C# algorithms regex help tutorial question

  • What kind of Control is that?
    C Carsten Zeumer

    Looks like a topic map displayed using a spring-layout. I do not know working implementation in .NET for this. Check Hypergraph and Touchgraph for Java... If you find one - please notify me ;) /cadi 24 hours is not enough

    C# csharp help question

  • Differences came from debug and release
    C Carsten Zeumer

    Additionally to the debug information no optimizations are done. Some optimizations would make it hard to debug your code (i.E. inlining, removal of unused variables, loop-unwinding etc.). In release mode those optimizations make your program run faster (not always notable, depends on your design and what your program does.) /cadi 24 hours is not enough

    C# debugging question announcement

  • Simple Question
    C Carsten Zeumer

    You might create a proxy application that does not use .NET. This first checks if the .NET runtimes are installed and the decides whether to display an error or to start the .NET applocation. /cadi 24 hours is not enough

    C# question csharp

  • Outlook express add in
    C Carsten Zeumer

    As far is i know there is no extension API for Outlook Express. The only way i could think of doing this is to have a Proxy SMTP-Server handling all outgoing mails. /cadi 24 hours is not enough

    C# csharp visual-studio tools help

  • Reading &#229;, &#228;, &#246; from file with StreamReader
    C Carsten Zeumer

    Hi, If the file was created on a windows system it is likely that it uses windows encoding. Try the windows-1252 encoding. This works for german pretty well... /cadi 24 hours is not enough

    C# question

  • ArrayList
    C Carsten Zeumer

    Wouldn't it be easier to check for duplicates on insertion? You can do so by using the Contains method of the ArrayList. /cadi 24 hours is not enough

    C# question

  • Send file to Recycle Bin instead of deleting permanently
    C Carsten Zeumer

    normally it is located under C:\RECYCLER\ + Some string that looks like an SID. But i think it is not recomendet to move files directly into this folder since you would override the maximum size of the recycler. This could lead to conditions where the recycler grows until it uses all the space of the HD. But since the recylcer is only available on windows you could use the shell functions. you app would work only on windows anyway. /cadi 24 hours is not enough

    C# csharp tutorial question

  • Send file to Recycle Bin instead of deleting permanently
    C Carsten Zeumer

    You need the Windows Shell API for this. Use the SHFileOperation. Check out this[^] article... /cadi 24 hours is not enough

    C# csharp tutorial question

  • @-quoted strings
    C Carsten Zeumer

    Er... it IS unquoted. It is only displayed as verbatim string (otherwise it would contain a CR that wóuld not look so nice in the IDE's watch window). Do not use the debugger but try a Console.Out.WriteLine(format); to verify my claim. /cadi 24 hours is not enough

    C# csharp debugging xml help tutorial

  • C# Sql INSERT statment
    C Carsten Zeumer

    Somthing like System.Console.Out.WriteLine(sqlString); . Have yout tried to paste the result in any DB-Mamangent tool (if you use SQL Server try the Query Analyzer)? You'll probably get a more detailed error description.... /cadi 24 hours is not enough

    C# help database csharp

  • C# Sql INSERT statment
    C Carsten Zeumer

    what does the sqlString look like if you dump it to the console? Since you do not quote you parameters it is possible that they contain quotes or commas... /cadi 24 hours is not enough

    C# help database csharp

  • Please Help! Function on Separate Form
    C Carsten Zeumer

    Ok... so form1 is not the owner of form2 (ok, if it would be like this the Owner property would have been ok...) Hmm... this leeds me to a second aproach. If both forms have the same owner then you could search for form1 using something like this: this.FindForm().OwnedForms If there is always only ONE instance of form1 you could try somthing like this:

    public class Form1 : System.Windows.Form
    {
       private static Form1 m_GlobalInstance;
       public Form1()
       { 
         // set global instance
         m_GlobalInstance = this;
       }
     
      protected override void OnClosed(EventArgs e)
       {
         // invalidate global instance
          m_GlobalInstance = null;
          base.OnClosed (e);
      }
    
      // ....
       
       // property to access global instance
       public static Form1 GlobalInstance
       {
         return m_GlobalInstance;
       }
    
    }
    
    public class Form2 : System.Windows.Form
    {
      // ....
      public void SomeFunctionUsingComponentsOnForm1()  
      {
          if (Form1.GlobalInstance == null)
             throw new ArgumentException("Form1 is not yet created.");
          Form1.GlobalInstance.components();  
       }
    }
    

    /cadi 24 hours is not enough

    C# help

  • Converting Code
    C Carsten Zeumer

    If you are realy into Copy&Past you can use Lutz Röders Reflector. This tool is able to read binary Assemblies and decompile them into IL. This IL can then be converted to C#, VB or Delphi code. But you can only convert method by method and all comments will be lost. For small classes this should work. For bigger projects it might be not the right choice. /cadi 24 hours is not enough

    C# csharp c++ help question

  • How to host vc+ control (.lib) in c# winform
    C Carsten Zeumer

    The only way i know is to create an ActiveX wrapper class in C++. You could then use this control via COMInterop. But since you said you are no C++ guy i would suggest you look for some GridControl implemented in .NET. Search CodeProject for GridControl, there are some on this site. /cadi 24 hours is not enough

    C# csharp help tutorial c++ css

  • Please Help! Function on Separate Form
    C Carsten Zeumer

    You need to pass somehow form1 to form2. Create a property of type From1 in Form2. Then, after creating as Form2 assign Form1 to form2.Form1. (I hope this sentence is understandable ;) )public class Form2 : System.Windows.Forms { // ... private From1 m_Form1 = null; public Form1 Form1 { get {return this.m_Form1;} set {this.m_Form1 = value;} } public void SomeFunctionUsingComponentsOnForm1() { if (this.m_Form1 == null) throw new ArgumentException("Form1 is not assigned."); this.m_Form1.components(); } } public class Form1 : System.Windows.Forms { // .... public void ShowForm2() { Form2 form2 = new Form2(); form2.Form1 = this; form2.Show(); } }
    /cadi 24 hours is not enough

    C# help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups