Click here to Skip to main content
15,893,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Date fromat problem Pin
Dave Kreskowiak18-Jun-07 1:14
mveDave Kreskowiak18-Jun-07 1:14 
GeneralRe: Date fromat problem Pin
Tamimi - Code18-Jun-07 4:01
Tamimi - Code18-Jun-07 4:01 
GeneralRe: Date fromat problem Pin
Dave Kreskowiak18-Jun-07 4:10
mveDave Kreskowiak18-Jun-07 4:10 
AnswerRe: Date fromat problem Pin
Sathesh Sakthivel17-Jun-07 3:54
Sathesh Sakthivel17-Jun-07 3:54 
AnswerRe: Date fromat problem Pin
Dave Kreskowiak17-Jun-07 4:30
mveDave Kreskowiak17-Jun-07 4:30 
QuestionSave drawing to an image in VB.NET Pin
hsprasain16-Jun-07 12:41
hsprasain16-Jun-07 12:41 
AnswerRe: Save drawing to an image in VB.NET Pin
Christian Graus16-Jun-07 14:24
protectorChristian Graus16-Jun-07 14:24 
AnswerRe: Save drawing to an image in VB.NET Pin
GuyThiebaut17-Jun-07 6:43
professionalGuyThiebaut17-Jun-07 6:43 
In my code I creat a piechart.
What I have done is stripped down the code to show you what goes where (This code will not work as it needs declarations and values...).
This code will in effect make the picture 'stick' to the form - so that it does not get erased as you move the form.

Panel1 is where the piechart is being drawn.
Width and Height are variables you need to set to the size of the picture you want.

You will also need to include the Panel1.CreateGraphics.DrawImage(b1, 0, 0) command in the Paint event of the objetct you are drawing onto - in fact this is where the magic of this method is...

Give this a go and good luck...

Regards

Guy
Cambridge
UK

Public b1 As Bitmap
Public g1 As Graphics

    b1 = New Bitmap(Width, Height, Panel1.CreateGraphics())
    g1 = Graphics.FromImage(b1)

    g1.DrawPie(Pen:=myPen, rect:=New Rectangle _
    (x:=x + XAdjust, y:=y + yAdjust, Width:=Width, Height:=Height), _
    startAngle:=startPos, sweepAngle:=sweep)




Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint

    Panel1.CreateGraphics.DrawImage(b1, 0, 0)

End Sub



You always pass failure on the way to success.

Questionbuild editor program(notepad)with vb.net Pin
ilnaz16-Jun-07 10:25
ilnaz16-Jun-07 10:25 
AnswerRe: build editor program(notepad)with vb.net Pin
Christian Graus16-Jun-07 14:26
protectorChristian Graus16-Jun-07 14:26 
Questionbuild editor program(notepad)with vb.net Pin
ilnaz16-Jun-07 10:17
ilnaz16-Jun-07 10:17 
QuestionEXCEL to HTML Pin
Vidhya Sagar16-Jun-07 6:24
Vidhya Sagar16-Jun-07 6:24 
AnswerRe: EXCEL to HTML Pin
Expert Coming16-Jun-07 13:43
Expert Coming16-Jun-07 13:43 
QuestionHow to adjust the size of the toolstrip control ? Pin
Aniket Sonawane16-Jun-07 5:55
Aniket Sonawane16-Jun-07 5:55 
Questionhow can i convert word document to XML using vb.net Pin
koolprasad200316-Jun-07 0:00
professionalkoolprasad200316-Jun-07 0:00 
AnswerRe: how can i convert word document to XML using vb.net Pin
Duane in Japan17-Jun-07 0:19
Duane in Japan17-Jun-07 0:19 
QuestionRuntime table generation and filling data from Ms Access? Pin
venu_dil15-Jun-07 23:52
venu_dil15-Jun-07 23:52 
AnswerRe: Runtime table generation and filling data from Ms Access? Pin
.NetRams16-Jun-07 0:09
.NetRams16-Jun-07 0:09 
QuestionRe: Runtime table generation and filling data from Ms Access? Pin
venu_dil16-Jun-07 6:24
venu_dil16-Jun-07 6:24 
Questionget date format Pin
Jayesh Talsaniya15-Jun-07 23:15
Jayesh Talsaniya15-Jun-07 23:15 
AnswerRe: get date format Pin
.NetRams16-Jun-07 0:12
.NetRams16-Jun-07 0:12 
GeneralRe: get date format Pin
Jayesh Talsaniya16-Jun-07 0:16
Jayesh Talsaniya16-Jun-07 0:16 
GeneralRe: get date format Pin
.NetRams16-Jun-07 0:22
.NetRams16-Jun-07 0:22 
GeneralRe: get date format Pin
Jayesh Talsaniya16-Jun-07 0:24
Jayesh Talsaniya16-Jun-07 0:24 
GeneralRe: get date format Pin
Dave Kreskowiak16-Jun-07 12:01
mveDave Kreskowiak16-Jun-07 12: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.