Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hide database file from user Pin
Ashfield18-Dec-09 8:53
Ashfield18-Dec-09 8:53 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV18-Dec-09 17:50
NarendraSinghJTV18-Dec-09 17:50 
GeneralRe: Hide database file from user Pin
Ashfield18-Dec-09 20:25
Ashfield18-Dec-09 20:25 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV19-Dec-09 0:23
NarendraSinghJTV19-Dec-09 0:23 
QuestionHow to Find the documentation oF MSPastry Library in MSDN? Pin
ksaw12318-Dec-09 0:24
ksaw12318-Dec-09 0:24 
AnswerRe: How to Find the documentation oF MSPastry Library in MSDN? Pin
Dave Kreskowiak18-Dec-09 4:10
mveDave Kreskowiak18-Dec-09 4:10 
QuestionThreading Question Pin
Harvey Saayman17-Dec-09 23:11
Harvey Saayman17-Dec-09 23:11 
AnswerRe: Threading Question Pin
#realJSOP17-Dec-09 23:40
mve#realJSOP17-Dec-09 23:40 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 0:24
Harvey Saayman18-Dec-09 0:24 
AnswerRe: Threading Question Pin
Pete O'Hanlon18-Dec-09 0:14
mvePete O'Hanlon18-Dec-09 0:14 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 2:32
Harvey Saayman18-Dec-09 2:32 
GeneralRe: Threading Question Pin
Luc Pattyn18-Dec-09 5:23
sitebuilderLuc Pattyn18-Dec-09 5:23 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 5:56
Harvey Saayman18-Dec-09 5:56 
GeneralRe: Threading Question Pin
Luc Pattyn18-Dec-09 6:19
sitebuilderLuc Pattyn18-Dec-09 6:19 
GeneralRe: Threading Question Pin
Harvey Saayman18-Dec-09 7:49
Harvey Saayman18-Dec-09 7:49 
Question[Message Deleted] Pin
thungphan17-Dec-09 20:53
thungphan17-Dec-09 20:53 
AnswerMessage Closed Pin
17-Dec-09 21:25
stancrm17-Dec-09 21:25 
GeneralRe: convert int to byte array using shift operator Pin
thungphan17-Dec-09 21:42
thungphan17-Dec-09 21:42 
AnswerRe: convert int to byte array using shift operator Pin
harold aptroot17-Dec-09 21:52
harold aptroot17-Dec-09 21:52 
QuestionRuntime ToFront toBack? Pin
dennis_max2717-Dec-09 20:29
dennis_max2717-Dec-09 20:29 
AnswerRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 20:37
Saksida Bojan17-Dec-09 20:37 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 20:47
dennis_max2717-Dec-09 20:47 
GeneralRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 20:50
Saksida Bojan17-Dec-09 20:50 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 20:54
dennis_max2717-Dec-09 20:54 
II've used this code now all is working BUT!:

Here is is coming:
If i mouseenter and mouseleave it now it is changing the image and if i disable the Bring toFront it is working?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KVzoekscherm
{
    public partial class runtimeobject : Form
    {
        Button button1;
        Button button2;
        Bitmap image1;
        PictureBox pictureBox1;

        public runtimeobject()
        {
            InitializeComponent();
        }

        //Deze functie roept hij op wanneer hij over de (grote) picturebox gaat
        private void pbMaak_Click(object sender, EventArgs e)
        {
            pictureBox1 = new PictureBox();
            pictureBox1.Name = "pictureBox1";
            pictureBox1.BringToFront();
            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox1.BorderStyle = BorderStyle.None;
            pictureBox1.ClientSize = new Size(15, 15);
            pictureBox1.Location = new System.Drawing.Point(50, 50);
            pictureBox1.Cursor = Cursors.Hand;
            pictureBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            pictureBox1.TabIndex = 28;

            image1 = new Bitmap(Properties.Resources.edit_gray);
            pictureBox1.Image = (Image)image1;

            pictureBox1.Click += new EventHandler(editclick);
            pictureBox1.MouseLeave += new EventHandler(editleave);
            pictureBox1.MouseEnter += new EventHandler(editenter);
            this.Controls.Add(pictureBox1);
        }

        private void editenter(object sender, EventArgs e)
        {
            image1 = new Bitmap(Properties.Resources.edit_color);
            pictureBox1.Image = (Image)image1;
        }

        private void editleave(object sender, EventArgs e)
        {
            image1 = new Bitmap(Properties.Resources.edit_gray);
            pictureBox1.Image = (Image)image1;
        }

        private void editclick(object sender, EventArgs e)
        {
            MessageBox.Show("Clicked");
        }

        private void runtimeobject_Load(object sender, EventArgs e)
        {

        }

        private void pbMaak_Click_1(object sender, EventArgs e)
        {

        }
    }
}

GeneralRe: Runtime ToFront toBack? Pin
Saksida Bojan17-Dec-09 21:00
Saksida Bojan17-Dec-09 21:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.