Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
AnswerRe: Data binding and form Pin
N a v a n e e t h1-Jul-08 22:33
N a v a n e e t h1-Jul-08 22:33 
AnswerRe: Data binding and form Pin
Elroy Dsilva2-Jul-08 0:42
Elroy Dsilva2-Jul-08 0:42 
Questionsorting DataGridView which is binded to BindingSource. Pin
jekak1-Jul-08 21:48
jekak1-Jul-08 21:48 
AnswerRe: sorting DataGridView which is binded to BindingSource. Pin
Harvey Saayman1-Jul-08 22:23
Harvey Saayman1-Jul-08 22:23 
Question3D Solid geometry library Pin
Hari_10101-Jul-08 21:26
Hari_10101-Jul-08 21:26 
AnswerRe: 3D Solid geometry library Pin
ajtunbridge2-Jul-08 2:48
ajtunbridge2-Jul-08 2:48 
QuestionDrawing line object in custom user control [modified] Pin
cocoonwls1-Jul-08 21:21
cocoonwls1-Jul-08 21:21 
AnswerRe: Drawing line object in custom user control Pin
Harvey Saayman1-Jul-08 22:33
Harvey Saayman1-Jul-08 22:33 
i sugest you make a double buffered panel fisrt, so that image doesnt flicker...

to create the doubleBufferPanel add this class to a .cs file in your project

namespace DoubleBufferPanelNameSpace
{
    class DoubleBufferPanel : Panel
    {
        public DoubleBufferPanel()
        {
            this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.UserPaint |
                     ControlStyles.DoubleBuffer |
                     ControlStyles.ResizeRedraw,
                     true);
            this.UpdateStyles();
        }
    }
}


i had some issues with the designer generated code, that's why it has its own namespace.

compile the project, you'll see the double buffer panel show up in the toolBox. this is the object youll draw on.

youll be interected in the Panel_MouseClick event for its Args object which will give you the X Y coordinates of the mouse pointer which can be saved as a Point object for use in the Panel_Paint event.

hope this helps Smile | :)
good luck

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.passion != Programming)

GeneralRe: Drawing line object in custom user control Pin
cocoonwls2-Jul-08 16:38
cocoonwls2-Jul-08 16:38 
GeneralRe: Drawing line object in custom user control Pin
Harvey Saayman2-Jul-08 20:58
Harvey Saayman2-Jul-08 20:58 
QuestionUsing SAPI 5.1 for multiple languages like french Pin
Venkatesh.P1-Jul-08 20:20
Venkatesh.P1-Jul-08 20:20 
Questioncrystal report Pin
cse.vidhya1-Jul-08 19:17
cse.vidhya1-Jul-08 19:17 
AnswerRe: crystal report Pin
Paul Conrad1-Jul-08 19:53
professionalPaul Conrad1-Jul-08 19:53 
GeneralRe: crystal report Pin
cse.vidhya1-Jul-08 19:57
cse.vidhya1-Jul-08 19:57 
QuestionChange values of pixels Pin
gigahertz2051-Jul-08 18:49
gigahertz2051-Jul-08 18:49 
AnswerRe: Change values of pixels Pin
stancrm1-Jul-08 20:12
stancrm1-Jul-08 20:12 
Questionc# barcode reader using scanner Pin
lankaudaranga1-Jul-08 17:51
lankaudaranga1-Jul-08 17:51 
AnswerRe: c# barcode reader using scanner Pin
Bert delaVega1-Jul-08 18:18
Bert delaVega1-Jul-08 18:18 
AnswerRe: c# barcode reader using scanner Pin
killabyte1-Jul-08 18:21
killabyte1-Jul-08 18:21 
AnswerRe: c# barcode reader using scanner Pin
John Ad1-Jul-08 18:23
John Ad1-Jul-08 18:23 
QuestionRunning your programs on other machines Pin
max292971-Jul-08 16:23
max292971-Jul-08 16:23 
AnswerRe: Running your programs on other machines Pin
Christian Graus1-Jul-08 16:24
protectorChristian Graus1-Jul-08 16:24 
GeneralRe: Running your programs on other machines Pin
max292971-Jul-08 16:28
max292971-Jul-08 16:28 
GeneralRe: Running your programs on other machines Pin
Christian Graus1-Jul-08 16:37
protectorChristian Graus1-Jul-08 16:37 
GeneralRe: Running your programs on other machines Pin
max292971-Jul-08 16:41
max292971-Jul-08 16:41 

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.