Click here to Skip to main content
15,920,801 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Determine whether there is select item in the list Pin
Mekong River8-Aug-07 15:37
Mekong River8-Aug-07 15:37 
AnswerRe: Determine whether there is select item in the list Pin
The ANZAC8-Aug-07 1:51
The ANZAC8-Aug-07 1:51 
GeneralRe: Determine whether there is select item in the list Pin
Mekong River8-Aug-07 15:35
Mekong River8-Aug-07 15:35 
Questioncan i create annotation in picture box using vb.net? [modified] Pin
babusat7-Aug-07 22:28
babusat7-Aug-07 22:28 
Questionhow to create a control Pin
eyes20077-Aug-07 22:22
eyes20077-Aug-07 22:22 
AnswerRe: how to create a control Pin
Tom Deketelaere7-Aug-07 23:24
professionalTom Deketelaere7-Aug-07 23:24 
GeneralRe: how to create a control Pin
eyes20078-Aug-07 0:16
eyes20078-Aug-07 0:16 
GeneralRe: how to create a control Pin
Tom Deketelaere8-Aug-07 1:09
professionalTom Deketelaere8-Aug-07 1:09 
well if you want to set the region of the control you can do that in the load of the control

if you want to draw something on the control (using the graphics) you should be able to use

Protected Overloads Overrides Sub OnPaint(ByVal e As PaintEventArgs)

'you're code comes here

        MyBase.OnPaint(e)
    End Sub

or for a custom control
Private Sub ctrlLineHorizontal_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint

End Sub


keep in mind that the code you place inside the paint methode/event will me run everytime you're control repaints and this happens when you
move the control (at run time) (or parent control/form)
when another window is placed on top of it and then you return to the control
when you resise the control (or parent control/form)

so it would be wise to keep the code inside the paint methode/event to an absolute minimum
GeneralRe: how to create a control Pin
eyes20078-Aug-07 2:50
eyes20078-Aug-07 2:50 
GeneralRe: how to create a control Pin
Tom Deketelaere8-Aug-07 3:11
professionalTom Deketelaere8-Aug-07 3:11 
GeneralRe: how to create a control [modified] Pin
eyes20078-Aug-07 4:14
eyes20078-Aug-07 4:14 
GeneralRe: how to create a control Pin
Tom Deketelaere8-Aug-07 21:33
professionalTom Deketelaere8-Aug-07 21:33 
GeneralRe: how to create a control Pin
Tom Deketelaere8-Aug-07 22:37
professionalTom Deketelaere8-Aug-07 22:37 
GeneralRe: how to create a control Pin
eyes20079-Aug-07 1:22
eyes20079-Aug-07 1:22 
GeneralRe: how to create a control Pin
eyes20079-Aug-07 19:39
eyes20079-Aug-07 19:39 
QuestionMemory leak detecting [modified] Pin
dimuthuvbnet7-Aug-07 21:12
dimuthuvbnet7-Aug-07 21:12 
AnswerRe: Memory leak detecting Pin
originSH7-Aug-07 23:00
originSH7-Aug-07 23:00 
GeneralRe: Memory leak detecting Pin
dimuthuvbnet7-Aug-07 23:25
dimuthuvbnet7-Aug-07 23:25 
AnswerRe: Memory leak detecting Pin
MidwestLimey8-Aug-07 12:33
professionalMidwestLimey8-Aug-07 12:33 
Questionhow can i get the file system of machine using VB6 Pin
koolprasad20037-Aug-07 21:07
professionalkoolprasad20037-Aug-07 21:07 
AnswerRe: how can i get the file system of machine using VB6 Pin
MartyK20077-Aug-07 22:56
MartyK20077-Aug-07 22:56 
Questionany free virtual keyboard control??? Pin
jamilkhan0077-Aug-07 20:40
jamilkhan0077-Aug-07 20:40 
AnswerRe: any free virtual keyboard control??? Pin
Kschuler8-Aug-07 7:58
Kschuler8-Aug-07 7:58 
Questionhow can i store a user history, r settings??? Pin
jamilkhan0077-Aug-07 20:31
jamilkhan0077-Aug-07 20:31 
AnswerRe: how can i store a user history, r settings??? Pin
Christian Graus7-Aug-07 21:35
protectorChristian Graus7-Aug-07 21:35 

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.