CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: torrud

Page 1 of 38 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    1
    Views
    5,518

    Problem with FtpWebRequest and SSL

    Hi,

    I have an annoying problem with a FTP upload. I want to upload a few files to a FTP Server. This FTP Server is an IIS FTP 7.5 server with required SSL and basic authentication.
    I wrote the...
  2. Replies
    1
    Views
    1,367

    Autocomplete in a Combobox

    Hi guys,

    today I tried to integrate an autocomplete into my combobox but it does not work. Seems I am forgetting something. Maybe anyone can help me.

    I have a collection of items and these...
  3. Re: Mails sent with Net.Mail ends up going in junk folder

    They verify the domain from where the emails comes not the whole email addresse. If your domain is registered as serious email provider you won't have any problem. Otherwise you have one. And I think...
  4. Thread: lock() question

    by torrud
    Replies
    1
    Views
    1,071

    Re: lock() question

    Your question will be answered here.

    And creating a singleton can be made easier without using lock.



    public sealed class Singleton
    {
    private static readonly Singleton _instance = new...
  5. Replies
    6
    Views
    1,347

    Re: Zip Compression in C#

    This question was asked and answered many times. Please use the search function.
  6. Replies
    5
    Views
    1,311

    Re: List of List

    Try this:


    public class MyList: List<UInt64>
    {}


    List<MyList> myLists = new List<MyList>();
  7. Replies
    14
    Views
    4,459

    Re: convert *.cs file to object

    I believe I understood the question but why you want to do it? Is there any good reason to parse a .cs file, compile it at runtime and use the generated IL code? For me it sounds you are try to make...
  8. Replies
    6
    Views
    1,110

    Re: Reduce the size of database

    I use the ziplib library for compressing data. Have a look at it here.
  9. Re: Fast way to convert string array to double array...

    Maybe the Convert class works a little bit faster.


    ...
    ...
    ...
    double[] arrDouble = new double[arrString.Length];
    for(int i=0; i<arrString.Length; i++)
    {
    arrDouble[i] =...
  10. Thread: Why get/set?

    by torrud
    Replies
    15
    Views
    3,102

    Re: Why get/set?

    VS 2005 give you the possibility to encapsulate fields in properties. To do this write your field declaration and open the context menu on the field name. Then choose Refactore->Encapsulate Field...
  11. Replies
    3
    Views
    1,318

    Re: Check on NULL with IsDbNull method

    Can you repeat your questions in english?
  12. Replies
    1
    Views
    881

    Execute a shell script on a linux server

    Hi,

    at the moment I have written a method which put a file on a linux server. Is there any possibility to start a shell script on that server from a c# application?
  13. Replies
    6
    Views
    1,980

    Re: Is it possible to create keylogger?

    That is a different behavior and not called a keylogger. It is really simple to catch a keypressed event inside of an application and to handle it. It is a serious procedure.

    A keylogger means a...
  14. Replies
    2
    Views
    1,177

    Re: Auto update of program (Downloading from web)

    I think the easiest way is to build a Click Once application. Here is a link to the related documentation. You will find there also a chapter about update strategies.
  15. Replies
    4
    Views
    1,068

    Re: Xml serialization

    @cilu: Your hint did not work too.

    @TheCPUWizard: I know that my design is not very well. But I did not found any good approach for my problem. I will try to explain my problem. Maybe you can show...
  16. Replies
    4
    Views
    1,068

    Xml serialization

    Hi,

    I am trying to hind a public property of a base class from the serialization of the derived class. But it does not work. Where is my mistake?



    [XmlRoot("Components")
    public class...
  17. Replies
    7
    Views
    10,536

    Re: Stream Reader/Writer Encoding

    Hm, during the instantiation of the BinaryWriter you use always UTF8 encoding. Works this correct if the read file is encoded ISO 8859-12 for instance?
  18. Replies
    7
    Views
    10,536

    Re: Stream Reader/Writer Encoding

    Well the problem is that you have to know which kind of encoding the other side of your communication use. If you use the HTTP protocol you can hope that the header lines are correct. Then you will...
  19. Replies
    3
    Views
    929

    Re: Newbie - Tabpage

    Yes it it possible. You have to catch the double click event. Then you have to show a textbox on the position of the TabPage Title. After pressing enter you hide the textbox and set the text from the...
  20. Replies
    8
    Views
    2,543

    Re: Start Position

    CenterScreen works for me in all applications I ever developed. Maybe you set not to CenterScreen but to CenterParent? That does not work. More I can not say without knowing your code.
  21. Replies
    6
    Views
    1,905

    Re: Dictionary Values copy

    C# works in most cases only with references. For getting duplicates you should implement ICloneable in your business class and call the clone() method for getting a second instance of the object....
  22. Replies
    6
    Views
    4,480

    Re: XML encoding issue

    Yes the Encoding property is read-only. Thats the reason because I am using the XmlWriter.
  23. Replies
    6
    Views
    4,480

    Re: XML encoding issue

    Because the StringWriter class is derived from the TextWriter class the StringWriter have to implement the encoding property. And you created a full xml document, so the header should contains the...
  24. Replies
    6
    Views
    4,480

    Re: XML encoding issue

    1. The documentation of the StringWriter.Encoding gives you the answer for the changed encoding.


    2. You can solve it by using a XmlWriter.


    // Save to the XML file
    ...
  25. Replies
    15
    Views
    1,900

    Re: basic questions about enum

    At first, enums are very useful for the developer. It is easier to say Days.Monday than saying 1 because some developer starting the week on Monday with 1 and another on Sunday with 1. So words are...
Results 1 to 25 of 937
Page 1 of 38 1 2 3 4





Click Here to Expand Forum to Full Width

Featured