Click here to Skip to main content
15,913,587 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Determine whether there is select item in the list Pin
Mekong River8-Aug-07 15:36
Mekong River8-Aug-07 15:36 
AnswerRe: Determine whether there is select item in the list Pin
koolprasad20038-Aug-07 1:13
professionalkoolprasad20038-Aug-07 1:13 
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 
you aren't missing anything in the class file
a constructor in a class file doesn't contain the initializecomponent because it has no controls to initialize

the initializecomponent in a customcontrol or windows form is located in the designer and creates,sets property's of the controls you put on to that customcontrol or windows form.

since a class doesn't contain controls it is not needed

to give you'r control a shape look into the region property

Dim arrRegion As ArrayList = 'fill array with points
            If Not arrRegion.Count = 0 Then
                Dim pntRegion(arrRegion.Count) As Point
                pntRegion = arrRegion.ToArray(GetType(Point))
                Dim c As New System.Drawing.Drawing2D.GraphicsPath
                c.ClearMarkers()
                c.AddCurve(pntRegion)
                If Not c Is Nothing Then
                    Me.Region = New Region(c)
                End If
            End If

with this you can give you're control any shape you want

for the drawing that has to move I suggest you create a second customcontrol (with its region adjusted) place it on you'r first and adjust the position when needed
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 
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 

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.