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
M

msrezapro

@msrezapro
About
Posts
5
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • database size not changed
    M msrezapro

    hi.i try delete all data in my database but database size not change.why? please help me to resize my database.

    C# database help question

  • can not copy database files
    M msrezapro

    hi.i want copy database files.when i do detach database throw exeption.i search web and find things.but i cant drive result. please help me.thanks.

    string ConnStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\mydb.mdf"
    +";Integrated Security=True;User Instance=True";
    SqlConnection mycon = new SqlConnection(ConnStr);
    SqlCommand mycom = new SqlCommand("sp_detach_db @d=db_name()", mycon);
    mycon.Open();
    mycom.ExecuteScalar();
    mycon.Close();

    C# database sharepoint security help

  • Message="A generic error occurred in GDI+." Source="System.Drawing" ErrorCode=-2147467259
    M msrezapro

    hi.tanks for answering. but this again throw exeption.please help me.

    .NET (Core and Framework) graphics help winforms

  • Message="A generic error occurred in GDI+." Source="System.Drawing" ErrorCode=-2147467259
    M msrezapro

    hi.please note to my code and help me.source image format is jpeg. below is my code.thanks.

    private void Saveimg(Image image)
    {
    MemoryStream stream = new MemoryStream();
    image.Save(stream,System.Drawing.Imaging.ImageFormat.Jpeg);//throw exeption

    byte[]imgdata= new byte[stream.Length];
    imgdata= stream.ToArray();
    string Filename = "c:\\" + Convert.ToString(DateTime.Now.ToFileTime()) +".jpg";

    FileStream fs = new FileStream(Filename, FileMode.CreateNew, FileAccess.Write);
    fs.Write(imgdata, 0, imgdata.Length);
    fs.Close();

    }

    .NET (Core and Framework) graphics help winforms

  • display picturebox
    M msrezapro

    Hi. i want to display an gif image in picturebox cuncurrent with for().below is my code,but image dont load while for() is running. please help me.thanks.

    private void button1_Click(object sender, EventArgs e)
    {
    PictureBox pic = new PictureBox();
    pic.Image = Image.FromFile("c:\\1.gif");
    this.Controls.Add(pic);

            for (int i = 0; i < int.MaxValue; i++)
            {
                //my work
            }
            pic.Dispose();
        }
    
    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