Click here to Skip to main content
15,905,071 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalarrary of button Pin
break_day24-Dec-07 4:06
break_day24-Dec-07 4:06 
GeneralRe: arrary of button Pin
darkelv24-Dec-07 4:34
darkelv24-Dec-07 4:34 
GeneralRe: arrary of button Pin
DigiOz Multimedia24-Dec-07 6:32
DigiOz Multimedia24-Dec-07 6:32 
GeneralRe: arrary of button Pin
break_day27-Dec-07 4:45
break_day27-Dec-07 4:45 
GeneralGet graphics Pin
The real $M@24-Dec-07 2:47
The real $M@24-Dec-07 2:47 
GeneralRe: Get graphics Pin
Paul Conrad24-Dec-07 5:11
professionalPaul Conrad24-Dec-07 5:11 
GeneralRe: Get graphics Pin
The real $M@26-Dec-07 3:14
The real $M@26-Dec-07 3:14 
GeneralRe: Get graphics Pin
Luc Pattyn24-Dec-07 5:12
sitebuilderLuc Pattyn24-Dec-07 5:12 
Hi,

if you do the graphics correctly, you will catch it. Here is a tiny paint instruction:

there are several steps to draw something so it becomes visible on the screen:
1.
decide upon what object you want to draw; it normally is a Control (e.g. a Panel) or a
Form itself. I prefer to add a Panel to a Form, then draw on the Panel.

2.
create some variables (Rectangle, struct, class, whatever) that hold the parameters of
your drawing. For a rectangle that could be top and left coordinate, and width+height,
or just a Rectangle. etc.

3.
create a Paint handler for that Panel, and do all your drawing in there, using the
Graphics class and your variables.

4.
when you want to change things, modify the variables and call Panel.Invalidate() or
one of its overloads (for selective invalidation).

5.
If you want to animate things, perform the move (step 4) inside the Tick handler
of a Windows.Forms.Timer

BTW: if you need to create some objects (Fonts, Pens, Brushes, ...) either keep them
alive in class members (hence create them only once); or create them inside the Paint
handler and don't forget to call Dispose() on them.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Happy Holidays!


GeneralSerializable control. Pin
divyesh143224-Dec-07 1:19
divyesh143224-Dec-07 1:19 
GeneralRe: Serializable control. Pin
Manikandan.net25-Dec-07 22:57
Manikandan.net25-Dec-07 22:57 
GeneralMySQL Visual Basic API compunent control Pin
cedonulfi23-Dec-07 22:49
cedonulfi23-Dec-07 22:49 
GeneralRe: MySQL Visual Basic API compunent control Pin
Dave Kreskowiak24-Dec-07 4:59
mveDave Kreskowiak24-Dec-07 4:59 
GeneralRe: MySQL Visual Basic API compunent control Pin
nishkarsh_k24-Dec-07 18:05
nishkarsh_k24-Dec-07 18:05 
GeneralTry and Catch Pin
nishkarsh_k23-Dec-07 20:38
nishkarsh_k23-Dec-07 20:38 
GeneralRe: Try and Catch Pin
Michael Sync23-Dec-07 21:25
Michael Sync23-Dec-07 21:25 
Questionwebusercontrols Pin
mvkrishnas23-Dec-07 17:01
mvkrishnas23-Dec-07 17:01 
GeneralRe: webusercontrols Pin
Michael Sync23-Dec-07 21:21
Michael Sync23-Dec-07 21:21 
Questionadding control's with out refreshing the page in asp.net Pin
mvkrishnas23-Dec-07 16:58
mvkrishnas23-Dec-07 16:58 
GeneralRe: adding control's with out refreshing the page in asp.net Pin
Michael Sync23-Dec-07 21:20
Michael Sync23-Dec-07 21:20 
GeneralRe: adding control's with out refreshing the page in asp.net Pin
Manikandan.net25-Dec-07 22:55
Manikandan.net25-Dec-07 22:55 
Generalsecurity issue Pin
Tauseef A23-Dec-07 16:47
Tauseef A23-Dec-07 16:47 
GeneralRe: security issue Pin
Dave Kreskowiak24-Dec-07 4:37
mveDave Kreskowiak24-Dec-07 4:37 
QuestionRe: security issue Pin
Tauseef A25-Dec-07 16:08
Tauseef A25-Dec-07 16:08 
GeneralRe: security issue Pin
Dave Kreskowiak26-Dec-07 2:07
mveDave Kreskowiak26-Dec-07 2:07 
QuestionDelegate writing to another form? Pin
cstrader23223-Dec-07 11:45
cstrader23223-Dec-07 11:45 

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.