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

Visual Basic

 
GeneralRe: ODBC connection and SQL 2000 Pin
Sipder29-Nov-07 22:22
Sipder29-Nov-07 22:22 
QuestionVB.Net Tutorials Pin
Dreamer200726-Nov-07 19:03
Dreamer200726-Nov-07 19:03 
AnswerRe: VB.Net Tutorials Pin
Vimalsoft(Pty) Ltd26-Nov-07 19:16
professionalVimalsoft(Pty) Ltd26-Nov-07 19:16 
AnswerRe: VB.Net Tutorials Pin
John_Adams27-Nov-07 18:55
John_Adams27-Nov-07 18:55 
QuestionSearch Algorithm Pin
G.Manivannan26-Nov-07 18:06
G.Manivannan26-Nov-07 18:06 
AnswerRe: Search Algorithm Pin
John_Adams26-Nov-07 19:12
John_Adams26-Nov-07 19:12 
AnswerRe: Search Algorithm Pin
Vasudevan Deepak Kumar27-Nov-07 2:22
Vasudevan Deepak Kumar27-Nov-07 2:22 
QuestionVB.net 2005 automatic draw circle Pin
Slickuser26-Nov-07 16:24
Slickuser26-Nov-07 16:24 
How do I automatic move the X & Y to create a ellipse function as
below, DrawCircle?

Or there any sample source code out there?

I want it move down by user input. How can I achieve this? Thanks.


Imports System<br />
Imports System.Drawing<br />
<br />
Public Class circle<br />
<br />
    Private Sub circle_Load(ByVal sender As System.Object, ByVal e As<br />
System.EventArgs) Handles MyBase.Load<br />
<br />
    End Sub<br />
<br />
    Private Sub mainTab_Paint(ByVal sender As Object, ByVal e As<br />
System.Windows.Forms.PaintEventArgs) Handles Me.Paint<br />
        Dim myPen As New<br />
System.Drawing.Pen(System.Drawing.Color.Black)<br />
        myPen.DashStyle = Drawing.Drawing2D.DashStyle.Solid<br />
<br />
        Dim widthPen As Integer = 10<br />
        myPen.Width = widthPen<br />
<br />
        Dim x1 As Integer = 10<br />
        Dim y1 As Integer = 20<br />
        Dim y2 As Integer = 70<br />
        e.Graphics.DrawLine(myPen, x1, y1, x1, y2)<br />
<br />
        x1 = x1 + 25 + widthPen<br />
        e.Graphics.DrawLine(myPen, x1, y1, x1, y2)<br />
<br />
        myPen.Dispose()<br />
    End Sub<br />
<br />
    Private Sub DrawCircle(ByVal sender As Object, ByVal e As<br />
System.Windows.Forms.PaintEventArgs) Handles Me.Paint<br />
<br />
        ' Create pen.:rolleyes:<br />
        Dim redBrush As New SolidBrush(Color.Red)<br />
<br />
        ' Create location and size of ellipse.<br />
        Dim x As Integer = 75<br />
        Dim y As Integer = 25<br />
        Dim width As Integer = 75<br />
        Dim height As Integer = 50<br />
<br />
        ' Draw ellipse to screen.<br />
        e.Graphics.FillEllipse(redBrush, x, y, width, height)<br />
<br />
    End Sub<br />
<br />
End Class<br />

AnswerRe: VB.net 2005 automatic draw circle Pin
Dave Kreskowiak27-Nov-07 4:45
mveDave Kreskowiak27-Nov-07 4:45 
Questionlisting Windows Explorer using Shell32.dll Pin
GuildfordG26-Nov-07 15:08
GuildfordG26-Nov-07 15:08 
AnswerRe: listing Windows Explorer using Shell32.dll Pin
Luc Pattyn26-Nov-07 15:28
sitebuilderLuc Pattyn26-Nov-07 15:28 
GeneralRe: listing Windows Explorer using Shell32.dll Pin
GuildfordG26-Nov-07 15:54
GuildfordG26-Nov-07 15:54 
GeneralRe: listing Windows Explorer using Shell32.dll Pin
Luc Pattyn26-Nov-07 16:10
sitebuilderLuc Pattyn26-Nov-07 16:10 
GeneralRe: listing Windows Explorer using Shell32.dll Pin
GuildfordG26-Nov-07 17:33
GuildfordG26-Nov-07 17:33 
AnswerRe: listing Windows Explorer using Shell32.dll Pin
Dave Kreskowiak26-Nov-07 17:12
mveDave Kreskowiak26-Nov-07 17:12 
QuestionConverting accented characters to ASCII Pin
supercat926-Nov-07 14:17
supercat926-Nov-07 14:17 
AnswerRe: Converting accented characters to ASCII Pin
Dave Kreskowiak26-Nov-07 17:10
mveDave Kreskowiak26-Nov-07 17:10 
GeneralRe: Converting accented characters to ASCII Pin
supercat927-Nov-07 7:40
supercat927-Nov-07 7:40 
AnswerRe: Converting accented characters to ASCII Pin
azrafe718-Jan-10 3:21
azrafe718-Jan-10 3:21 
GeneralRe: Converting accented characters to ASCII Pin
supercat918-Jan-10 5:55
supercat918-Jan-10 5:55 
QuestionHow to encorparate other searches into my prog.. Pin
none5432126-Nov-07 14:02
none5432126-Nov-07 14:02 
AnswerRe: How to encorparate other searches into my prog.. Pin
Paul Conrad26-Nov-07 16:06
professionalPaul Conrad26-Nov-07 16:06 
QuestionVB.NET and MySQL Pin
Xeqtr_Blizz26-Nov-07 12:13
Xeqtr_Blizz26-Nov-07 12:13 
AnswerRe: VB.NET and MySQL Pin
Paul Conrad26-Nov-07 16:09
professionalPaul Conrad26-Nov-07 16:09 
GeneralRe: VB.NET and MySQL Pin
Xeqtr27-Nov-07 4:08
Xeqtr27-Nov-07 4:08 

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.