Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 November 27th, 2003, 10:44 PM
Registered User
 
Join Date: Nov 2003
Location: S. Berwick, ME, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Index", "line"

Where is "Index" in property and "Line" in tool box?
How can I deal with this?

 
Old November 28th, 2003, 12:02 AM
Authorized User
 
Join Date: Jun 2003
Location: Richardson, Texas, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The line contol is gone but there is code that can be place in you paint event of the form. It will not work from the form load event. Here is some sample code to draw a Thick red line.

        Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red)
        Dim formGraphics As System.Drawing.Graphics
        formGraphics = Me.CreateGraphics()
        myPen.Width = 5
        formGraphics.DrawLine(myPen, 0, 20, 300, 20)
        myPen.Dispose()
        formGraphics.Dispose()

As for the index property, I believe it is gone. You can place items in a group box but I am not sure of the code to determine the selected control in the group box1.

David
 
Old November 29th, 2003, 09:08 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

another solution to Line control
1- add user control
2- set back color to the control to any color
3- set control.height to any width at resize event for user control
4- build the program to make the control available in components menu
5- add the control to the form


Ahmed Ali
Software Developer




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to draw indicator line in owc line chart AlexOo General .NET 0 July 9th, 2007 10:32 PM
Reading a string from line by line vaidyapragati ASP.NET 2.0 Professional 1 May 3rd, 2007 08:43 AM
How to read file line by line in EVC++ iriskab Visual C++ 0 September 27th, 2006 01:39 PM
Reading line by line from a .txt file x_ray VB.NET 2002/2003 Basics 5 February 10th, 2006 01:55 PM
how can i take line by line in the richtextbox kamarajraj Beginning VB 6 0 August 12th, 2005 04:29 AM





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