Monday, July 26, 2010

C # drag and drop source Xiangjie 1



The operating practices, we can Windows applications users are divided into two categories, first is preferred to use the keyboard of the user, the second is the preference of the user using the mouse. Experience for many programmers to fully understand, be sure to provide hot key (underscore will show the rapid character key) and the shortcut key (for example: Ctrl + key combination of a character) to a large number of users using the keyboard, but but often ignore the mouse users. As the programmers themselves tend to keyboard users, so special emphasis on the function-oriented keyboard is understandable, but every programmer should also take into account the full support of the mouse is.

In fact, most users expect the mouse is on the full support of drag and drop. However, closer inspection the majority of Windows applications or Windows operating system itself, we find that drag and drop capability is everywhere. For example, the user is already accustomed to Windows Explorer, drag and placement of files and drag in Microsoft Word and text placed.

Unfortunately, only a very small number of Visual C # programmers will develop their applications with complete drag and drop function, of course, one of the reasons causing this phenomenon is to achieve drag and drop functionality does have its difficulty and complexity. This section will let you know to use Visual C # 2003 ~ 2005 version after the release function of real drag is how a simple thing. We will show how the actual window inside the body, between the form and move between the application and copy text, pictures and documents.

Drag and drop operation is how it works

Drag and drop actually cut and paste (or copy and paste) is no different, but it is to use the mouse instead of using the keyboard. In both operations, you will have a source (that is, you cut or copied object) and a target (that is, between you paste). No matter what kind of operation, during operation, the data will exist in memory a copy. Cut and paste will be used to the clipboard, and drag and drop to a DataObject object will be used, in fact, DataObject object is like a private clipboard.

In a typical drag and drop operation will cause the following event sequence:

1. You can call the source control DoDragDrop method to initialize the drag operation. DoDragDrop method syntax is as follows:

DragDropEffects DoDragDrop (

Object data,

DragDropEffects allowedEffects) DoDragDrop method will accept the following two parameters:

A new DataObject object will automatically be created.

2. Then lead to the source control GiveFeedback event. In most cases, you do not need to deal with GiveFeedback event, but if you want to display a custom during drag the mouse pointer, you can write GiveFeedback event handler code to complete the set.

3.AllowDrop property is set to True, any controls can be placed target. You can design the "Properties" window as the target control to AllowDrop property set to True, or is in the operational phase in the form Load event handler as the target control will be set to AllowDrop property True.

4. When you move the mouse pointer over any control, it will lead to the control of the DragEnter event. We usually target the control of the DragEnter event handler, use the GetDataPresent method to detect whether the drag data format for the target control, and use the DragEventArgs type parameters allowed to set the Effect property of the placement operation.

5. If the user placed in a valid target release the mouse button, it will lead to target control DragDrop event. We usually target the control of the DragDrop event handler write the code, retrieve data from a DataObject object and displays the target control.

About drag and drop operation, you must note the following:

Some controls have custom drag-specific events. For example, ListView and TreeView control to have ItemDrag event. When a drag operation is being executed, you can handle QueryContinueDrag event, which will be the system "requires the use of permission" to continue to drag operation. When the time of that approach, but also a call to those who drag operation on the impact of the method is the right time. For example, when the mouse pointer over the top of the TreeView control when the start of a TreeNode. You can also define your own DataFormats. Approach is very simple, you need to specify your object SetData method of the Object parameter, specify the same time make sure the object is serializable. In addition, you can also use KeyState property in order to drag and drop operation according to the keys pressed during to produce specific results. For example, when Ctrl key is pressed, usually by dragging the data replication. Drag text

Drag operation is the simplest realization of a TextBox control to a certain move or copy text to another TextBox control. Of course, you can also use the copy or cut and paste operations between the two TextBox controls to copy or move data, but use the drag and drop to the completion of such action will definitely be more efficient.







Recommended links:



Fans paradise - watch the GAME with three arms PPMate



Education



Easy Security And Privacy:



UIM PHS MARKET price of 700 yuan more than today



Charles Zhang: Sohu Is Looking For The Next Opponent



LIU Xu Micro point: there will be more soon to be opened Insider



A little more effort, it will become good by a qualified



Ninth Zhongguancun Computer Festival was officially opened



what is mkv format



Flv to avi converter



converting flac to MP3



PIMS And Calendars reviews



rmvb



Thursday, July 15, 2010

Agriculture: the first km and the last mile


Whenever the local Fair Day (the North called the "country fair"), Fujian Sanming City Farmers to 155 service stations will be consulting. If (right) shows

From 1994 the "Golden Agriculture Project" proposed to the current 11 years, agricultural information for farmers in the production and what have brought much change? For farmers, the information actually mean?

When the information is profoundly changing the business management and government services when the sense of "information" for those facing LOESS back overturned farmers, perhaps only "computer" and "network" synonymous. From 1994 the "Golden Agriculture Project" proposed up to now, 11 years, agricultural information for farmers in the production and what have brought much change? The following set of figures for some of us the number of heavy: At present, most of central and western regions vast majority of county and township agricultural sector, the country has not been configured computer. Although many of the agricultural sector to establish a local area network, but there are many areas of obsolete equipment and software deficiencies. China's urban telephone penetration rate of 39 to every hundred person, just six rural penetration of Internet users in animal husbandry and fisheries account for only 1.9%. "Ninth Five-Year" period, provincial, prefectural, and county agricultural sector, construction of information system for a total investment of less than 500 million yuan, equivalent to only 5 km of new highway investment.

Compared to other sectors of information technology, agricultural information is a much larger and complex system, weak information base, information awareness and backward information-investment decisions of agricultural information of "inherent." This year's central "One document" clearly calls for "strengthening the construction of agricultural information", and through information technology to improve agricultural productivity and rural information technology requests, it has been central in the reform and opening up before work on the three rural 6 "Document" is never mentioned before.

Currently, the most troubled of agricultural information is the information chain, "2": how to integrate the various departments of agricultural information resources, a unified platform for agricultural information services, access to agricultural information "first mile"; how agricultural information every family, open up agricultural information "last mile." As Minister of Agriculture Du Qinglin said: "actively promote the building of agricultural information work, should always adhere to the government at all levels and relevant departments for the macro-oriented agricultural production and management services and micro services as those who promote the agricultural information the starting point and end point. "

Access to the "first mile"

Sanming City, Fujian Province, "96155" (agriculture to services, homophonic) hotline has been known for local farmers. But, who knows the "155" behind a huge collection of agricultural, animal husbandry and forestry resources, agricultural resources and a platform of services by the team of experts from various quarters.

"To achieve one-stop service, you have to have a strong contingent of information resources and services." Sanming City, said Agriculture Secretary Lin Shaoqin. Changes in the agricultural sector, agricultural services 155 "Agriculture" of the traditional model, integrating all the resources of agriculture sector through the computer network, telephone, video systems and other modern means of free and convenient for farmers to provide efficient, full service.

Who can understand the difficult integration of resources behind it? Six years, Lin Shaoqin running all over the county in Sanming City and the following to all agriculture-related departments. In order for these departments to create a site set aside some funds in order to achieve integration of network resources, Lin Shaoqin worn lip service, at times, "why withstood the pressure, their own money." Now, "155 model" to mature in the model to other counties, townships to promote the process, Lin Shaoqin biggest problem remains the integration of various related departments of agricultural resources.

At present, there are still nearly a quarter of the county did not establish agricultural information service platform, more than half of the township failed to establish rural information service stations, to a certain extent, there is duplication of information resources issues. Ministry of Agriculture Fan Xiaojian, vice minister of China's agricultural resources development will be described as a horizontal "information island" and vertical "sites identical." Horizontal "information island" performance in the agriculture sector is not smooth communication and information exchange system is imperfect, can not be achieved agriculture-related information sharing. Agricultural sector and agriculture sector have their own information resources, but have not established an effective co-ordination mechanisms. Vertical "sites similar" performance in the central and local agricultural information website content duplicate, not around the features, even the implementation of certain information in a unified data standard. Agriculture-related sites around the country of 1.8 million homes, but these sites are of variable quality.

In order to integrate agricultural information resources, in 2002 started the wheat, corn and other agricultural monitoring and forecasting work, started in agriculture, animal husbandry, Shui Chan, land reclamation, agricultural and other fields, Xin Xi acquisition channels and established information-sharing mechanisms, potential domestic and international market supply and demand Zong predicted and analyzed. In 2003, started the society launched the "Economic Information Department of Agriculture released the calendar," all walks of life regularly publish information. In order to completely break the "information island" and "similar sites", in 2004, the Ministry of Agriculture decided that the next few years will establish a nationwide monitoring and warning system of agriculture, agricultural products and promote service systems, agricultural price information system, agricultural science and technology joint services systems and agricultural market information system monitoring. Through these five information service system construction, development and integration of domestic and international resources, to build a extends to the county's rural information service network in 31 provinces, Xinjiang Production and Construction Jianlinongye data center, more than 90% of the county establish agricultural information platform, 70% of the township to establish rural information service stations.

In 2005, the agricultural information resources integration is still one of the highlights of agricultural information. At present, there are nine provinces and autonomous regions Agricultural Information Centre by E-mail a daily or occasional Agricultural Information Network to send information, agricultural information network in China will receive part of the provinces and municipalities of E-mail messages and from the provinces, autonomous regions extract information on the city Web site, loaded into the editing made in the Rural Information System (WCM) platform, database editing made available for use in the release. In the next few years, their own way how to resolve the division's Web site, open up agricultural information resources horizontal vertical agricultural information work is still important and difficult.

Open up the "last mile"

Compared to access the "first mile", in recent years opened up "last mile" to achieve the pattern of agricultural information to explore the real ground can be described as flourishing, Fujian "155 model", Gansu Province, "urn model" Hebei "Three of a room "Mode ... ... around the administrative system for the existing agricultural, or reform, or subversion, the emergence of a time-tested model, in these models, the agricultural information to start a little penetration to the fields.

"Last mile" of information technology in agriculture last link is the most difficult part. The existing administrative system of agriculture, the rural villages are often located in agricultural technology station, with an agricultural technician, farmers have difficulties to find the ATM station. Changes in the system, the agricultural administrative system also suffered a "labor pains", the ATM stations unable to pay wages, most of all agricultural technician to make a living overseas, many agricultural technology station idle. Information chain through the cities, towns, villages, farmers in the last link in the stuck shell.

In addressing the "last mile" attempt, "Three-One Office" (TV, computer, telephone, room service agricultural science and technology) are combined is the most common practice. Gaocheng City in Hebei Province through the establishment of "vitalizing Agriculture Information Network", the establishment of a fixed feature of agricultural television program "Gaocheng agriculture", opened 96 356 information hotline to provide agricultural information services to local farmers, but also to agriculture and information technology services to the Office for the service window To take the initiative to seek them out to provide services to farmers. This "Three-One Office" mode has also been used in many places, but the big cost in this way, if you do not do a good job overall planning, the information is likely to become repeat.

In addition to "Three of a room", Gansu and Fujian are opened up "last mile" on a pioneering attempt to practice. They broke the existing agricultural system, for the landing of agricultural information has provided valuable experience.

In 2000, Chen Juntao sent from the provincial government under the testing exercise of Jinta County deputy county magistrate, he found Jinta County in the agricultural information that there is a fault: on the one hand, the majority of the county's economic management with a computer network equipment, has an abundance of agricultural information; the other hand, very few farmers home computer, "Some villages have only one computer in the village, the village head is not to everyone with a locked door." "'last km 'lack of social and rural isolation of the network connection, the grassroots and often inaccessible to agricultural information services. "Chen Juntao said.

In 2001, Chen Juntao's initiative, Jinta County school opened up to create a "last mile" of the "urn model": Jinta County Information Network Center established at the county level, using the network, in the "urn economy Information Network "information platform to set the" Economic Information Guide "section, two per month, from the county's various departments and other web sites to collect all kinds of agricultural and market information, and then the village primary school in the county set up information point, from the village primary school students under the guidance of the teacher to download print Information Review, and after school to bring parents and neighbors. Feedback from farmers is also from the students return to school after the school collected in the form of e-mail back to the county information center.

"Urn model" in the landing pattern of agricultural information in a completely abandon the current administrative system of agriculture, the rural village primary school of information technology into the system, made a bold attempt. However, the school's mission is to teach knowledge, is not responsible for the dissemination of agricultural information on how to establish an effective evaluation mechanism? County Information Centre has the power to require schools to transmit information to download the Parents Guide and the collection of feedback information as a teacher's assessment project? The needs of farmers layers of information to reach the county by the school information center, and then layers of feedback from the schools down, in such a process, who is on the effectiveness and timeliness of the information is responsible?

Gansu Jinta chose to overturn the traditional mode of information released, and Lin Shaoqin was chosen to "improve" the realization of the agricultural information arrival. Sanming Meliet foreign X墨 is a mountain town area, more than 20 kilometers from the city of Sanming. Yang X墨 155 service stations to ATM Agricultural Station, fruit stand, livestock stations, epidemic prevention station, administered by the stations together, administered by the Station Officer Gong Xuejiao service station, as the 155. Whenever the local Fair Day (the North called the "country fair"), there have been farmers where to buy seeds come in consultation, where to buy fertilizer. Simple question, Gong Xuejiao can answer in person; if run into complex problems, or on the Internet searching for answers to the "155" service team expert for help.

Information to the ATM station is "155" model developed to explore this year's new. Previously, "155" model is to rely on farmers to call the hotline telephone, through the active assistance of farmers, and then mobilize the "155" behind the agricultural service resources. Changes in agricultural technology station functions, development of "agricultural economy" and would "155" approach to further solidify down. However, "155" is still a passive mode, "can not always sit at home and other farmers to seek them out, how to take the initiative in agricultural information sent to the peasants at home?" How active and passive integrating the Lin Shaoqin next year We should continue to think about.






相关链接:



Power AAC Mixer



vob converter free DOWNLOAD



Bluesea Flash to Blackberry FLV SWF



ts file Extension



WorldCup DVD to Blackberry



Topaz Moment, Production Edition



LasVegas DVD to PSP



Youtube Movie To Xbox Deluxe



My Favorite Launchers And Task Managers



AVC-FREE



Shop Teaching And Training Tools



Professional VOB to MPEG Apple TV



WHAT is a vob file



Tuesday, June 29, 2010

Bliss MP3 OGG to WAVE Maker

Bliss MP3 OGG to WAVE Maker allows you to convert audio/video files between WAV, OGG Vorbis, MP3, MP2, WMA, AAC.Using Audio Converter you can convert audio/video files from one format to another, specify frequency, number of channels, bitrate and other parameters of your output files before you convert your audio files. Bliss MP3 OGG to WAVE Maker - The application has very user-friendly interface. The application supports AVI, Divx, Xvid, MPEG1, MPEG2, ASF, WMV, DAT, H264, H263, RM, RMVB; specifies the location of the output audio files before converting, visually judges the progress of the audio conversion process. Convert CD to MP3, CDA, CD-R, DVD-Audio, AAC, AC3, ID3, M3U, M4A, M4P, MP3 ID3 Tag, OGG, RA, WAV, WMA, MP2, APE, VQF, MPC, AMR, Midi, WAVE, and RM Vorbis with excellent output quality and high ripping speed. Rich Options of MP3 Encoder, WMA Encoder and OGG Encoder. Support MP3 and OGG from 6,000 to 48000 sample rate. With a small TAG editor built in. You can easily edit File's (MP3 / WMA / OGG Vorbis) TAG information. Supports freedb function. Get title, artist and album information from remote FreeDB server.



Recommand Link:



RZ 3GP Converter



!1 Power Video To Audio Converter



Top DVD to iPod Converter Tools



How to convert video to Sony NWZ-E443



Youtube FLV to MAC PACK



Timers AND Time Synch evaluation



Media SHOW XP



Youtube Video to Cell Phone Popular



Christmas-Idea DVD to PS2 Pocket PC



Wizard Install And Setup



Top DVD Audio Ripper



Rmvb



Explosion WMV Converter



Review DESKTOP



Koobo iPod MP4 Video Converter



VIDMEX



Thursday, June 17, 2010

Digital MP3 CD-R RM to AAC Copy

Digital MP3 CD-R RM to AAC Copy can download disc information from the CDDB (Internet Compact Disc Database). It supports CDDB(Internet Compact Disc Database),the biggest free online CD information, by which you can get the CD album, artist, track titles and much more CD information from Internet. There is a audio converter built in Super CD to WMA Maker, which supports converting MP3, CD, CDA, CD-R, DVD-Audio, AAC, AC3, ID3, M3U, M4A, M4P, MP3 ID3 Tag, OGG, RA, WAV, WMA, MP2, APE, VQF, MPC, AMR, Midi, WAVE, and RM from one format to another. You get two softwares if you purchase Super Cd to WMA Maker - CD to WMA Converter and Audio Converter! Super Cd to WMA Maker - CD to WMA Converter .



Recommand Link:



Expert Seasonal - Screen Savers



RER Video to iPod Converter



SuperBurner DVD to Youtube



tech Text



SuperBurner iPod CONVERTER



How-to DVD To M4V



Top Casino And GAMBLING



SuperBurner DVD Cloner



Dial Up AND Connection Tools Expert



Video To Cowon O2PMP Converter



!1 POWER ID3 Editor



Explosion DVD Creator



Audio Record Expert



Saturday, June 12, 2010

Youtube FLV to PS2 Box

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports YouTube video or any .flv and .swf file as input file. Supports not only YouTube video, but also various video formats as input file, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Supports a wide variety of output file format., including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Provides various profiles, these profiles can meet the needs of most people. - is the most powerful YouTube assistant on the planet.



Recommand Link:



WAV to CD-R Maker



Directory Desktop



high quality utilities download



Lohan RMVB to DVD



WorldCup MPEG to AVI



Evaluate Terminal And Telnet CLIENTS



Best Audio CD Burners



Lohan AVI CONVERTER



Okoker All Video Splitter



AllRipper DVD to Xbox



HOPE RM to 3GP



CoreWare DVD TO PSP Converter



SWiJ FLV to All Converter



Merry MP3 RA WMA to CD Editing



Bliss MP3 RA M4P to ID3 Editing



Awave Studio



wma to mp3 converter



Friday, June 11, 2010

Youtube FLV to WMV Software

Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Supports YouTube video or any .flv and .swf file as input file. Supports not only YouTube video, but also various video formats as input file, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Supports a wide variety of output file format., including avi, DivX, XviD, rm, rmvb, MOV, MPEG, WMV. Provides various profiles, these profiles can meet the needs of most people. - is the most powerful YouTube assistant on the planet.



Recommand Link:



Zune to AAC Deluxe



Youtube to iPod PROGRAM



Ever MP2 ID3 To MP3 ID3 Tag Editing



FTP Clients Directory



Compare Printer



WondSoft DVD to iPhone Video Converter



MERRY Audio VQF to MP2 Maker



High quality utilities download



Merry Audio APE To VQF Copier



Youtube MOVIE to MAC Application



Font Tools Report



Bluesea CD-R Sound AMR to RM Editing



Youtube to FLV UTILITY



Open DVD to PS3



Bliss CD MP2 AAC to AMR Copying



Youtube FLV to 3G2 Gold



Professional Flash SWF to DVD



Sunday, May 30, 2010

Youtube Video Backup + Converter Live

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports "Drag and Drop" video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.



Recommand Link:



New Hobby



Youtube FLV To Psion Software



MOVIESAVER 2.0



Virtual Music Composer



M4P to CD Suite



DigiMode Maya



Swift MPEG to AVI M4V FLV



Evaluate File Compression



Youtube Movie to Xbox Popular



Premier Kids Education



cool software Download site



Youtube Video Download + Converter Store



iPod AUDIOBOOK



Youtube Movie to VOB Home



Ever CD RA AC3 to AAC Converter



Power 3GP/iPod/PSP Video Converter