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
R

robbrad

@robbrad
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hi! I need help for you
    R robbrad

    hyps4u wrote:

    I belive here people interact each other with a purpose, not to spam somebody

    They aren't here to spam you, but spam bots will pick up the email address you posted. Possibly writing 'at' instead of the symbol will help. Just pointing that out. I agree with everyone else regarding the question.

    C# sysadmin csharp com tools help

  • How to add printing feature for Calendar list?
    R robbrad

    Try this![^]

    SharePoint tutorial question

  • Sync SharePoint calendar with Outlook 2007
    R robbrad

    Hi, What edition of SharePoint do you have?

    modified on Friday, March 5, 2010 11:15 AM

    SharePoint sharepoint

  • Error uploading file
    R robbrad

    Is there a specific error code? Or just a screen saying Error. Screen shot?

    SharePoint help design question

  • Encrypting & decrypta txt file
    R robbrad

    Never mind, figured it out. Its amazing what a bit of sleep can do. Thanks

    C# csharp help

  • Encrypting & decrypta txt file
    R robbrad

    Thanks for your help so far. Just 1 more question. Ive managed to succesfully encrypt the data that is inputted into textbox1, but decoding it fails.

    public Form1()
    {
    InitializeComponent();
    Decode();
    }
    private void button2_Click(object sender, EventArgs e)

        {
            Decode();
    
            StreamReader rb = new StreamReader("C:\\\\file.txt");
            MessageBox.Show(rb.ReadToEnd());
            rb.Close();
            
        }
            public string Decode()
        {
            FileStream fs = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\\\file.txt", FileMode.Open, FileAccess.ReadWrite);
            byte\[\] array = new byte\[400\];
            GZipStream gstream = new GZipStream(fs, CompressionMode.Decompress);
            gstream.Read(array, 0, array.Length);
            gstream.Close();
            string Mytext = Encoding.UTF8.GetString(array);
            return Mytext;
        }
    

    It doesnt return any errors, it just clears the file. Any help would be appreciated

    C# csharp help

  • Encrypting & decrypta txt file
    R robbrad

    I get the following error when my code is run: "The given path's format is not supported." The error is in this line:

    FileStream fs = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "MYFILE.txt", FileMode.Create, FileAccess.ReadWrite);

    It cant be a problem with my txt file i dont think, because i have used them before in my programs and they have worked fine. Any help would be appreciated. Extra information: - Using VS 2008 - .NET Framework 3.5 SP1

    C# csharp help

  • How can i make shortcut keys by using code
    R robbrad

    http://www.devasp.net/net/articles/display/728.html[^] Edit: This shows you how to map keys to certain buttons (Not tested).

    modified on Monday, December 21, 2009 11:21 AM

    C# help question

  • Encrypting & decrypta txt file
    R robbrad

    Hi, How could you make this happen on the click of a button? I've tried adding it to the event but the Public void Encode(string text) line obviously stops this happening. edit: Some of my terminology may not be correct, so if your unsure, just ask.

    modified on Monday, December 21, 2009 10:41 AM

    C# csharp 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