博文

使用GUI+画折线图(2007-02-10 08:15:00)

摘要:Introduction Outline    As in the previous articles, the chart will be displayed in a PictureBox control.   Although it would be easy - easier in some ways - to simply plaster the chart onto the surface of the form itself, I think it is more realistic to house it inside some kind of container control because a chart is most often just one part of a range of information displayed to the user.   It also lends itself more easily to the situation where you want to take user input on screen and to use that data directly to draw or redraw the chart.     For convenience, we will create some sample data at the start of the project.  In a real world scenario, you will probably gather this data from a data source of some kind, either one that has been previously saved to file or directly from the user on screen.    If you want to adjust the code in this article to take in data at runtime, you will find an ......

阅读全文(6281) | 评论:0

在vb2003种使用GUI+实现动态曲线绘制(精品)(2007-02-10 08:09:00)

摘要:Introduction    There are some quite advanced features that can be incorporated into a dynamic chart, sometimes depending on where the data is coming from.   In this article, we are going to be begin with a fairly simple demo.   Then we will move on to one that is slightly more sophisticated and finally we will look at further enhancements that could be incorporated into this kind of graph.    So, let me set the scene.  What do we want to do here?   Well, the first dynamic line chart I plan to create is one that takes some simple user input and displays the values as they are chosen on the chart.   As each new value is selected, the chart will be extended and redrawn to show the continuous changes that have been made.  When the screen width is "full", the earliest values are lost from view as the graphic display continues to scroll from right to left.   One quick and easy demo is to create pu......

阅读全文(4064) | 评论:0

C#和VB2005初学者如何使用FileSystemInfo类(源码)(2007-02-10 07:59:00)

摘要: Class in C# and VB.NET for beginners FileSystemInfo Class One of the rich experiences in working with .NET is a huge collection of Base Class Libraries. The .NET Framework class library is a library of classes, interfaces, and value types that are included in the Microsoft .NET Framework SDK. This library provides access to system functionality and is designed to be the foundation on which .NET Framework applications, components, and controls are built. System.IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files. To parse information of lots of files and directories, the FileSystemInfo class comes in handy. It is an abstract class and contains members (methods, properties …) that are common to file and directory manipulation. A FileSystemInfo object can represent either a file or a directory. The implementation of this abstract class is done in FileInfo and DirectoryInfo class. The Members would take full path (ab......

阅读全文(5452) | 评论:0

用VB2005实现多窗体编程三(初级、全面、源码)(2007-02-10 07:54:00)

摘要:Multiple Forms in VB.NET. Part 4 - Accessing Controls and Data on the StartUp Form Article source code: multipleforms4.zip Introduction In previous articles, we looked at some common problems that seem to have caused problems for many newcomers to VB.NET. In this article we will take a look at a specific area which appears to contribute more than its fair share of grief to many people in the early days of the .NET learning curve. As with all the previous articles, this one is aimed squarely at .NET Newbies and tries to provide explanation and solutions with the least possible amount of techno-speak. Inevitably this sometimes means that strict technical accuracy has to take a back seat where a tricky concept is being explained, but it's all in a good cause! The Background Some of the previous articles have covered methods of accessing controls and data between multiple forms. On the whole, though, those articles have tended to use examples which get information from a second fo......

阅读全文(2770) | 评论:0

在VB2005种实现多窗体编程二(初级、全面、源码)(2007-02-10 07:52:00)

摘要:Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms Article source code: multipleforms3.zip As with the previous articles in this series, this one is also aimed at .NET Newbies and Upgraders. It tries to explain concepts as simply as possible, with the greatest use of plain English and minimum use of technical terms. The aim is to get the core ideas across as quickly as possible, so you can achieve the results you desire now; the technical details can follow in time. I know that many will not agree with this approach, but as a relative .NET Newbie myself, I know just how frustrating it can be trying to plough through a mass of technical detail in the early days when all you really want to do is, well, get started! In this article, we are going to look at another topic on ways of dealing with multiple forms. As promised at the end of Part 2, we are first going to take a look at a way of passing data between multiple forms, but this time the user doesn't need to click ......

阅读全文(2278) | 评论:0

在VB2005种实现多窗体编程一(初级、全面、源码)(2007-02-10 07:51:00)

摘要:Multiple Forms in VB.NET. Part 1 Article source code: multipleforms.zip _________________________________  Authors' Note February 2006:        This article was written in June 2003 and was aimed at users of the VB.NET 2002 and 2003 editions who were upgrading from VB6.   Now that VB2005 has arrived, much of the content has been overtaken by improvements in that new edition and won't be applicable if this is the version you are using.   ________________________________ Introduction One of the first hurdles you're going to come up against when you move from Classic VB to VB.NET is getting to grips with the new ways of dealing with forms. Your approach to forms in VB.NET is fundamentally different and hinges on the fact that the Framework implements forms as classes, so now you need an object variable to instantiate it. This article is aimed at helping you through some of those basic steps. Instead of loadi......

阅读全文(3248) | 评论:0

如何使用VB2005设置窗体壁纸(2007-02-10 07:47:00)

摘要:VS2005 - Setting Windows Desktop Wallpaper Guest Author: Jay Roxe Here is some Visual Basic 2005 code for setting the Windows desktop wallpaper to an arbitrary image on the user's local drive. It illustrates use of VB2005 My classes, in this case to find the location of the user's My Pictures directory without a lot of coding. To use, paste the following code into the top of your class module. This code requires Visual Basic 2005 to work.Private Const SPI_SETDESKWALLPAPER As Integer = &H14 Private Const SPIF_UPDATEINIFILE As Integer = &H1 Private Const SPIF_SENDWININICHANGE As Integer = &H2 Private Declare Auto Function SystemParametersInfo Lib "user32.dll" ( _ ByVal uAction As Integer, ByVal uParam As Integer, _ ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer ' change this to whatever filename you want to use Const WallpaperFile As String = "MovieCollectionImage.bmp" ''' <SUMMARY> ''' Sets the background of your Windows des......

阅读全文(3475) | 评论:0

如何使用VB2005的ListviewGroup控件实现内容的分组显示(2007-02-10 07:39:00)

摘要:How To Group ListView Items with ListViewGroup VB2005 This article with source code demonstrates how to group ListView Items with the ListViewGroup class and Visual Basic 2005. In the article example, customers are loaded from a database and three groups are created - customer name, region, and country. Example Application Screen Shot About the ListView Grouping ListView grouping is used to create visual groups of logically related ListView items. Each group consists of a text-based header followed by a horizontal line and the items assigned to that group. See screen shot above for an example. You can align the header text to the left, right, or center of the control. Any groups assigned to a ListView control appear whenever the ListView.View property is set to a value other than View.List.

To use the grouping feature, add one or more ListViewGroup objects to the ListView.Groups collection of a ListView control.

Assign a ListView Item to a group by specifying the ......

阅读全文(7370) | 评论:0

5套人民币背后的秘密.[转贴][长见识了)(2007-02-09 20:20:00)

摘要: 钱币被称为“国家名片”,人民币则是中国的名片。目前人民币一共发行了五套,你想知道都有哪些风景曾被荣幸地印上它们的背面,在担负商品交换媒介职能的同时,也在960平方公里的土地上传递着浓缩自然、历史、文化为一体的中国精神吗? 转自81.china.com
第一套人民币第3版100元背面 转自81.china.com
颐和园万寿山   

  颐和园,位于北京城西北郊,原清代皇家花园和行宫,距离天安门20公里整。颐和园因是集中国园林建筑艺术之大成的杰作,也是世界最著名的皇家园林之一。颐和园在1998年11月成功申请为世界文化遗产。 
第一套人民币第5版100元背面  
北海公园 

  

  北海公园位于北京市区的中心,是中国现存历史最悠久、保存最完整的皇家园林之一,距今已有近千年的历史。全园占地68公顷(其中水面39公顷),主要由琼华岛、东岸、北岸景区组成。北海园林的开发始于辽代。1925年北海辟为公园对外开放。
第二套人民币2元背面 
延安宝塔山 

  延安宝塔山古称嘉岭山,位于延安城东南,延河之滨。在山上可鸟瞰延安整个城区。因山上有塔,通常称作宝塔山。山高1135.5米,山上宝塔始建于唐,现为明代建筑。平面八角形,九层,高约44米,楼阁式砖塔。宝塔山是革命圣地延安的重要标志和象征,“只有登上宝塔山,才算真正到了延安”。 
第二套人民币3元背面
井冈山龙源口石桥 

  龙源口位于井冈山下,是与井冈山资源共享的国家级风景区,井冈山斗争的第一个保卫战和红军史上第一个大胜仗——龙源口大捷在这里发生;境内还有在井冈山时期毛主席亲自创建的第一个农村党支部——秋溪党支部旧址。这里是爱国主义教育基地,也是休闲度假、疗养健身的好去处。 
第四套人民币1元背面 
八达岭长城 

  八达岭长城史称天下九塞之一,是万里长城的精华和杰出代表,也是万里长城向游人开放最早的地段。八达岭地理环境优越,自古以来就是通往山西、内......

阅读全文(2761) | 评论:0

股民开户第一天的悲惨经历[转贴经典中的经典(2007-02-09 20:14:00)

摘要:小六刚开了户来到股票市场。 转自81.china.com
  转自81.china.com
  在门口买了一张证券报,这时有个人说:“嘿! 新股民吧!“ 转自81.china.com
  转自81.china.com
  小六愣了:“你怎么知道?“ 转自81.china.com
  转自81.china.com
  那人说:“报纸除了日期是真的,其余都是假的,老股民哪有买 的 !“ 转自81.china.com
  转自81.china.com
  小六进了大厅,这时人已经很多了,他站在人家身后看电脑,有人跟他招呼:“喂!新股民吧!“ 转自81.china.com
  转自81.china.com
  “ 你怎 么知道?“ 转自81.china.com
  转自81.china.com
  “老股民都早来占机器,哪有你这么晚的!“ 转自81.china.com
  转自81.china.com
  小六一听也是,就坐下来看大屏幕,旁 边有 个人说 :“新股民吧!“ 转自81.china.com
  转自81.china.com
  小六又愣了:“你怎么知道?“ 转自81.china.com
  转自81.china.com
  “老股民都在打扑克,哪有看股票的! “ 转自81.china.com
  转自81.china.com
  小六 一看,可 不是,很少有人看屏幕的。 转自81.china.com
  转自81.china.com
  中午了,小六到外面买了一个盒饭,卖盒饭的说:“呵。。 呵。 。,新股 民吧!“ 转自81.china.com
  转自81.china.com
  “ 你怎么知道!?“ 转自81.china.com
  转自81.china.com
  “老股民哪有买盒饭的,都是3点以后回家吃的“。 转自8......

阅读全文(1298) | 评论:0