Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Runtime ToFront toBack? Pin
dennis_max2717-Dec-09 21:00
dennis_max2717-Dec-09 21:00 
AnswerRe: Runtime ToFront toBack? Pin
dennis_max273-Jan-10 22:37
dennis_max273-Jan-10 22:37 
Questionparsing javascript in realtime Pin
Haim Nachum17-Dec-09 19:39
Haim Nachum17-Dec-09 19:39 
QuestionDeploying Windows Application(C#) with SQL Server(2005) Pin
samrat.net17-Dec-09 19:18
samrat.net17-Dec-09 19:18 
AnswerRe: Deploying Windows Application(C#) with SQL Server(2005) Pin
Mycroft Holmes17-Dec-09 23:26
professionalMycroft Holmes17-Dec-09 23:26 
AnswerRe: Deploying Windows Application(C#) with SQL Server(2005) Pin
PIEBALDconsult18-Dec-09 3:55
mvePIEBALDconsult18-Dec-09 3:55 
QuestionTo search the occurrence of a word in a pdf file. Pin
Pavan Navali17-Dec-09 19:02
Pavan Navali17-Dec-09 19:02 
AnswerRe: To search the occurrence of a word in a pdf file. Pin
Saksida Bojan17-Dec-09 20:19
Saksida Bojan17-Dec-09 20:19 
QuestionConfigurable connection string in SSRS Pin
siddisagar17-Dec-09 17:32
siddisagar17-Dec-09 17:32 
AnswerRe: Configurable connection string in SSRS Pin
Mycroft Holmes17-Dec-09 23:30
professionalMycroft Holmes17-Dec-09 23:30 
QuestionCustimize Ribbon option for Windows 7 Ribbon in C# Pin
o m n i17-Dec-09 11:23
o m n i17-Dec-09 11:23 
QuestionHow to resize external application's window Pin
Sailing_Nut17-Dec-09 11:18
Sailing_Nut17-Dec-09 11:18 
AnswerRe: How to resize external application's window Pin
PIEBALDconsult17-Dec-09 14:00
mvePIEBALDconsult17-Dec-09 14:00 
AnswerRe: How to resize external application's window [modified] Pin
Luc Pattyn17-Dec-09 14:24
sitebuilderLuc Pattyn17-Dec-09 14:24 
Newsتابع تقویم شمسی و قمری و میلادی برای فارسی زبانان جهان Pin
Mohsen Sabzaliyan17-Dec-09 10:30
Mohsen Sabzaliyan17-Dec-09 10:30 
GeneralRe: تابع تقویم شمسی و قمری و میلادی برای فارسی زبانان جهان Pin
harold aptroot17-Dec-09 10:35
harold aptroot17-Dec-09 10:35 

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.