Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
QuestionConvert Latitude Longitude To X Y Pixel (C#) Pin
zerozaaa6-Jun-13 18:26
zerozaaa6-Jun-13 18:26 
AnswerRe: Convert Latitude Longitude To X Y Pixel (C#) Pin
Eddy Vluggen6-Jun-13 23:54
professionalEddy Vluggen6-Jun-13 23:54 
QuestionInternet Security Pin
MAW306-Jun-13 13:25
MAW306-Jun-13 13:25 
AnswerRe: Internet Security Pin
Dave Kreskowiak6-Jun-13 16:21
mveDave Kreskowiak6-Jun-13 16:21 
AnswerRe: Internet Security Pin
Eddy Vluggen6-Jun-13 23:46
professionalEddy Vluggen6-Jun-13 23:46 
AnswerRe: Internet Security Pin
Abhinav S7-Jun-13 19:06
Abhinav S7-Jun-13 19:06 
QuestionLogitech G27 Steering Wheel input in C# Pin
razvan_grebla6-Jun-13 10:43
razvan_grebla6-Jun-13 10:43 
QuestionWebcam Application Pin
Bishwajit Nepali6-Jun-13 6:23
Bishwajit Nepali6-Jun-13 6:23 
I want to draw a rectangle inside webcam application and I have built the camera where should I write the code to insert ROI please help me.
My code:
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace Camera_app
{
    public partial class Form1 : Form
    {
        Camera c;
        List<Bitmap> imag = new List<Bitmap>();
        public Form1()
        {
            InitializeComponent();
            c = new Camera(cbox1);

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            c.Connect(cbox1, pbox1);

        }

        private void button3_Click(object sender, EventArgs e)
        {
            c.Disconnect();
        }

        private void button2_Click(object sender, EventArgs e)
        {

            c.Capture(pbox2);
        }

        private void pbox2_Click(object sender, EventArgs e)
        {

        }

        private void panel3_Paint(object sender, PaintEventArgs e)
        {

        }

        private void panel3_Paint_1(object sender, PaintEventArgs e)
        {

        }

        private void pbox3_Click(object sender, EventArgs e)
        {

        }

        private void panel5_Paint(object sender, PaintEventArgs e)
        {

        }
    }
}

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Camera_app
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

AnswerRe: Webcam Application Pin
Dave Kreskowiak6-Jun-13 7:43
mveDave Kreskowiak6-Jun-13 7:43 
GeneralRe: Webcam Application Pin
Bishwajit Nepali6-Jun-13 8:54
Bishwajit Nepali6-Jun-13 8:54 
GeneralRe: Webcam Application Pin
Dave Kreskowiak6-Jun-13 10:08
mveDave Kreskowiak6-Jun-13 10:08 
QuestionCalling RPG program or Query using odbc connection to AS400 Pin
Kiko.176-Jun-13 1:42
professionalKiko.176-Jun-13 1:42 
AnswerRe: Calling RPG program or Query using odbc connection to AS400 Pin
Keith Barrow6-Jun-13 2:36
professionalKeith Barrow6-Jun-13 2:36 
GeneralRe: Calling RPG program or Query using odbc connection to AS400 Pin
Kiko.176-Jun-13 16:32
professionalKiko.176-Jun-13 16:32 
QuestionXML Upload Pin
Member 97011655-Jun-13 23:59
Member 97011655-Jun-13 23:59 
AnswerRe: XML Upload Pin
Eddy Vluggen6-Jun-13 0:38
professionalEddy Vluggen6-Jun-13 0:38 
GeneralRe: XML Upload Pin
Member 97011656-Jun-13 0:43
Member 97011656-Jun-13 0:43 
GeneralRe: XML Upload Pin
Dave Kreskowiak6-Jun-13 2:10
mveDave Kreskowiak6-Jun-13 2:10 
GeneralRe: XML Upload Pin
OriginalGriff6-Jun-13 8:12
mveOriginalGriff6-Jun-13 8:12 
GeneralMy vote of 1 Pin
Keith Barrow6-Jun-13 2:48
professionalKeith Barrow6-Jun-13 2:48 
QuestionExcel Spreadsheet formatting via OfficeOpenXml Pin
matt_1ca5-Jun-13 22:49
matt_1ca5-Jun-13 22:49 
AnswerRe: Excel Spreadsheet formatting via OfficeOpenXml Pin
Richard MacCutchan5-Jun-13 23:32
mveRichard MacCutchan5-Jun-13 23:32 
GeneralRe: Excel Spreadsheet formatting via OfficeOpenXml Pin
matt_1ca8-Jun-13 22:32
matt_1ca8-Jun-13 22:32 
Questionc# error with database query transactions Pin
User34905-Jun-13 22:35
User34905-Jun-13 22:35 
AnswerRe: c# error with database query transactions Pin
OriginalGriff5-Jun-13 23:07
mveOriginalGriff5-Jun-13 23:07 

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.