Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 25th, 2007, 01:10 AM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SOS~

´òÈÅÁË~ÎÒÏëÇë½ÌÒ»¸öÎÊÌâ:
ÔÚ<<VB.NETÈëÞ­µä>>Ò»ÊéÖÐ,µÚÊ ®Â¶Ã¾Ã•µÄÄÇÆª<ÖÆÍ¼¼¼Êõ>,ÓÐÒ»¶ δúÂëÊÇÕâÑùµÄ:
Public Class GraphicsCircle
        Inherits GraphicsItem

        Public Overrides Sub Draw(ByVal graphics As _
        System.Drawing.Graphics)

            'creat a new pen...
            Dim brush As New SolidBrush(Me.Color)

            'draw the circle
            graphics.FillEllipse(brush, MeRectangle)
        End Sub
    End Class
ÎÒ°´ÕÕÊéÉÏ˵µÄÊäÈë½øÈ¥µÄÊ ±ºò,VB³öÏÖÕâÑùµÄ´íÎóÌáʾ:
1.sub¡°Draw¡±²»ÄÜÉùÃ÷Ϊ¡°Overrides ¡±£¬ÒòΪËü²»ÖØÐ´»ù class ÖÐµÄ sub¡£
2.¡°Color¡±²»ÊÇ¡°WroxPaint.GraphicsCircl e.GraphicsCircle¡±µÄ³ÉÔ±¡£
3.Ãû³Æ¡°MeRectangle¡±Î´ÉùÃ÷¡£
ÇëÎÊÔõô½â¾ö~~ллÁË



 
Old January 2nd, 2008, 06:27 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

SOS is not much of a topic, and this forum is primarily English-language.
Though your routine is legible, the text surrounding it is not.

Try to pick a topic that explains the... well, the topic. Like "Cannot draw circle on form face."

That way, those who know something about that will be drawn to your post.
 
Old March 25th, 2008, 10:37 PM
Registered User
 
Join Date: Mar 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Fall,

I think I can help to to translate:

You follow the code example of a book and found the sample codes show error / warning messages.

If it is a Wrox box, I suggest you could visit the "Books" area of this forum to search for the book you are reading.

BTW, I expected that there are more codes required for your codes to work properly. There may be more in the sample.

Eins Tsang





Similar Threads
Thread Thread Starter Forum Replies Last Post
SOS!I am a student from China!Who can help me? rose1975_ren XML 0 November 3rd, 2004 08:21 PM
Please Help me!(SOS) zhangmin XML 1 March 12th, 2004 05:18 PM
SOS:.dll file couldn't be loaded! LuckyChanceMore BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 3rd, 2004 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.