<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-6064719148837444379</id><updated>2009-12-22T13:11:07.881-08:00</updated><title type='text'>Cplusplus Source Code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default?start-index=26&amp;max-results=25'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-9182554613612210782</id><published>2008-06-10T07:38:00.001-07:00</published><updated>2008-06-10T07:38:38.525-07:00</updated><title type='text'>Streaming SIMD Extensions 2 Instructions</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Microsoft SpecificThis section describes the C/C++ language-level features supporting the Streaming SIMD Extensions 2 (SSE2) instructions:&lt;br /&gt;Floating-Point Intrinsics Using Streaming SIMD Extensions 2 Instructions that describe the intrinsic operations for the double-precision, floating-point data type (__m128d).&lt;br /&gt;Integer Intrinsics Using Streaming SIMD Extensions 2 that describe the intrinsics for the extended-precision integer data type (__m128i).&lt;br /&gt;Other topics discussed in this section include:&lt;br /&gt;Floating-Point Memory and Initialization Operations Using Streaming SIMD Extensions 2&lt;br /&gt;Cache Support for Streaming SIMD Extensions 2 Floating-Point Operations&lt;br /&gt;Integer Memory and Initialization Using Streaming SIMD Extensions 2&lt;br /&gt;Cache Support for Streaming SIMD Extensions 2 Integer Operations&lt;br /&gt;Macro Function for Shuffle Using Streaming SIMD Extensions 2&lt;br /&gt;The emmintrin.h header file contains the declarations for the SSE2 instructions intrinsics. The file dvec.h contains operator overloads for some of the SSE2 instructions intrinsics, which are available for use in C++ programs.&lt;br /&gt;SSE2 intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE2 intrinsics that use the __m64 data type are not supported on x64 processors.&lt;br /&gt;END Microsoft Specific&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-9182554613612210782?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/9182554613612210782/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=9182554613612210782' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/9182554613612210782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/9182554613612210782'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/streaming-simd-extensions-2.html' title='Streaming SIMD Extensions 2 Instructions'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-2828428495143953366</id><published>2008-06-10T07:36:00.000-07:00</published><updated>2008-06-10T07:37:27.644-07:00</updated><title type='text'>Streaming SIMD Extensions (SSE)</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Microsoft SpecificThis section describes the C/C++ language-level features supporting SSE. The following features of the intrinsics are explained:&lt;br /&gt;Streaming SIMD Extensions Supported by 3DNow!&lt;br /&gt;Floating-Point Intrinsics Using Streaming SIMD Extensions&lt;br /&gt;Miscellaneous Intrinsics Using Streaming SIMD Extensions&lt;br /&gt;Memory and Initialization Using Streaming SIMD Extensions&lt;br /&gt;Integer Intrinsics Using Streaming SIMD Extensions&lt;br /&gt;Cache Support Using Streaming SIMD Extensions&lt;br /&gt;In addition, the following macro functions are described:&lt;br /&gt;Macro Function for Shuffle Using Streaming SIMD Extensions&lt;br /&gt;Macro Functions to Read and Write the Control Registers&lt;br /&gt;Macro Function for Matrix Transposition&lt;br /&gt;The header file xmmintrin.h contains the declarations for the SSE intrinsics. The file fvec.h contains operator overloads for some of the SSE intrinsics, which are available for use in C++ programs.&lt;br /&gt;SSE intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE intrinsics that use the __m64 data type are not supported on x64 processors.&lt;br /&gt;END Microsoft Specific&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-2828428495143953366?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/2828428495143953366/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=2828428495143953366' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2828428495143953366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2828428495143953366'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/streaming-simd-extensions-sse.html' title='Streaming SIMD Extensions (SSE)'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-1499540259030838401</id><published>2008-06-10T07:35:00.000-07:00</published><updated>2008-06-10T07:36:04.657-07:00</updated><title type='text'>AMD 3DNow! Technology Overview and Intrinsics</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Microsoft SpecificThe AMD 3DNow! technology is a group of instructions that opens the traditional processing bottlenecks for multimedia and floating-point-intensive applications. The 3DNow! technology enables faster frame rates on high-resolution scenes, much better physical modeling of real-world environments, sharper and more detailed 3D imaging, smoother video playback, and near-theater–quality audio.&lt;br /&gt;The 3DNow! technology is compatible with today's existing x86 software and requires no operating system support, allowing 3DNow! applications to work with all existing operating systems. This technology is implemented by processors from AMD beginning with AMD-K6-2, AMD-K6-III, and AMD Athlon processors.&lt;br /&gt;Beginning with the AMD Athlon processor, 3DNow! technology has been enhanced to add five new 3DNow! digital signal processing (DSP) instructions and 19 MMX Extensions, including streaming functionality.&lt;br /&gt;This overview of AMD 3DNow! technology contains the following sections:&lt;br /&gt;Key Functionality&lt;br /&gt;Feature Detection&lt;br /&gt;Register Set&lt;br /&gt;Data Types&lt;br /&gt;3DNow! Instruction Formats&lt;br /&gt;Intrinsics Overview&lt;br /&gt;Task Switching&lt;br /&gt;Exceptions&lt;br /&gt;Prefixes&lt;br /&gt;3DNow! Intrinsics&lt;br /&gt;END Microsoft Specific&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-1499540259030838401?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/1499540259030838401/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=1499540259030838401' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1499540259030838401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1499540259030838401'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/amd-3dnow-technology-overview-and.html' title='AMD 3DNow! Technology Overview and Intrinsics'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-2853535642031892493</id><published>2008-06-10T07:33:00.000-07:00</published><updated>2008-06-10T07:35:08.726-07:00</updated><title type='text'>Intel Overview of New Instructions and Extensions</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Microsoft Specific&lt;br /&gt;The Pentium III Processor and other processors such as the Pentium processor with MMX technology and Pentium II processor have instructions to enable development of optimized multimedia applications. The instructions are implemented through extensions to previously implemented instructions. This technology uses the single-instruction, multiple-data (SIMD) technique. By processing data elements in parallel, applications with media-rich bitstreams can significantly improve performance by using SIMD instructions.&lt;br /&gt;You can access the Intel performance libraries at http://developer.intel.com/.&lt;br /&gt;The most direct way to use these instructions is to inline the assembly language instructions into your source code. However, this can be time consuming and tedious. Instead, Intel provides easy implementation by using API extension sets, referred to as intrinsics.&lt;br /&gt;Intrinsics Availability on Intel Processors&lt;br /&gt;Processors MMX technology intrinsics Streaming SIMD Extensions (SSE) Streaming SIMD Extensions 2 (SSE2) instructions Processors that support SSE2YesYesYesPentium III YesYesNot availablePentium II YesNot availableNot availablePentium with MMX technologyYesNot availableNot availablePentium Pro Not availableNot availableNot availablePentium Not availableNot availableNot available&lt;br /&gt;The following topics are covered:&lt;br /&gt;Benefits of Using Intrinsics&lt;br /&gt;Intrinsic Conventions&lt;br /&gt;Intrinsic Categories and Supporting Extensions&lt;br /&gt;END Microsoft Specific&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-2853535642031892493?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/2853535642031892493/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=2853535642031892493' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2853535642031892493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2853535642031892493'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/intel-overview-of-new-instructions-and.html' title='Intel Overview of New Instructions and Extensions'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-6368944435880894407</id><published>2008-06-10T07:31:00.000-07:00</published><updated>2008-06-10T07:32:38.013-07:00</updated><title type='text'>Compiler Support for the MMX, SSE, and SSE2 Intrinsics</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Microsoft SpecificTo support the use of MMX, SSE, and SSE2 intrinsics, the compiler includes the following features:&lt;br /&gt;Data alignment&lt;br /&gt;Inline assembly&lt;br /&gt;Data AlignmentPreviously, alignment issues in programs were addressed either by the compiler or directly in hardware. Also, any alignment changes needed for a program to run correctly were automatically enabled. However, with the advent of intrinsic support, the user must take a more active role to guarantee that alignment issues are appropriately addressed.&lt;br /&gt;Many of the new intrinsics have data alignment requirements. If these intrinsics are used and data is not appropriately aligned, the program will throw an exception that must be handled by the program; otherwise, the program will fault.&lt;br /&gt;The new intrinsics require aligned data to allow better performance. With the size of new registers implemented to support the new, enhanced instruction sets, new alignment requirements were defined to make the best use of recent cache architectures. Specific alignment requirements for each intrinsic can be found in the documentation for the intrinsic.&lt;br /&gt;There are different tools to specify appropriate rules for the alignment of data. For alignment of user declared variables, for example, static or automatic data, refer to the align section documentation. For data dynamically allocated from the heap, refer to the data alignment functions.&lt;br /&gt;Note The __m64, __m128, __m128i and __m128d new data types already have an alignment value.&lt;br /&gt;align&lt;br /&gt;__alignof&lt;br /&gt;Inline AssemblyThe compiler supports use of intrinsic assembly instructions in inline assembly (__asm) blocks. The compiler also accepts the new syntax MMWORD PTR and XMMWORD PTR to refer to 64- and 128-bit data.&lt;br /&gt;END Microsoft SpecificFor information on how to detect the capabilities of a CPU, see CPUID&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-6368944435880894407?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/6368944435880894407/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=6368944435880894407' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/6368944435880894407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/6368944435880894407'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/compiler-support-for-mmx-sse-and-sse2.html' title='Compiler Support for the MMX, SSE, and SSE2 Intrinsics'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-757952537969480023</id><published>2008-06-10T07:29:00.000-07:00</published><updated>2008-06-10T07:31:00.294-07:00</updated><title type='text'>MMX, SSE, and SSE2 Intrinsics</title><content type='html'>&lt;span style="color:#ffff00;"&gt;This section discusses intrinsic support for the enhanced instruction sets supported by Intel and Advanced Micro Devices (AMD) processors.&lt;br /&gt;Microsoft SpecificCompiler Support for the MMX, SSE, and SSE2 Intrinsics&lt;br /&gt;Intel Technology Overview of New Instructions and Extensions&lt;br /&gt;AMD 3DNow! Technology Overview and Intrinsics&lt;br /&gt;MMX Technology&lt;br /&gt;Streaming SIMD Extensions (SSE)&lt;br /&gt;Streaming SIMD Extensions 2 (SSE2) Instructions&lt;br /&gt;An intrinsic is a function known by the compiler that directly maps to a sequence of one or more assembly language instructions. Intrinsic functions are inherently more efficient than called functions because no calling linkage is required.&lt;br /&gt;Intrinsics make the use of processor-specific enhancements easier because they provide a C/C++ language interface to assembly instructions. In doing so, the compiler manages things that the user would normally have to be concerned with, such as register names, register allocations, and memory locations of data.&lt;br /&gt;For information on how to detect the capabilities of a CPU, see CPUID Sample: Determines CPU Capabilities.&lt;br /&gt;All the MMX, SSE and SSE2 intrinsics are only available as intrinsics, thus, they are not affected by the setting of /Oi, and #pragma function may not be used on them.&lt;br /&gt;END Microsoft Specific&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-757952537969480023?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/757952537969480023/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=757952537969480023' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/757952537969480023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/757952537969480023'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/mmx-sse-and-sse2-intrinsics.html' title='MMX, SSE, and SSE2 Intrinsics'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-1829493460349708616</id><published>2008-06-10T07:23:00.000-07:00</published><updated>2008-06-10T07:28:46.823-07:00</updated><title type='text'>Exception Handling in Visual C++</title><content type='html'>&lt;span style="color:#ffff00;"&gt;Robust code anticipates and handles exceptions. Exceptions occur when a program executes abnormally because of conditions outside the program's control. Certain operations, including object creation and file input/output, are subject to failures that go beyond errors. Out-of-memory conditions, for example, can occur even when your program is running correctly.&lt;br /&gt;Abnormal situations should be handled by throwing and catching exceptions. Such situations are not the same as normal error conditions, such as a function executing correctly, but returning a result code indicating an error. A normal error condition, for example, would be a file status function indicating that a file does not exist. For normal error conditions, the program should examine the error code and respond appropriately.&lt;br /&gt;Abnormal situations are also not the same as erroneous execution, in which, for example, the caller makes a mistake in passing arguments to a function or calls it in an inappropriate context. For erroneous execution, test your inputs and other assumptions with an assertion (see Using Assertions).&lt;br /&gt;Visual C++ supports three kinds of exception handling:&lt;br /&gt;C++ exception handling&lt;br /&gt;Although structured exception handling works with C and C++ source files, it is not specifically designed for C++. For C++ programs, you should use C++ exception handling.&lt;br /&gt;Structured exception handling&lt;br /&gt;Windows supplies its own exception mechanism, called SEH. It is not recommended for C++ or MFC programming. Use SEH only in non-MFC C programs.&lt;br /&gt;MFC exceptions&lt;br /&gt;Since version 3.0, MFC has used C++ exceptions but still supports its older exception handling macros, which are similar to C++ exceptions in form. The older MFC exception handling macros have been supported since version 1.0. Although these macros are not recommended for new programming, they are still supported for backward compatibility. In programs that already use the macros, you can freely use C++ exceptions as well. During preprocessing, the macros evaluate to the exception handling keywords defined in the Visual C++ implementation of the C++ language as of Visual C++ version 2.0. You can leave existing exception macros in place while you begin to use C++ exceptions.&lt;br /&gt;Do not mix the error handling mechanisms; for example, do not use C++ exceptions with SEH. For advice about mixing MFC macros and C++ exceptions, see Exceptions: Using MFC Macros and C++ Exceptions.&lt;br /&gt;For information on handling exceptions in CLR applications, see Exception Handling under /clr.&lt;br /&gt;For information about exception handling on x64 processors, see Exception Handling (x64).&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-1829493460349708616?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/1829493460349708616/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=1829493460349708616' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1829493460349708616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1829493460349708616'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/exception-handling-in-visual-c.html' title='Exception Handling in Visual C++'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-4259697884865388151</id><published>2008-06-10T07:18:00.000-07:00</published><updated>2008-06-10T07:23:26.581-07:00</updated><title type='text'>Calling Conventions</title><content type='html'>&lt;span style="color:#ffff00;"&gt;This section describes the process that one function (caller) makes call into another function (callee).&lt;br /&gt;For prototyped functions, all arguments are converted to the expected callee types before passing.&lt;br /&gt;Parameter Passing&lt;br /&gt;Varargs&lt;br /&gt;Unprototyped Functions&lt;br /&gt;Return Values&lt;br /&gt;Caller/Callee Saved Registers&lt;br /&gt;Function Pointers&lt;br /&gt;Legacy Floating-Point Support&lt;br /&gt;FpCsr&lt;br /&gt;MXCSR&lt;br /&gt;setjmp/longjump&lt;br /&gt;The Visual C/C++ compiler provides several different conventions for calling internal and external functions. Understanding these different approaches can help you debug your program and link your code with assembly-language routines.&lt;br /&gt;The topics on this subject explain the differences between the calling conventions, how arguments are passed, and how values are returned by functions. They also discuss naked function calls, an advanced feature that enables you to write your own prolog and epilog code.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-4259697884865388151?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/4259697884865388151/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=4259697884865388151' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4259697884865388151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4259697884865388151'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/calling-conventions.html' title='Calling Conventions'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-1628198798648446523</id><published>2008-06-10T06:22:00.000-07:00</published><updated>2008-06-10T06:28:21.883-07:00</updated><title type='text'>Create Directory</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MeJernKB7_c/SE6A9Rn5RrI/AAAAAAAAAUo/e01AEqdl2mc/s1600-h/Create+Directory.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210243609105352370" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MeJernKB7_c/SE6A9Rn5RrI/AAAAAAAAAUo/e01AEqdl2mc/s320/Create+Directory.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My57 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;using namespace System::IO;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Button^ BtnCreateDirectory;&lt;br /&gt;private: System::Windows::Forms::TextBox^ txtDirectoryName;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Label^ lbl;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;BtnCreateDirectory = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;txtDirectoryName = (gcnew System::Windows::Forms::TextBox());&lt;br /&gt;this-&gt;lbl = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// BtnCreateDirectory&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;BackColor = System::Drawing::Color::FromArgb(static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(64)),&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(0)), static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(64)));&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;ForeColor = System::Drawing::Color::White;&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Location = System::Drawing::Point(11, 88);&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Name = L"BtnCreateDirectory";&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Size = System::Drawing::Size(266, 94);&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Text = L"Create Directory";&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;UseVisualStyleBackColor = false;&lt;br /&gt;this-&gt;BtnCreateDirectory-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnCreateDirectory_Click);&lt;br /&gt;//&lt;br /&gt;// txtDirectoryName&lt;br /&gt;//&lt;br /&gt;this-&gt;txtDirectoryName-&gt;BackColor = System::Drawing::Color::FromArgb(static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(255)),&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(255)), static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(128)));&lt;br /&gt;this-&gt;txtDirectoryName-&gt;ForeColor = System::Drawing::Color::Blue;&lt;br /&gt;this-&gt;txtDirectoryName-&gt;Location = System::Drawing::Point(21, 48);&lt;br /&gt;this-&gt;txtDirectoryName-&gt;Name = L"txtDirectoryName";&lt;br /&gt;this-&gt;txtDirectoryName-&gt;Size = System::Drawing::Size(256, 20);&lt;br /&gt;this-&gt;txtDirectoryName-&gt;TabIndex = 1;&lt;br /&gt;//&lt;br /&gt;// lbl&lt;br /&gt;//&lt;br /&gt;this-&gt;lbl-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lbl-&gt;ForeColor = System::Drawing::Color::Yellow;&lt;br /&gt;this-&gt;lbl-&gt;Location = System::Drawing::Point(17, 16);&lt;br /&gt;this-&gt;lbl-&gt;Name = L"lbl";&lt;br /&gt;this-&gt;lbl-&gt;Size = System::Drawing::Size(89, 13);&lt;br /&gt;this-&gt;lbl-&gt;TabIndex = 2;&lt;br /&gt;this-&gt;lbl-&gt;Text = L"Directory Name : ";&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;BackColor = System::Drawing::Color::FromArgb(static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(255)), static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(128)),&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(128)));&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 197);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lbl);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;txtDirectoryName);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnCreateDirectory);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;this-&gt;PerformLayout();&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Create Directory&lt;br /&gt;private: System::Void BtnCreateDirectory_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;if(txtDirectoryName-&gt;Text!="")&lt;br /&gt;{&lt;br /&gt;Directory::CreateDirectory("C:\\"+txtDirectoryName-&gt;Text);&lt;br /&gt;MessageBox::Show("Create Directory Completed");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-1628198798648446523?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/1628198798648446523/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=1628198798648446523' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1628198798648446523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1628198798648446523'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/create-directory.html' title='Create Directory'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeJernKB7_c/SE6A9Rn5RrI/AAAAAAAAAUo/e01AEqdl2mc/s72-c/Create+Directory.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-560443092485013848</id><published>2008-06-09T23:49:00.001-07:00</published><updated>2008-06-09T23:51:39.408-07:00</updated><title type='text'>Scroll Form</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE4kX-3MepI/AAAAAAAAAUY/sihTDMb7XRs/s1600-h/Scroll+Form.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210141813344336530" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE4kX-3MepI/AAAAAAAAAUY/sihTDMb7XRs/s320/Scroll+Form.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My56 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Button^ BtnScrollForm;&lt;br /&gt;private: System::Windows::Forms::PictureBox^ PctImage;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));&lt;br /&gt;this-&gt;BtnScrollForm = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;PctImage = (gcnew System::Windows::Forms::PictureBox());&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;PctImage))-&gt;BeginInit();&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// BtnScrollForm&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnScrollForm-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;BtnScrollForm-&gt;Name = L"BtnScrollForm";&lt;br /&gt;this-&gt;BtnScrollForm-&gt;Size = System::Drawing::Size(332, 45);&lt;br /&gt;this-&gt;BtnScrollForm-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;BtnScrollForm-&gt;Text = L"Scroll Form";&lt;br /&gt;this-&gt;BtnScrollForm-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnScrollForm-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnScrollForm_Click);&lt;br /&gt;//&lt;br /&gt;// PctImage&lt;br /&gt;//&lt;br /&gt;this-&gt;PctImage-&gt;Image = (cli::safe_cast&lt;/span&gt;&lt;system::drawing::image^&gt;&lt;span style="color:#ffffff;"&gt;(resources-&gt;GetObject(L"PctImage.Image")));&lt;br /&gt;this-&gt;PctImage-&gt;Location = System::Drawing::Point(13, 73);&lt;br /&gt;this-&gt;PctImage-&gt;Name = L"PctImage";&lt;br /&gt;this-&gt;PctImage-&gt;Size = System::Drawing::Size(715, 344);&lt;br /&gt;this-&gt;PctImage-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;PctImage-&gt;TabStop = false;&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(357, 125);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;PctImage);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnScrollForm);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;PctImage))-&gt;EndInit();&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Scroll Form&lt;br /&gt;private: System::Void BtnScrollForm_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;AutoScroll=true;&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Scroll Form";&lt;br /&gt;this-&gt;BackColor=Color::AliceBlue;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;BtnScrollForm-&gt;BackColor=Color::Black;&lt;br /&gt;BtnScrollForm-&gt;ForeColor=Color::White;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::drawing::image^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::drawing::image^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::drawing::image^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-560443092485013848?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/560443092485013848/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=560443092485013848' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/560443092485013848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/560443092485013848'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/scroll-form.html' title='Scroll Form'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE4kX-3MepI/AAAAAAAAAUY/sihTDMb7XRs/s72-c/Scroll+Form.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-2015253105973245811</id><published>2008-06-09T23:30:00.000-07:00</published><updated>2008-06-09T23:39:57.638-07:00</updated><title type='text'>Region Form</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE4hUKJvUkI/AAAAAAAAAUQ/JJHpX8aNOO4/s1600-h/Region+Form.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210138449120547394" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE4hUKJvUkI/AAAAAAAAAUQ/JJHpX8aNOO4/s320/Region+Form.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My55 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 266);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;DoubleClick += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_DoubleClick);&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Region Form&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;FormBorderStyle=Windows::Forms::FormBorderStyle::None;&lt;br /&gt;this-&gt;BackgroundImageLayout=Windows::Forms::ImageLayout::Stretch;&lt;br /&gt;this-&gt;BackgroundImage=Image::FromFile("C:\\Character.BMP");&lt;br /&gt;this-&gt;TransparencyKey=Color::Black;&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_DoubleClick(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Close();&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-2015253105973245811?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/2015253105973245811/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=2015253105973245811' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2015253105973245811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2015253105973245811'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/region-form.html' title='Region Form'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE4hUKJvUkI/AAAAAAAAAUQ/JJHpX8aNOO4/s72-c/Region+Form.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-1250353294171248205</id><published>2008-06-09T23:17:00.000-07:00</published><updated>2008-06-09T23:27:59.415-07:00</updated><title type='text'>Return Value in Function</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MeJernKB7_c/SE4esCLyFlI/AAAAAAAAAUI/5j7G3b5EwZY/s1600-h/Return+Value+In+Function.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210135560763610706" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MeJernKB7_c/SE4esCLyFlI/AAAAAAAAAUI/5j7G3b5EwZY/s320/Return+Value+In+Function.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My54 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Button^ BtnReturn;&lt;br /&gt;private: System::Windows::Forms::Label^ lblReturnValue;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;BtnReturn = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;lblReturnValue = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// BtnReturn&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnReturn-&gt;BackColor = System::Drawing::Color::FromArgb(static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(64)), static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(0)),&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::int32&gt;&lt;span style="color:#ffffff;"&gt;(static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(64)));&lt;br /&gt;this-&gt;BtnReturn-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;BtnReturn-&gt;ForeColor = System::Drawing::Color::White;&lt;br /&gt;this-&gt;BtnReturn-&gt;Location = System::Drawing::Point(12, 66);&lt;br /&gt;this-&gt;BtnReturn-&gt;Name = L"BtnReturn";&lt;br /&gt;this-&gt;BtnReturn-&gt;Size = System::Drawing::Size(268, 63);&lt;br /&gt;this-&gt;BtnReturn-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;BtnReturn-&gt;Text = L"Return Value";&lt;br /&gt;this-&gt;BtnReturn-&gt;UseVisualStyleBackColor = false;&lt;br /&gt;this-&gt;BtnReturn-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnReturn_Click);&lt;br /&gt;//&lt;br /&gt;// lblReturnValue&lt;br /&gt;//&lt;br /&gt;this-&gt;lblReturnValue-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblReturnValue-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;lblReturnValue-&gt;ForeColor = System::Drawing::Color::Yellow;&lt;br /&gt;this-&gt;lblReturnValue-&gt;Location = System::Drawing::Point(12, 25);&lt;br /&gt;this-&gt;lblReturnValue-&gt;Name = L"lblReturnValue";&lt;br /&gt;this-&gt;lblReturnValue-&gt;Size = System::Drawing::Size(114, 18);&lt;br /&gt;this-&gt;lblReturnValue-&gt;TabIndex = 2;&lt;br /&gt;this-&gt;lblReturnValue-&gt;Text = L"Return Value :";&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;BackColor = System::Drawing::SystemColors::ControlDark;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 142);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblReturnValue);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnReturn);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Return Value In Function";&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;this-&gt;PerformLayout();&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Return Value in Function&lt;br /&gt;int Ch_X;&lt;br /&gt;int MoveX(int Step)&lt;br /&gt;{&lt;br /&gt;Ch_X+=Step;&lt;br /&gt;return Ch_X;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnReturn_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;lblReturnValue-&gt;Text="Return Value : "+MoveX(2);&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::int32&gt;&lt;system::byte&gt;&lt;system::byte&gt;&lt;system::byte&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;/system::byte&gt;&lt;/system::int32&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-1250353294171248205?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/1250353294171248205/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=1250353294171248205' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1250353294171248205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1250353294171248205'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/return-value-in-function.html' title='Return Value in Function'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeJernKB7_c/SE4esCLyFlI/AAAAAAAAAUI/5j7G3b5EwZY/s72-c/Return+Value+In+Function.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-7583396855015014258</id><published>2008-06-09T23:03:00.000-07:00</published><updated>2008-06-09T23:17:09.254-07:00</updated><title type='text'>Property Count In ListBox</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MeJernKB7_c/SE4cTEriCOI/AAAAAAAAAUA/W27yJCa_zy4/s1600-h/Property+Count+In+ListBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210132932913662178" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MeJernKB7_c/SE4cTEriCOI/AAAAAAAAAUA/W27yJCa_zy4/s320/Property+Count+In+ListBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My53 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Button^ Btn;&lt;br /&gt;private: System::Windows::Forms::ComboBox^ Cmb;&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;Btn = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;Cmb = (gcnew System::Windows::Forms::ComboBox());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Btn&lt;br /&gt;//&lt;br /&gt;this-&gt;Btn-&gt;Location = System::Drawing::Point(12, 73);&lt;br /&gt;this-&gt;Btn-&gt;Name = L"Btn";&lt;br /&gt;this-&gt;Btn-&gt;Size = System::Drawing::Size(268, 50);&lt;br /&gt;this-&gt;Btn-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;Btn-&gt;Text = L"Show Count Items ";&lt;br /&gt;this-&gt;Btn-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;Btn-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::Btn_Click);&lt;br /&gt;//&lt;br /&gt;// Cmb&lt;br /&gt;//&lt;br /&gt;this-&gt;Cmb-&gt;FormattingEnabled = true;&lt;br /&gt;this-&gt;Cmb-&gt;Location = System::Drawing::Point(12, 28);&lt;br /&gt;this-&gt;Cmb-&gt;Name = L"Cmb";&lt;br /&gt;this-&gt;Cmb-&gt;Size = System::Drawing::Size(268, 21);&lt;br /&gt;this-&gt;Cmb-&gt;TabIndex = 1;&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 134);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Cmb);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Btn);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregio&lt;br /&gt;//Property Count In ListBox&lt;br /&gt;private: System::Void Btn_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;int i;&lt;br /&gt;String^str;&lt;br /&gt;str="www.cplusplussourcecode.blogspot.com";&lt;br /&gt;for(i=0;i&lt;=str-&gt;Length;i++)&lt;br /&gt;{&lt;br /&gt;Cmb-&gt;Items-&gt;Add(str);&lt;br /&gt;}&lt;br /&gt;this-&gt;Text=Cmb-&gt;Items-&gt;Count.ToString();&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;BackColor=Color::Blue;&lt;br /&gt;this-&gt;Text="Property Count In ListBox";&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;Cmb-&gt;BackColor=Color::Red;&lt;br /&gt;Cmb-&gt;ForeColor=Color::White;&lt;br /&gt;Btn-&gt;BackColor=Color::Black;&lt;br /&gt;Btn-&gt;ForeColor=Color::White;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-7583396855015014258?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/7583396855015014258/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=7583396855015014258' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7583396855015014258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7583396855015014258'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/property-count-in-listbox.html' title='Property Count In ListBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeJernKB7_c/SE4cTEriCOI/AAAAAAAAAUA/W27yJCa_zy4/s72-c/Property+Count+In+ListBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-1265248183514632894</id><published>2008-06-09T22:59:00.000-07:00</published><updated>2008-06-09T23:02:00.806-07:00</updated><title type='text'>Using for Add Items in ListBox</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE4YlDHDbPI/AAAAAAAAAT4/t-6KJprFkkg/s1600-h/Using+for+Add+Items+in+ListBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210128843683359986" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE4YlDHDbPI/AAAAAAAAAT4/t-6KJprFkkg/s320/Using+for+Add+Items+in+ListBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My52 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Button^ BtnAddItems;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::ListBox^ lst;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;BtnAddItems = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;lst = (gcnew System::Windows::Forms::ListBox());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// BtnAddItems&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnAddItems-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;BtnAddItems-&gt;Location = System::Drawing::Point(12, 149);&lt;br /&gt;this-&gt;BtnAddItems-&gt;Name = L"BtnAddItems";&lt;br /&gt;this-&gt;BtnAddItems-&gt;Size = System::Drawing::Size(377, 42);&lt;br /&gt;this-&gt;BtnAddItems-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;BtnAddItems-&gt;Text = L"Add Items";&lt;br /&gt;this-&gt;BtnAddItems-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnAddItems-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnAddItems_Click);&lt;br /&gt;//&lt;br /&gt;// lst&lt;br /&gt;//&lt;br /&gt;this-&gt;lst-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 15.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;lst-&gt;FormattingEnabled = true;&lt;br /&gt;this-&gt;lst-&gt;ItemHeight = 25;&lt;br /&gt;this-&gt;lst-&gt;Location = System::Drawing::Point(14, 19);&lt;br /&gt;this-&gt;lst-&gt;Name = L"lst";&lt;br /&gt;this-&gt;lst-&gt;Size = System::Drawing::Size(375, 104);&lt;br /&gt;this-&gt;lst-&gt;TabIndex = 1;&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(401, 203);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lst);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnAddItems);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Using for Add Items in ListBox&lt;br /&gt;private: System::Void BtnAddItems_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;int i;&lt;br /&gt;for(i=0;i&lt;=50;i++) { lst-&gt;Items-&gt;Add("Index : "+i);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;BackColor=Color::Red;&lt;br /&gt;this-&gt;Text="Using for Add Items in ListBox";&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;lst-&gt;BackColor=Color::Yellow;&lt;br /&gt;lst-&gt;ForeColor=Color::Red;&lt;br /&gt;BtnAddItems-&gt;BackColor=Color::Black;&lt;br /&gt;BtnAddItems-&gt;ForeColor=Color::White;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::byte&gt;&lt;system::byte&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-1265248183514632894?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/1265248183514632894/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=1265248183514632894' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1265248183514632894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/1265248183514632894'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/using-for-add-items-in-listbox.html' title='Using for Add Items in ListBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE4YlDHDbPI/AAAAAAAAAT4/t-6KJprFkkg/s72-c/Using+for+Add+Items+in+ListBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-2480176414791484727</id><published>2008-06-09T20:35:00.000-07:00</published><updated>2008-06-09T20:38:10.175-07:00</updated><title type='text'>Select Items in ComboBox</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_MeJernKB7_c/SE323t9k3hI/AAAAAAAAATw/jTlpVgnLBCE/s1600-h/Select+Items+in+ComboBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210091781028634130" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_MeJernKB7_c/SE323t9k3hI/AAAAAAAAATw/jTlpVgnLBCE/s320/Select+Items+in+ComboBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My51 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::ComboBox^ Cmb;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;Cmb = (gcnew System::Windows::Forms::ComboBox());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Cmb&lt;br /&gt;//&lt;br /&gt;this-&gt;Cmb-&gt;FormattingEnabled = true;&lt;br /&gt;this-&gt;Cmb-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;Cmb-&gt;Name = L"Cmb";&lt;br /&gt;this-&gt;Cmb-&gt;Size = System::Drawing::Size(268, 21);&lt;br /&gt;this-&gt;Cmb-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;Cmb-&gt;SelectedIndexChanged += gcnew System::EventHandler(this, &amp;amp;Form1::Cmb_SelectedIndexChanged);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 47);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Cmb);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Select Items in ComboBox&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;Cmb-&gt;Items-&gt;Add("Items 1");&lt;br /&gt;Cmb-&gt;Items-&gt;Add("Items 2");&lt;br /&gt;Cmb-&gt;Items-&gt;Add("Items 3");&lt;br /&gt;Cmb-&gt;Items-&gt;Add("Items 4");&lt;br /&gt;this-&gt;Text="Select Items in ComboBox";&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;this-&gt;BackColor=Color::Plum;&lt;br /&gt;Cmb-&gt;BackColor=Color::Yellow;&lt;br /&gt;Cmb-&gt;ForeColor=Color::Blue;&lt;br /&gt;}&lt;br /&gt;private: System::Void Cmb_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text=Cmb-&gt;Text;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-2480176414791484727?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/2480176414791484727/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=2480176414791484727' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2480176414791484727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2480176414791484727'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/select-items-in-combobox.html' title='Select Items in ComboBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeJernKB7_c/SE323t9k3hI/AAAAAAAAATw/jTlpVgnLBCE/s72-c/Select+Items+in+ComboBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-7754948327537339291</id><published>2008-06-09T20:33:00.000-07:00</published><updated>2008-06-09T20:35:25.358-07:00</updated><title type='text'>Show FolderBrowserDialog</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_MeJernKB7_c/SE32XHWujfI/AAAAAAAAATo/us31g9qkAY0/s1600-h/Show+FolderBrowserDialog.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210091220909329906" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_MeJernKB7_c/SE32XHWujfI/AAAAAAAAATo/us31g9qkAY0/s320/Show+FolderBrowserDialog.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My50 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::FolderBrowserDialog^ FolderBrowserDialog;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnShowFolderBrowserDialog;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;FolderBrowserDialog = (gcnew System::Windows::Forms::FolderBrowserDialog());&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// BtnShowFolderBrowserDialog&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;Location = System::Drawing::Point(12, 14);&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;Name = L"BtnShowFolderBrowserDialog";&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;Size = System::Drawing::Size(240, 42);&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;Text = L"Show FolderBrowserDialog";&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnShowFolderBrowserDialog-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnShowFolderBrowserDialog_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(263, 68);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnShowFolderBrowserDialog);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Show FolderBrowserDialog&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Show FolderBrowesDialog";&lt;br /&gt;this-&gt;BackColor=Color::Pink;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;BtnShowFolderBrowserDialog-&gt;BackColor=Color::Black;&lt;br /&gt;BtnShowFolderBrowserDialog-&gt;ForeColor=Color::White;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnShowFolderBrowserDialog_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;FolderBrowserDialog-&gt;RootFolder=Environment::SpecialFolder::MyDocuments;&lt;br /&gt;FolderBrowserDialog-&gt;ShowDialog();&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-7754948327537339291?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/7754948327537339291/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=7754948327537339291' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7754948327537339291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7754948327537339291'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/show-folderbrowserdialog.html' title='Show FolderBrowserDialog'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeJernKB7_c/SE32XHWujfI/AAAAAAAAATo/us31g9qkAY0/s72-c/Show+FolderBrowserDialog.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-2138654069070608226</id><published>2008-06-09T20:32:00.001-07:00</published><updated>2008-06-09T20:33:39.221-07:00</updated><title type='text'>GetCreateTime File</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE3163MF4ZI/AAAAAAAAATg/ULhoZBLgp-c/s1600-h/GetCreateTime+File.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210090735533416850" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE3163MF4ZI/AAAAAAAAATg/ULhoZBLgp-c/s320/GetCreateTime+File.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My49 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;using namespace System::IO;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::Label^ lblCreateTime;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Label^ lblPathFile;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;lblCreateTime = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;lblPathFile = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// lblCreateTime&lt;br /&gt;//&lt;br /&gt;this-&gt;lblCreateTime-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblCreateTime-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;lblCreateTime-&gt;ForeColor = System::Drawing::Color::White;&lt;br /&gt;this-&gt;lblCreateTime-&gt;Location = System::Drawing::Point(12, 41);&lt;br /&gt;this-&gt;lblCreateTime-&gt;Name = L"lblCreateTime";&lt;br /&gt;this-&gt;lblCreateTime-&gt;Size = System::Drawing::Size(97, 16);&lt;br /&gt;this-&gt;lblCreateTime-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;lblCreateTime-&gt;Text = L"CreateTime :";&lt;br /&gt;//&lt;br /&gt;// lblPathFile&lt;br /&gt;//&lt;br /&gt;this-&gt;lblPathFile-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblPathFile-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;lblPathFile-&gt;ForeColor = System::Drawing::Color::White;&lt;br /&gt;this-&gt;lblPathFile-&gt;Location = System::Drawing::Point(12, 9);&lt;br /&gt;this-&gt;lblPathFile-&gt;Name = L"lblPathFile";&lt;br /&gt;this-&gt;lblPathFile-&gt;Size = System::Drawing::Size(77, 16);&lt;br /&gt;this-&gt;lblPathFile-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;lblPathFile-&gt;Text = L"Path File :";&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(553, 64);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblPathFile);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblCreateTime);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;this-&gt;PerformLayout();&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//GetCreateTime File&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;lblCreateTime-&gt;Text="Create Time : "+File::GetCreationTime("C:\\Flower.BMP").ToString();&lt;br /&gt;lblPathFile-&gt;Text="Path File : C:\\Flower.BMP";&lt;br /&gt;this-&gt;Text="GetCreateTime File";&lt;br /&gt;this-&gt;BackColor=Color::RosyBrown;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::byte&gt;&lt;system::byte&gt;&lt;/system::byte&gt;&lt;/system::byte&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-2138654069070608226?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/2138654069070608226/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=2138654069070608226' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2138654069070608226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/2138654069070608226'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/getcreatetime-file.html' title='GetCreateTime File'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE3163MF4ZI/AAAAAAAAATg/ULhoZBLgp-c/s72-c/GetCreateTime+File.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-33261003506887956</id><published>2008-06-09T20:30:00.001-07:00</published><updated>2008-06-09T20:31:38.039-07:00</updated><title type='text'>Play Sound</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE31f6mxfjI/AAAAAAAAATY/tpNLY5im7W8/s1600-h/Play+Sound.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210090272594165298" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE31f6mxfjI/AAAAAAAAATY/tpNLY5im7W8/s320/Play+Sound.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My48 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: AxWMPLib::AxWindowsMediaPlayer^ w;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Button^ BtnPlay;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));&lt;br /&gt;this-&gt;w = (gcnew AxWMPLib::AxWindowsMediaPlayer());&lt;br /&gt;this-&gt;BtnPlay = (gcnew System::Windows::Forms::Button());&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;w))-&gt;BeginInit();&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// w&lt;br /&gt;//&lt;br /&gt;this-&gt;w-&gt;Enabled = true;&lt;br /&gt;this-&gt;w-&gt;Location = System::Drawing::Point(11, 13);&lt;br /&gt;this-&gt;w-&gt;Name = L"w";&lt;br /&gt;this-&gt;w-&gt;OcxState = (cli::safe_cast&lt;/span&gt;&lt;system::windows::forms::axhost::state^&gt;&lt;span style="color:#ffffff;"&gt;(resources-&gt;GetObject(L"w.OcxState")));&lt;br /&gt;this-&gt;w-&gt;Size = System::Drawing::Size(269, 184);&lt;br /&gt;this-&gt;w-&gt;TabIndex = 0;&lt;br /&gt;//&lt;br /&gt;// BtnPlay&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnPlay-&gt;Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,&lt;br /&gt;static_cast&lt;/span&gt;&lt;system::byte&gt;&lt;span style="color:#ffffff;"&gt;(222)));&lt;br /&gt;this-&gt;BtnPlay-&gt;Location = System::Drawing::Point(12, 211);&lt;br /&gt;this-&gt;BtnPlay-&gt;Name = L"BtnPlay";&lt;br /&gt;this-&gt;BtnPlay-&gt;Size = System::Drawing::Size(267, 45);&lt;br /&gt;this-&gt;BtnPlay-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnPlay-&gt;Text = L"Play";&lt;br /&gt;this-&gt;BtnPlay-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnPlay-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnPlay_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 266);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnPlay);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;w);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;w))-&gt;EndInit();&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Play Sound&lt;br /&gt;private: System::Void BtnPlay_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;w-&gt;URL="D:\\Song\\01 Track 1.mp3";&lt;br /&gt;w-&gt;Ctlcontrols-&gt;play();&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Play Sound";&lt;br /&gt;this-&gt;BackColor=Color::Yellow;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;BtnPlay-&gt;BackColor=Color::Black;&lt;br /&gt;BtnPlay-&gt;ForeColor=Color::White;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::byte&gt;&lt;/system::windows::forms::axhost::state^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::windows::forms::axhost::state^&gt;&lt;system::byte&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::byte&gt;&lt;/system::windows::forms::axhost::state^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-33261003506887956?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/33261003506887956/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=33261003506887956' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/33261003506887956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/33261003506887956'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/play-sound.html' title='Play Sound'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE31f6mxfjI/AAAAAAAAATY/tpNLY5im7W8/s72-c/Play+Sound.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-3166082864498867520</id><published>2008-06-09T20:27:00.001-07:00</published><updated>2008-06-09T20:29:36.259-07:00</updated><title type='text'>Draw Image on RichTextBox</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE3095GxHHI/AAAAAAAAATQ/6n01SizEve0/s1600-h/Draw+Image+on+RichTextBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210089688075934834" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE3095GxHHI/AAAAAAAAATQ/6n01SizEve0/s320/Draw+Image+on+RichTextBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My47 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::RichTextBox^ Rtf;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnDrawImage;&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;Rtf = (gcnew System::Windows::Forms::RichTextBox());&lt;br /&gt;this-&gt;BtnDrawImage = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Rtf&lt;br /&gt;//&lt;br /&gt;this-&gt;Rtf-&gt;Location = System::Drawing::Point(12, 11);&lt;br /&gt;this-&gt;Rtf-&gt;Name = L"Rtf";&lt;br /&gt;this-&gt;Rtf-&gt;Size = System::Drawing::Size(268, 190);&lt;br /&gt;this-&gt;Rtf-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;Rtf-&gt;Text = L"";&lt;br /&gt;//&lt;br /&gt;// BtnDrawImage&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnDrawImage-&gt;Location = System::Drawing::Point(12, 216);&lt;br /&gt;this-&gt;BtnDrawImage-&gt;Name = L"BtnDrawImage";&lt;br /&gt;this-&gt;BtnDrawImage-&gt;Size = System::Drawing::Size(267, 35);&lt;br /&gt;this-&gt;BtnDrawImage-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnDrawImage-&gt;Text = L"Draw Image";&lt;br /&gt;this-&gt;BtnDrawImage-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnDrawImage-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnDrawImage_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 266);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnDrawImage);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Rtf);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Draw Image on RichTextBox&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;Rtf-&gt;BackColor=Color::Red;&lt;br /&gt;this-&gt;Text="DrawImage on RichTextBox";&lt;br /&gt;this-&gt;FormBorderStyle=Windows::Forms::FormBorderStyle::FixedToolWindow;&lt;br /&gt;this-&gt;BackColor=Color::Gray;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnDrawImage_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;Graphics^g;&lt;br /&gt;Bitmap^b;&lt;br /&gt;b=gcnew Bitmap("C:\\Flower.Bmp");&lt;br /&gt;g=Rtf-&gt;CreateGraphics();&lt;br /&gt;g-&gt;DrawImage(b,Rectangle(10,10,200,200));&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-3166082864498867520?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/3166082864498867520/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=3166082864498867520' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/3166082864498867520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/3166082864498867520'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/draw-image-on-richtextbox.html' title='Draw Image on RichTextBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE3095GxHHI/AAAAAAAAATQ/6n01SizEve0/s72-c/Draw+Image+on+RichTextBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-7518964113800698237</id><published>2008-06-09T20:21:00.001-07:00</published><updated>2008-06-09T20:25:56.369-07:00</updated><title type='text'>Copy And Paste in RichTextBox</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE30K38lszI/AAAAAAAAATI/Ztw0NIkUOdc/s1600-h/Copy+And+Paste+in+RichTextBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210088811591480114" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE30K38lszI/AAAAAAAAATI/Ztw0NIkUOdc/s320/Copy+And+Paste+in+RichTextBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My46 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::RichTextBox^ Rtf;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Button^ BtnCopy;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnPaste;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;Rtf = (gcnew System::Windows::Forms::RichTextBox());&lt;br /&gt;this-&gt;BtnCopy = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;BtnPaste = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Rtf&lt;br /&gt;//&lt;br /&gt;this-&gt;Rtf-&gt;Location = System::Drawing::Point(10, 12);&lt;br /&gt;this-&gt;Rtf-&gt;Name = L"Rtf";&lt;br /&gt;this-&gt;Rtf-&gt;Size = System::Drawing::Size(272, 204);&lt;br /&gt;this-&gt;Rtf-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;Rtf-&gt;Text = L"";&lt;br /&gt;//&lt;br /&gt;// BtnCopy&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnCopy-&gt;Location = System::Drawing::Point(12, 222);&lt;br /&gt;this-&gt;BtnCopy-&gt;Name = L"BtnCopy";&lt;br /&gt;this-&gt;BtnCopy-&gt;Size = System::Drawing::Size(121, 32);&lt;br /&gt;this-&gt;BtnCopy-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnCopy-&gt;Text = L"Copy";&lt;br /&gt;this-&gt;BtnCopy-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnCopy-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnCopy_Click);&lt;br /&gt;//&lt;br /&gt;// BtnPaste&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnPaste-&gt;Location = System::Drawing::Point(150, 222);&lt;br /&gt;this-&gt;BtnPaste-&gt;Name = L"BtnPaste";&lt;br /&gt;this-&gt;BtnPaste-&gt;Size = System::Drawing::Size(130, 32);&lt;br /&gt;this-&gt;BtnPaste-&gt;TabIndex = 2;&lt;br /&gt;this-&gt;BtnPaste-&gt;Text = L"Paste";&lt;br /&gt;this-&gt;BtnPaste-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnPaste-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnPaste_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 266);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnPaste);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnCopy);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Rtf);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Copy And Paste in RichTextBox&lt;br /&gt;private: System::Void BtnCopy_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;Rtf-&gt;Copy();&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnPaste_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;Rtf-&gt;Paste();&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Copy And Paste in RichTextBox";&lt;br /&gt;this-&gt;BackColor=Color::Yellow;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-7518964113800698237?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/7518964113800698237/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=7518964113800698237' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7518964113800698237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7518964113800698237'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/copy-and-paste-in-richtextbox.html' title='Copy And Paste in RichTextBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE30K38lszI/AAAAAAAAATI/Ztw0NIkUOdc/s72-c/Copy+And+Paste+in+RichTextBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-4513742428961126042</id><published>2008-06-09T20:18:00.000-07:00</published><updated>2008-06-09T20:20:58.236-07:00</updated><title type='text'>Show TextLength</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_MeJernKB7_c/SE3y6LUlCZI/AAAAAAAAATA/gSSDemhxC9U/s1600-h/Show+TextLength.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210087425222969746" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_MeJernKB7_c/SE3y6LUlCZI/AAAAAAAAATA/gSSDemhxC9U/s320/Show+TextLength.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My45 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::RichTextBox^ Rtf;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnTextLength;&lt;br /&gt;protected:&lt;br /&gt;&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;Rtf = (gcnew System::Windows::Forms::RichTextBox());&lt;br /&gt;this-&gt;BtnTextLength = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// Rtf&lt;br /&gt;//&lt;br /&gt;this-&gt;Rtf-&gt;Location = System::Drawing::Point(9, 14);&lt;br /&gt;this-&gt;Rtf-&gt;Name = L"Rtf";&lt;br /&gt;this-&gt;Rtf-&gt;Size = System::Drawing::Size(271, 194);&lt;br /&gt;this-&gt;Rtf-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;Rtf-&gt;Text = L"";&lt;br /&gt;//&lt;br /&gt;// BtnTextLength&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnTextLength-&gt;Location = System::Drawing::Point(12, 223);&lt;br /&gt;this-&gt;BtnTextLength-&gt;Name = L"BtnTextLength";&lt;br /&gt;this-&gt;BtnTextLength-&gt;Size = System::Drawing::Size(267, 31);&lt;br /&gt;this-&gt;BtnTextLength-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnTextLength-&gt;Text = L"Show TextLength";&lt;br /&gt;this-&gt;BtnTextLength-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnTextLength-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnSave_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 266);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnTextLength);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;Rtf);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Show TextLength&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Show TextLength";&lt;br /&gt;this-&gt;BackColor=Color::Black;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;Rtf-&gt;BackColor=Color::Yellow;&lt;br /&gt;Rtf-&gt;ForeColor=Color::Blue;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnSave_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text=Rtf-&gt;TextLength.ToString();&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-4513742428961126042?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/4513742428961126042/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=4513742428961126042' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4513742428961126042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4513742428961126042'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/show-textlength.html' title='Show TextLength'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MeJernKB7_c/SE3y6LUlCZI/AAAAAAAAATA/gSSDemhxC9U/s72-c/Show+TextLength.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-7727917142258012812</id><published>2008-06-09T20:17:00.001-07:00</published><updated>2008-06-09T20:18:40.154-07:00</updated><title type='text'>MixColor</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MeJernKB7_c/SE3ybgEFqcI/AAAAAAAAAS4/0YXBmQI4g_E/s1600-h/MixColor.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210086898215004610" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MeJernKB7_c/SE3ybgEFqcI/AAAAAAAAAS4/0YXBmQI4g_E/s320/MixColor.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My44 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::NumericUpDown^ nRed;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Label^ lblRed;&lt;br /&gt;private: System::Windows::Forms::NumericUpDown^ nGreen;&lt;br /&gt;private: System::Windows::Forms::NumericUpDown^ nBlue;&lt;br /&gt;private: System::Windows::Forms::Label^ lblGreen;&lt;br /&gt;private: System::Windows::Forms::Label^ lblBlue;&lt;br /&gt;private: System::Windows::Forms::PictureBox^ pctResult;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnShowResult;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;nRed = (gcnew System::Windows::Forms::NumericUpDown());&lt;br /&gt;this-&gt;lblRed = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;nGreen = (gcnew System::Windows::Forms::NumericUpDown());&lt;br /&gt;this-&gt;nBlue = (gcnew System::Windows::Forms::NumericUpDown());&lt;br /&gt;this-&gt;lblGreen = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;lblBlue = (gcnew System::Windows::Forms::Label());&lt;br /&gt;this-&gt;pctResult = (gcnew System::Windows::Forms::PictureBox());&lt;br /&gt;this-&gt;BtnShowResult = (gcnew System::Windows::Forms::Button());&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nRed))-&gt;BeginInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nGreen))-&gt;BeginInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nBlue))-&gt;BeginInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;pctResult))-&gt;BeginInit();&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// nRed&lt;br /&gt;//&lt;br /&gt;this-&gt;nRed-&gt;Location = System::Drawing::Point(51, 22);&lt;br /&gt;this-&gt;nRed-&gt;Name = L"nRed";&lt;br /&gt;this-&gt;nRed-&gt;Size = System::Drawing::Size(43, 20);&lt;br /&gt;this-&gt;nRed-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;nRed-&gt;ValueChanged += gcnew System::EventHandler(this, &amp;amp;Form1::nRed_ValueChanged);&lt;br /&gt;//&lt;br /&gt;// lblRed&lt;br /&gt;//&lt;br /&gt;this-&gt;lblRed-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblRed-&gt;Location = System::Drawing::Point(12, 24);&lt;br /&gt;this-&gt;lblRed-&gt;Name = L"lblRed";&lt;br /&gt;this-&gt;lblRed-&gt;Size = System::Drawing::Size(33, 13);&lt;br /&gt;this-&gt;lblRed-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;lblRed-&gt;Text = L"Red :";&lt;br /&gt;//&lt;br /&gt;// nGreen&lt;br /&gt;//&lt;br /&gt;this-&gt;nGreen-&gt;Location = System::Drawing::Point(51, 61);&lt;br /&gt;this-&gt;nGreen-&gt;Name = L"nGreen";&lt;br /&gt;this-&gt;nGreen-&gt;Size = System::Drawing::Size(43, 20);&lt;br /&gt;this-&gt;nGreen-&gt;TabIndex = 2;&lt;br /&gt;this-&gt;nGreen-&gt;ValueChanged += gcnew System::EventHandler(this, &amp;amp;Form1::nGreen_ValueChanged);&lt;br /&gt;//&lt;br /&gt;// nBlue&lt;br /&gt;//&lt;br /&gt;this-&gt;nBlue-&gt;Location = System::Drawing::Point(51, 97);&lt;br /&gt;this-&gt;nBlue-&gt;Name = L"nBlue";&lt;br /&gt;this-&gt;nBlue-&gt;Size = System::Drawing::Size(43, 20);&lt;br /&gt;this-&gt;nBlue-&gt;TabIndex = 3;&lt;br /&gt;this-&gt;nBlue-&gt;ValueChanged += gcnew System::EventHandler(this, &amp;amp;Form1::nBlue_ValueChanged);&lt;br /&gt;//&lt;br /&gt;// lblGreen&lt;br /&gt;//&lt;br /&gt;this-&gt;lblGreen-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblGreen-&gt;Location = System::Drawing::Point(12, 63);&lt;br /&gt;this-&gt;lblGreen-&gt;Name = L"lblGreen";&lt;br /&gt;this-&gt;lblGreen-&gt;Size = System::Drawing::Size(42, 13);&lt;br /&gt;this-&gt;lblGreen-&gt;TabIndex = 4;&lt;br /&gt;this-&gt;lblGreen-&gt;Text = L"Green :";&lt;br /&gt;//&lt;br /&gt;// lblBlue&lt;br /&gt;//&lt;br /&gt;this-&gt;lblBlue-&gt;AutoSize = true;&lt;br /&gt;this-&gt;lblBlue-&gt;Location = System::Drawing::Point(12, 99);&lt;br /&gt;this-&gt;lblBlue-&gt;Name = L"lblBlue";&lt;br /&gt;this-&gt;lblBlue-&gt;Size = System::Drawing::Size(34, 13);&lt;br /&gt;this-&gt;lblBlue-&gt;TabIndex = 5;&lt;br /&gt;this-&gt;lblBlue-&gt;Text = L"Blue :";&lt;br /&gt;//&lt;br /&gt;// pctResult&lt;br /&gt;//&lt;br /&gt;this-&gt;pctResult-&gt;BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;&lt;br /&gt;this-&gt;pctResult-&gt;Location = System::Drawing::Point(109, 23);&lt;br /&gt;this-&gt;pctResult-&gt;Name = L"pctResult";&lt;br /&gt;this-&gt;pctResult-&gt;Size = System::Drawing::Size(170, 102);&lt;br /&gt;this-&gt;pctResult-&gt;TabIndex = 6;&lt;br /&gt;this-&gt;pctResult-&gt;TabStop = false;&lt;br /&gt;//&lt;br /&gt;// BtnShowResult&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnShowResult-&gt;Location = System::Drawing::Point(12, 131);&lt;br /&gt;this-&gt;BtnShowResult-&gt;Name = L"BtnShowResult";&lt;br /&gt;this-&gt;BtnShowResult-&gt;Size = System::Drawing::Size(267, 30);&lt;br /&gt;this-&gt;BtnShowResult-&gt;TabIndex = 7;&lt;br /&gt;this-&gt;BtnShowResult-&gt;Text = L"Show Result";&lt;br /&gt;this-&gt;BtnShowResult-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnShowResult-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnShowResult_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(292, 162);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnShowResult);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;pctResult);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblBlue);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblGreen);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;nBlue);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;nGreen);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;lblRed);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;nRed);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nRed))-&gt;EndInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nGreen))-&gt;EndInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;nBlue))-&gt;EndInit();&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;pctResult))-&gt;EndInit();&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;this-&gt;PerformLayout();&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//MixColor&lt;br /&gt;int cRed;&lt;br /&gt;int cGreen;&lt;br /&gt;int cBlue;&lt;br /&gt;void UpdateMixColor()&lt;br /&gt;{&lt;br /&gt;pctResult-&gt;BackColor=Color::FromArgb(cRed,cGreen,cBlue);&lt;br /&gt;}&lt;br /&gt;private: System::Void nRed_ValueChanged(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;cRed=Convert::ToInt32(nRed-&gt;Value);&lt;br /&gt;UpdateMixColor();&lt;br /&gt;}&lt;br /&gt;private: System::Void nGreen_ValueChanged(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;cGreen=Convert::ToInt32(nGreen-&gt;Value);&lt;br /&gt;UpdateMixColor();&lt;br /&gt;}&lt;br /&gt;private: System::Void nBlue_ValueChanged(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;cBlue=Convert::ToInt32(nBlue-&gt;Value);&lt;br /&gt;UpdateMixColor();&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;nRed-&gt;Maximum=255;&lt;br /&gt;nGreen-&gt;Maximum=255;&lt;br /&gt;nBlue-&gt;Maximum=255;&lt;br /&gt;this-&gt;Text="MixColor";&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnShowResult_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;UpdateMixColor();&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-7727917142258012812?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/7727917142258012812/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=7727917142258012812' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7727917142258012812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/7727917142258012812'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/mixcolor.html' title='MixColor'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeJernKB7_c/SE3ybgEFqcI/AAAAAAAAAS4/0YXBmQI4g_E/s72-c/MixColor.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-6977868276026641045</id><published>2008-06-09T20:13:00.001-07:00</published><updated>2008-06-09T20:16:20.488-07:00</updated><title type='text'>Using maskedTextBox</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MeJernKB7_c/SE3x7CNT2rI/AAAAAAAAASw/IPxETk1g6DE/s1600-h/Using+maskedTextBox.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210086340444805810" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MeJernKB7_c/SE3x7CNT2rI/AAAAAAAAASw/IPxETk1g6DE/s320/Using+maskedTextBox.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My43 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::MaskedTextBox^ mtxt;&lt;br /&gt;private: System::Windows::Forms::Button^ BtnSee;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;mtxt = (gcnew System::Windows::Forms::MaskedTextBox());&lt;br /&gt;this-&gt;BtnSee = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// mtxt&lt;br /&gt;//&lt;br /&gt;this-&gt;mtxt-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;mtxt-&gt;Name = L"mtxt";&lt;br /&gt;this-&gt;mtxt-&gt;PasswordChar = '*';&lt;br /&gt;this-&gt;mtxt-&gt;Size = System::Drawing::Size(334, 20);&lt;br /&gt;this-&gt;mtxt-&gt;TabIndex = 0;&lt;br /&gt;//&lt;br /&gt;// BtnSee&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnSee-&gt;Location = System::Drawing::Point(16, 41);&lt;br /&gt;this-&gt;BtnSee-&gt;Name = L"BtnSee";&lt;br /&gt;this-&gt;BtnSee-&gt;Size = System::Drawing::Size(329, 23);&lt;br /&gt;this-&gt;BtnSee-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnSee-&gt;Text = L"See";&lt;br /&gt;this-&gt;BtnSee-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnSee-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnSee_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(358, 71);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnSee);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;mtxt);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;this-&gt;PerformLayout();&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Using maskedTextBox&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;mtxt-&gt;PasswordChar='*';&lt;br /&gt;this-&gt;Text="Using maskedTextBox";&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;this-&gt;BackColor=Color::Gray;&lt;br /&gt;mtxt-&gt;BackColor=Color::Yellow;&lt;br /&gt;mtxt-&gt;ForeColor=Color::Blue;&lt;br /&gt;}&lt;br /&gt;private: System::Void BtnSee_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text=mtxt-&gt;Text;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-6977868276026641045?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/6977868276026641045/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=6977868276026641045' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/6977868276026641045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/6977868276026641045'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/using-maskedtextbox.html' title='Using maskedTextBox'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MeJernKB7_c/SE3x7CNT2rI/AAAAAAAAASw/IPxETk1g6DE/s72-c/Using+maskedTextBox.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-4037021047473183339</id><published>2008-06-09T20:11:00.000-07:00</published><updated>2008-06-09T20:13:01.017-07:00</updated><title type='text'>Eject CD</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_MeJernKB7_c/SE3xDr3K86I/AAAAAAAAASg/4DnjP7RunRA/s1600-h/Eject+CD.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210085389553562530" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MeJernKB7_c/SE3xDr3K86I/AAAAAAAAASg/4DnjP7RunRA/s320/Eject+CD.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My42 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: AxWMPLib::AxWindowsMediaPlayer^ w;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Button^ BtnEjectCD;&lt;br /&gt;protected:&lt;br /&gt;protected:&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));&lt;br /&gt;this-&gt;w = (gcnew AxWMPLib::AxWindowsMediaPlayer());&lt;br /&gt;this-&gt;BtnEjectCD = (gcnew System::Windows::Forms::Button());&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;w))-&gt;BeginInit();&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// w&lt;br /&gt;//&lt;br /&gt;this-&gt;w-&gt;Enabled = true;&lt;br /&gt;this-&gt;w-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;w-&gt;Name = L"w";&lt;br /&gt;this-&gt;w-&gt;OcxState = (cli::safe_cast&lt;/span&gt;&lt;system::windows::forms::axhost::state^&gt;&lt;span style="color:#ffffff;"&gt;(resources-&gt;GetObject(L"w.OcxState")));&lt;br /&gt;this-&gt;w-&gt;Size = System::Drawing::Size(10, 10);&lt;br /&gt;this-&gt;w-&gt;TabIndex = 0;&lt;br /&gt;//&lt;br /&gt;// BtnEjectCD&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnEjectCD-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;BtnEjectCD-&gt;Name = L"BtnEjectCD";&lt;br /&gt;this-&gt;BtnEjectCD-&gt;Size = System::Drawing::Size(264, 53);&lt;br /&gt;this-&gt;BtnEjectCD-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnEjectCD-&gt;Text = L"Eject CD";&lt;br /&gt;this-&gt;BtnEjectCD-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnEjectCD-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnEjectCD_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(288, 77);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnEjectCD);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;w);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;(cli::safe_cast&lt;/span&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;span style="color:#ffffff;"&gt;(this-&gt;w))-&gt;EndInit();&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Eject CD&lt;br /&gt;private: System::Void BtnEjectCD_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;w-&gt;cdromCollection-&gt;getByDriveSpecifier("e")-&gt;eject();&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Eject CD";&lt;br /&gt;this-&gt;BackColor=Color::Black;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::windows::forms::axhost::state^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;br /&gt;&lt;?XML:NAMESPACE PREFIX = System /&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;system::windows::forms::axhost::state^&gt;&lt;system::componentmodel::isupportinitialize^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;/system::windows::forms::axhost::state^&gt;&lt;/system::componentmodel::isupportinitialize^&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-4037021047473183339?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/4037021047473183339/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=4037021047473183339' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4037021047473183339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/4037021047473183339'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/eject-cd.html' title='Eject CD'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MeJernKB7_c/SE3xDr3K86I/AAAAAAAAASg/4DnjP7RunRA/s72-c/Eject+CD.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6064719148837444379.post-5773606203863361888</id><published>2008-06-09T18:14:00.001-07:00</published><updated>2008-06-09T20:11:20.369-07:00</updated><title type='text'>Open RTF File</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_MeJernKB7_c/SE3wrLRebFI/AAAAAAAAASY/ejwiqfmi9ak/s1600-h/Open+RTF+File.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5210084968488660050" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_MeJernKB7_c/SE3wrLRebFI/AAAAAAAAASY/ejwiqfmi9ak/s320/Open+RTF+File.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;#pragma once&lt;br /&gt;&lt;br /&gt;namespace My41 {&lt;br /&gt;using namespace System;&lt;br /&gt;using namespace System::ComponentModel;&lt;br /&gt;using namespace System::Collections;&lt;br /&gt;using namespace System::Windows::Forms;&lt;br /&gt;using namespace System::Data;&lt;br /&gt;using namespace System::Drawing;&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Summary for Form1&lt;br /&gt;///&lt;br /&gt;/// WARNING: If you change the name of this class, you will need to change the&lt;br /&gt;/// 'Resource File Name' property for the managed resource compiler tool&lt;br /&gt;/// associated with all .resx files this class depends on. Otherwise,&lt;br /&gt;/// the designers will not be able to interact properly with localized&lt;br /&gt;/// resources associated with this form.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;{&lt;br /&gt;public:&lt;br /&gt;Form1(void)&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;//&lt;br /&gt;//TODO: Add the constructor code here&lt;br /&gt;//&lt;br /&gt;}&lt;br /&gt;protected:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Clean up any resources being used.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;~Form1()&lt;br /&gt;{&lt;br /&gt;if (components)&lt;br /&gt;{&lt;br /&gt;delete components;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private: System::Windows::Forms::RichTextBox^ rtf;&lt;br /&gt;protected:&lt;br /&gt;private: System::Windows::Forms::Button^ BtnOpenFile;&lt;br /&gt;private:&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required designer variable.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;System::ComponentModel::Container ^components;&lt;br /&gt;#pragma region Windows Form Designer generated code&lt;br /&gt;/// &lt;summary&gt;&lt;br /&gt;/// Required method for Designer support - do not modify&lt;br /&gt;/// the contents of this method with the code editor.&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;void InitializeComponent(void)&lt;br /&gt;{&lt;br /&gt;this-&gt;rtf = (gcnew System::Windows::Forms::RichTextBox());&lt;br /&gt;this-&gt;BtnOpenFile = (gcnew System::Windows::Forms::Button());&lt;br /&gt;this-&gt;SuspendLayout();&lt;br /&gt;//&lt;br /&gt;// rtf&lt;br /&gt;//&lt;br /&gt;this-&gt;rtf-&gt;Location = System::Drawing::Point(12, 12);&lt;br /&gt;this-&gt;rtf-&gt;Name = L"rtf";&lt;br /&gt;this-&gt;rtf-&gt;Size = System::Drawing::Size(475, 297);&lt;br /&gt;this-&gt;rtf-&gt;TabIndex = 0;&lt;br /&gt;this-&gt;rtf-&gt;Text = L"";&lt;br /&gt;//&lt;br /&gt;// BtnOpenFile&lt;br /&gt;//&lt;br /&gt;this-&gt;BtnOpenFile-&gt;Location = System::Drawing::Point(12, 315);&lt;br /&gt;this-&gt;BtnOpenFile-&gt;Name = L"BtnOpenFile";&lt;br /&gt;this-&gt;BtnOpenFile-&gt;Size = System::Drawing::Size(475, 35);&lt;br /&gt;this-&gt;BtnOpenFile-&gt;TabIndex = 1;&lt;br /&gt;this-&gt;BtnOpenFile-&gt;Text = L"Open RTF File";&lt;br /&gt;this-&gt;BtnOpenFile-&gt;UseVisualStyleBackColor = true;&lt;br /&gt;this-&gt;BtnOpenFile-&gt;Click += gcnew System::EventHandler(this, &amp;amp;Form1::BtnOpenFile_Click);&lt;br /&gt;//&lt;br /&gt;// Form1&lt;br /&gt;//&lt;br /&gt;this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;this-&gt;ClientSize = System::Drawing::Size(499, 353);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;BtnOpenFile);&lt;br /&gt;this-&gt;Controls-&gt;Add(this-&gt;rtf);&lt;br /&gt;this-&gt;Name = L"Form1";&lt;br /&gt;this-&gt;Text = L"Form1";&lt;br /&gt;this-&gt;Load += gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Load);&lt;br /&gt;this-&gt;ResumeLayout(false);&lt;br /&gt;}&lt;br /&gt;#pragma endregion&lt;br /&gt;//Open RTF File&lt;br /&gt;private: System::Void BtnOpenFile_Click(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;rtf-&gt;LoadFile("C:\\RTF.rtf");&lt;br /&gt;rtf-&gt;BackColor=Color::Yellow;&lt;br /&gt;}&lt;br /&gt;private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {&lt;br /&gt;this-&gt;Text="Open RTF File";&lt;br /&gt;this-&gt;BackColor=Color::Red;&lt;br /&gt;this-&gt;MaximizeBox=false;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6064719148837444379-5773606203863361888?l=cplusplussourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cplusplussourcecode.blogspot.com/feeds/5773606203863361888/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6064719148837444379&amp;postID=5773606203863361888' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/5773606203863361888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6064719148837444379/posts/default/5773606203863361888'/><link rel='alternate' type='text/html' href='http://cplusplussourcecode.blogspot.com/2008/06/open-rtf-file.html' title='Open RTF File'/><author><name>Valentines Flower</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14029550718914083626'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MeJernKB7_c/SE3wrLRebFI/AAAAAAAAASY/ejwiqfmi9ak/s72-c/Open+RTF+File.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>