473,419 Members | 4,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

how do you do freehand drawing on a panel

Hi there,

I'm very much a C# novice.

How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
Don

Jan 24 '07 #1
11 11219
Well, it depends on what you need, but there are some key ideas. First
you need to know what to do someone drags something over your panel so
you need to buffer what ever you've drawn so you can redraw it when it
becomes visible.

Here's a tutorial on double buffering.

http://www.codeproject.com/csharp/DoubleBuffering.asp

You'll need to know how to set a single pixel or range of pixels,
there's a little info on this:

http://forums.microsoft.com/MSDN/Sho...38408&SiteID=1

but it can be summed up as

//_ourbitmap is a reference to our buffer (System.Drawing.Bitmap)
_ourbitmap.SetPixel(e.X,e.Y,System.Drawing.Color.A zure);
//Draw using the stuff we learnt in double buffering.

Here's something that actually works. Create a form, add a panel and a
button.

Add this to the form's declarations. I'm using an existing bitmap for
simplicity to set up the bitmap
private System.Drawing.Bitmap _b = new Bitmap("C:\\Somebitmap.bmp");
In the buttons click event add

//ensure bitmap fits panel and assign.
_b = new System.Drawing.Bitmap(_b,panel1.Size);
panel1.BackgroundImage = _b;

In the MouseMove event of the panel add the following.

//if left button down, draw a pixel and invalidate it so it gets
redrawn.
if(System.Windows.Forms.MouseButtons.Left == e.Button)
{
_b.SetPixel(e.X,e.Y,System.Drawing.Color.Wheat);
panel1.Invalidate(new System.Drawing.Rectangle(e.X,e.Y,1,1));
}
It isn't perfect but it might get you started in the right direction.

On 24 Jan, 16:14, dongarb...@hotmail.com wrote:
Hi there,

I'm very much a C# novice.

How do you do freehand drawing on a panel with a mouse in c#?

Thanks,
Don
Jan 24 '07 #2


<do********@hotmail.comwrote in message
news:11**********************@a75g2000cwd.googlegr oups.com...
Hi there,

I'm very much a C# novice.

How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
Don
The best way, IMO, is to create a new class that inherits from Panel and
override the OnPaint, OnMousexxx, etc methods inside this class....but just
my opinion :)

HTH,
Mythran
Jan 24 '07 #3
Mythran,

This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?

Thanks,
Don

On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@a75g2000cwd.g ooglegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel and
override the OnPaint, OnMousexxx, etc methods inside this class....but just
my opinion :)

HTH,
Mythran
Jan 24 '07 #4


<do********@hotmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
Mythran,

This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?

Thanks,
Don

On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
><dongarb...@hotmail.comwrote in
messagenews:11**********************@a75g2000cwd. googlegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
override the OnPaint, OnMousexxx, etc methods inside this class....but
just
my opinion :)

HTH,
Mythran
To draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).

To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).

HTH,
Mythran
Jan 24 '07 #5
Mythran,

I have tried to use the Graphics object and am having a problem. It
seems that only a small portion (sized at 100X200) of my panel can be
drawn on. My panel is sized at 500X500 but for some reason only the
upper left hand corner (100X200) receives scribbles from my mouse.
Weird thing is that the mousedown and mousemove events are triggered
throughout the panel. Here's the pertinent code inside my overridden
panel class:

private Point last_point = Point.Empty;
private Graphics g;
private Pen p = new Pen(Color.FromName("yellow"));
...
...
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);

}
last_point = new Point(e.X, e.Y);
}

Thanks,
Don
On Jan 24, 2:14 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@v45g2000cwv.g ooglegroups.com...


Mythran,
This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?
Thanks,
Don
On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in
messagenews:11**********************@a75g2000cwd.g ooglegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
override the OnPaint, OnMousexxx, etc methods inside this class....but
just
my opinion :)
HTH,
MythranTo draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).

To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).

HTH,
Mythran- Hide quoted text -- Show quoted text -
Jan 24 '07 #6
where are you setting g? Is it possible you're getting an invalidated
region as opposed to the full area? Post that bit of the code will help
:)

On 24 Jan, 19:44, dongarb...@hotmail.com wrote:
Mythran,

I have tried to use the Graphics object and am having a problem. It
seems that only a small portion (sized at 100X200) of my panel can be
drawn on. My panel is sized at 500X500 but for some reason only the
upper left hand corner (100X200) receives scribbles from my mouse.
Weird thing is that the mousedown and mousemove events are triggered
throughout the panel. Here's the pertinent code inside my overridden
panel class:

private Point last_point = Point.Empty;
private Graphics g;
private Pen p = new Pen(Color.FromName("yellow"));
...
...
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);

}
last_point = new Point(e.X, e.Y);
}

Thanks,
Don

On Jan 24, 2:14 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@v45g2000cwv.g ooglegroups.com...
Mythran,
This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?
Thanks,
Don
On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
><dongarb...@hotmail.comwrote in
>messagenews:11**********************@a75g2000cwd. googlegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
>override the OnPaint, OnMousexxx, etc methods inside this class....but
>just
>my opinion :)
>HTH,
>MythranTo draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).
To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).
HTH,
Mythran- Hide quoted text -- Show quoted text -
Jan 24 '07 #7
Hi there,

See code below:

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

namespace MyProject
{
public class MyPanel : Panel
{
private Pen p;
public string pen_color = "yellow";
private bool mouse_down = false;
private Point last_point = Point.Empty;
private Graphics g;

public MyPanel()
{
g = this.CreateGraphics();
p = new Pen(Color.FromName(pen_color));
}
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
}
}

Thanks for any help,
Don

On Jan 24, 6:36 pm, "DeveloperX" <nntp...@operamail.comwrote:
where are you setting g? Is it possible you're getting an invalidated
region as opposed to the full area? Post that bit of the code will help
:)

On 24 Jan, 19:44, dongarb...@hotmail.com wrote:
Mythran,
I have tried to use the Graphics object and am having a problem. It
seems that only a small portion (sized at 100X200) of my panel can be
drawn on. My panel is sized at 500X500 but for some reason only the
upper left hand corner (100X200) receives scribbles from my mouse.
Weird thing is that the mousedown and mousemove events are triggered
throughout the panel. Here's the pertinent code inside my overridden
panel class:
private Point last_point = Point.Empty;
private Graphics g;
private Pen p = new Pen(Color.FromName("yellow"));
...
...
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
Thanks,
Don
On Jan 24, 2:14 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@v45g2000cwv.g ooglegroups.com...
Mythran,
This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?
Thanks,
Don
On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in
messagenews:11**********************@a75g2000cwd.g ooglegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
override the OnPaint, OnMousexxx, etc methods inside this class....but
just
my opinion :)
HTH,
MythranTo draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).
To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).
HTH,
Mythran- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Jan 25 '07 #8

I made this change:

protected override void OnMouseMove(MouseEventArgs e)
{
if(null == g)
{
g = this.CreateGraphics();
}

and it works correctly. I put it there to ensure the control was fully
initialised and set up. If you check this.width and this.height both in
the constructor and the mousedown event you'll see the control changes
size. That might be worth keeping in mind if you want to resize the
control while running.
On 25 Jan, 03:26, dongarb...@hotmail.com wrote:
Hi there,

See code below:

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

namespace MyProject
{
public class MyPanel : Panel
{
private Pen p;
public string pen_color = "yellow";
private bool mouse_down = false;
private Point last_point = Point.Empty;
private Graphics g;

public MyPanel()
{
g = this.CreateGraphics();
p = new Pen(Color.FromName(pen_color));
}
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
}

}Thanks for any help,
Don

On Jan 24, 6:36 pm, "DeveloperX" <nntp...@operamail.comwrote:
where are you setting g? Is it possible you're getting an invalidated
region as opposed to the full area? Post that bit of the code will help
:)
On 24 Jan, 19:44, dongarb...@hotmail.com wrote:
Mythran,
I have tried to use the Graphics object and am having a problem. It
seems that only a small portion (sized at 100X200) of my panel can be
drawn on. My panel is sized at 500X500 but for some reason only the
upper left hand corner (100X200) receives scribbles from my mouse.
Weird thing is that the mousedown and mousemove events are triggered
throughout the panel. Here's the pertinent code inside my overridden
panel class:
private Point last_point = Point.Empty;
private Graphics g;
private Pen p = new Pen(Color.FromName("yellow"));
...
...
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
Thanks,
Don
On Jan 24, 2:14 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@v45g2000cwv.g ooglegroups.com...
Mythran,
This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?
Thanks,
Don
On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
><dongarb...@hotmail.comwrote in
>messagenews:11**********************@a75g2000cwd. googlegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
>override the OnPaint, OnMousexxx, etc methods inside this class....but
>just
>my opinion :)
>HTH,
>MythranTo draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).
To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).
HTH,
Mythran- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Jan 25 '07 #9
In C# 3.0, you have specific controls like the inkCanvas and the
inkPresenter to draw. Which version of C# are you using?

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Jan 25 '07 #10
OK, now I get it!! This is my eureka moment for this problem.
The panel is instantiated in my form designer.cs, then, parameters like
size are assigned values from the form designer.cs. The problem I was
having was that I was instantiating the Graphics object (g) in the
panel's constructor, before any of the panel's parameters were being
set thereby giving panel default values to the Graphics object.
Bingo!!!

Did I mention that I'm a novice with c#? ;)

Thanks so much for the help,
Don

On Jan 25, 5:44 am, "DeveloperX" <nntp...@operamail.comwrote:
I made this change:

protected override void OnMouseMove(MouseEventArgs e)
{
if(null == g)
{
g = this.CreateGraphics();
}

and it works correctly. I put it there to ensure the control was fully
initialised and set up. If you check this.width and this.height both in
the constructor and the mousedown event you'll see the control changes
size. That might be worth keeping in mind if you want to resize the
control while running.

On 25 Jan, 03:26, dongarb...@hotmail.com wrote:
Hi there,
See code below:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace MyProject
{
public class MyPanel : Panel
{
private Pen p;
public string pen_color = "yellow";
private bool mouse_down = false;
private Point last_point = Point.Empty;
private Graphics g;
public MyPanel()
{
g = this.CreateGraphics();
p = new Pen(Color.FromName(pen_color));
}
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
}
}Thanks for any help,
Don
On Jan 24, 6:36 pm, "DeveloperX" <nntp...@operamail.comwrote:
where are you setting g? Is it possible you're getting an invalidated
region as opposed to the full area? Post that bit of the code will help
:)
On 24 Jan, 19:44, dongarb...@hotmail.com wrote:
Mythran,
I have tried to use the Graphics object and am having a problem. It
seems that only a small portion (sized at 100X200) of my panel can be
drawn on. My panel is sized at 500X500 but for some reason only the
upper left hand corner (100X200) receives scribbles from my mouse.
Weird thing is that the mousedown and mousemove events are triggered
throughout the panel. Here's the pertinent code inside my overridden
panel class:
private Point last_point = Point.Empty;
private Graphics g;
private Pen p = new Pen(Color.FromName("yellow"));
...
...
protected override void OnMouseDown(MouseEventArgs e)
{
mouse_down = true;
}
protected override void OnMouseUp(MouseEventArgs e)
{
mouse_down = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
if (last_point.Equals(Point.Empty)) last_point = new
Point(e.X, e.Y);
if (mouse_down)
{
Point pMousePos = new Point(e.X, e.Y);
g.DrawLine(p, pMousePos, last_point);
}
last_point = new Point(e.X, e.Y);
}
Thanks,
Don
On Jan 24, 2:14 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in messagenews:11**********************@v45g2000cwv.g ooglegroups.com...
Mythran,
This sounds the simplest. How do you draw on the panel when you're in
the OnMouseDown() method?
Thanks,
Don
On Jan 24, 1:15 pm, "Mythran" <kip_pot...@hotmail.comwrote:
<dongarb...@hotmail.comwrote in
messagenews:11**********************@a75g2000cwd.g ooglegroups.com...
Hi there,
I'm very much a C# novice.
How do you do freehand drawing on a panel with a mouse in c#?
Thanks,
DonThe best way, IMO, is to create a new class that inherits from Panel
and
override the OnPaint, OnMousexxx, etc methods inside this class....but
just
my opinion :)
HTH,
MythranTo draw, I would recommend drawing on an off-screen buffer (Bitmap) and then
in OnPaint, draw this buffer onto the panel. So, when a user fires
OnMouseDown, you would find the location of the mouse x and y relative to
the panel's dimensions and then color the pixel at the location x and y on
the offscreen image. Once done, you can fire off OnPaint by invalidating
the panel (Me.Invalidate).
To learn how to draw, I would recommend that you familiarizing yourself with
the System.Drawing namespace, and the System.Drawing.Graphics class. Look
those up on MSDN (http://msdn.microsoft.com/library).
HTH,
Mythran- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -
Jan 25 '07 #11
J.V.

How do I determine my C# version?

Thanks,
Don

On Jan 25, 6:55 am, Ravichandran J.V. <jvravichand...@yahoo.com>
wrote:
In C# 3.0, you have specific controls like the inkCanvas and the
inkPresenter to draw. Which version of C# are you using?

with regards,

J.V.Ravichandran
-http://www.geocities.com/
jvravichandran
- Or, just search on "J.V.Ravichandran"
athttp://www.Google.com

*** Sent via Developersdexhttp://www.developersdex.com***
Jan 25 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Skidmore | last post by:
I am building an application that will fade one panel to another panel. Both panels will have picture boxes in them (thumbnails). This is what I have tried: private void...
2
by: Millennium Falcon | last post by:
Hi! In my application, I have a panel in the middle of the form, which I'll be using as a drawing panel. I would like to update the drawing panel each time when it is required, without updating...
13
by: Martin Ho | last post by:
I know this must be trivial for many of you. But I am playing with this and can't figure it out. I have a form, on that form is one panel which has 3 textboxes, when I run my program and...
6
by: QT | last post by:
Dear sirs, I want to create panel or label field for each database records. I am using following codes for each database row to create panel field. 'Panel ' i = 1
4
by: Sarika | last post by:
I migrated a VB6.0 application to VB.NET. This app has a drawing area, which is a panel. The user can drag and drop several objects on this drawing area and can also draw lines, boxes etc. The app...
7
by: Sharon | last post by:
I’m using the Panel control that contains a PictureBox control (for implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp). The Panel is set to AutoScroll = true. I wish to...
1
by: lab3terch | last post by:
Imports System.Drawing.Graphics Public Class Form1 Inherits System.Windows.Forms.Form Dim x1, y1, x2, y2 As Integer Dim red, black, blue, green, orange As Color Dim x, y, w, h...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
3
by: zaklamp | last post by:
Hello, I am searching for a panel that allows me to pan and zoom but i still have to be able to select a object like a Button (so not a pure drawing panel). If anyone have an idee how to handle...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.