Click here to Skip to main content
16,005,290 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: HI.. anyone had working with DB conection to AS400? Pin
jlizardo12-Jan-04 7:17
jlizardo12-Jan-04 7:17 
GeneralExtracting info from a remote web site Pin
Peter Eades8-Jan-04 19:48
sussPeter Eades8-Jan-04 19:48 
GeneralRe: Extracting info from a remote web site Pin
Niels Penneman8-Jan-04 21:10
Niels Penneman8-Jan-04 21:10 
GeneralVB.Net custom slider control Pin
bigolslabomeat8-Jan-04 16:56
bigolslabomeat8-Jan-04 16:56 
GeneralEnumerating Enums Pin
cnurse8-Jan-04 14:39
cnurse8-Jan-04 14:39 
GeneralRe: Enumerating Enums Pin
Matthew Hazlett8-Jan-04 16:59
Matthew Hazlett8-Jan-04 16:59 
GeneralRe: Enumerating Enums Pin
cnurse8-Jan-04 19:48
cnurse8-Jan-04 19:48 
GeneralTop 1 tips for VB.NET developers Pin
cnurse8-Jan-04 14:25
cnurse8-Jan-04 14:25 
Ok, its true I have only one tip, not the usual 1001 tips for VB 8-)

I have been heavily developing my Theme control system and need flicker free drawing on the surface of a panel. The solution was so sweet I just thought I would share it for two reasons. 1) See how simple things are to do in .NET, 2) I can't see a forum for sharing little nuggets...oh 3) was going to be you can see what a God I have become at this stuff in only 2 weeks (BOW MORTALS!) hahaha

' Create a panel whose Graphics object is double buffered to eliminate flicker when drawing
Public Class BufferedPanel
Inherits Panel

Sub New()
SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.DoubleBuffer Or ControlStyles.UserPaint, True)
End Sub

End Class

Jeez, that was a big build up for such a poxy one line of code, but there you go. If you want flicker free drawing, just inherit a control and stick a SetStyle on it. In the Paint event of the BufferedPanel you draw anything you want to and its flicker free.

Thanks for reading!

Nursey
GeneralDebuging VB.NET Class library project used in asp pages Pin
iluha8-Jan-04 9:34
iluha8-Jan-04 9:34 
GeneralAccess 2000 Lunacy Pin
Roger Wright8-Jan-04 6:17
professionalRoger Wright8-Jan-04 6:17 
GeneralRe: Access 2000 Lunacy Pin
Marcie Jones8-Jan-04 8:05
Marcie Jones8-Jan-04 8:05 
GeneralRe: Access 2000 Lunacy Pin
Roger Wright8-Jan-04 9:16
professionalRoger Wright8-Jan-04 9:16 
GeneralPLEASE HELP: Converting a integer (or long) to a Binary Byte Pin
Lola Copinga8-Jan-04 2:53
Lola Copinga8-Jan-04 2:53 
GeneralRe: PLEASE HELP: Converting a integer (or long) to a Binary Byte Pin
Niels Penneman8-Jan-04 6:37
Niels Penneman8-Jan-04 6:37 
GeneralHELP !!! How can I do HTML view source Pin
Jone McDryan8-Jan-04 0:55
sussJone McDryan8-Jan-04 0:55 
GeneralRe: HELP !!! How can I do HTML view source Pin
Niels Penneman8-Jan-04 6:40
Niels Penneman8-Jan-04 6:40 
GeneralRe: HELP !!! How can I do HTML view source Pin
jimpar8-Jan-04 7:35
jimpar8-Jan-04 7:35 
GeneralHelp !!! How to Access MDI form's controls from a child form Pin
Tasnim8-Jan-04 0:07
Tasnim8-Jan-04 0:07 
GeneralRe: Help !!! How to Access MDI form's controls from a child form Pin
Niels Penneman8-Jan-04 6:44
Niels Penneman8-Jan-04 6:44 
Generalwaveform plotting Pin
r i s h a b h s7-Jan-04 22:55
r i s h a b h s7-Jan-04 22:55 
GeneralRe: waveform plotting Pin
r i s h a b h s28-Jan-04 0:43
r i s h a b h s28-Jan-04 0:43 
GeneralExcel 2000 vs 2002 Pin
Odd Magne Vea7-Jan-04 22:50
sussOdd Magne Vea7-Jan-04 22:50 
GeneralRe: Excel 2000 vs 2002 Pin
Niels Penneman12-Jan-04 10:35
Niels Penneman12-Jan-04 10:35 
GeneralVB.NET PROJECT(HELP!!!!!!) Pin
Greg287-Jan-04 19:07
Greg287-Jan-04 19:07 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Dave Kreskowiak8-Jan-04 4:01
mveDave Kreskowiak8-Jan-04 4:01 

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.