How do I draw a line in VB7 as there is no Line command as there was in VB6
Try this code: Dim g as Graphics g = frmMain.CreateGraphics() g.DrawLine(Pens.Black, new Point(0,0), new Point(frmMain.ClientRectangle.Width), frmMain.ClientRectangle.Height) g.Dispose() This should draw a line from the upper left to the bottom right corner of your application, but only if it’s visible. If this code isn’t in the paint event, when something obscures your application and/or it repaints, this line will *not* be redrawn. (from [email protected] on microsoft.public.dotnet.framework.windowsforms) Another possible solution that has a design-time element is to use a label with height 1 and FixedSingle Border. (suggested by Mark Lewis in microsoft.public.dotnet.framework.windowsforms)
Programming Microsoft Windows with C#
Programming Windows(r) with C# (Core Reference) by Charles Petzold ISBN: 0735613702 This is an excellent book for both Windows Forms and GDI+. As the title suggests it is oriented towards C# programmers. VB programmers should have no trouble following along. Petzold writes lucid prose. Update: There is a VB.NET version of this book available now. Programming Microsoft Windows with Microsoft Visual Basic .NET (Core Reference). ISBN: 0735617996.
Is there any way to Shutdown/Restart Windows using .NET
Take a look at classes available here: http://www.mentalis.org/soft/class.qpx?id=7.
Is there a easy way to query Whois information
Take a look at these classes: http://www.mentalis.org/soft/class.qpx?id=10.
Is there a easy way to add Socks Proxy support
Take a look at classes available here: http://www.mentalis.org/soft/class.qpx?id=9.