/Home /Archive /Syndicate /Blog /Support /About /Contact  
All Visual Basic Feeds in one place!





In previous blogs, I looked at how to access a plain text file through a RichTextBox and then how to open and save content in RTF format .   In the second blog, I also looked at some core editing features which are available as keyboard shortcuts. This time I want to look at how to create a simple text editor based around the RichTextBox.  I also want to cover the scenario where you load a file of one type, such as a plain  text file, make changes and then save it as an ... [ read more ]


Apply the Visual Basic  HideModuleName attribute to hide a module's name from intellisense. This attribute is useful for extending the Visual Basic My namespace. Here's an example... ...( read more )
More About PLINQ Why PLINQ? Since my last post a couple of friends asked me: "Why PLINQ?".... ...( read more )


You might think that a set of radio buttons behaves like a single control, and can be used interchangeably with a single-select ComboBox.  Often it can, however there is a slight difference that can trip you up. If you add a "CheckedChanged" event to all the buttons (or a single one that handles them all), you will find that the event code fires twice.  Checking a new button fires the change event for the new button, because it is now checked.  It also fires ... [ read more ]


Unless you explicitly set a Silverlight 3 page's TabNavigation property to 'Cycle', a user can tab off the Silverlight page to the browsers address bar and behond. See the TabNavigation property assignment in the XAML code below ...( read more )


In an earlier blog , I looked at how to load and save plain text between a RichTextBox  and a txt file.   This time I want to look at a different case where text formatting has been applied to the content.   For the purposes of this sample I’m going to take a document that has been created in MS Word.  One of the many formats that both MS Word and WordPad support is RTF.   You can view and edit the RTF document in the RichTextBox. The WPF Window ... [ read more ]


When you add rounded values together, always rounding .5 in the same direction results in a bias that grows with the more numbers you add together. This is sometimes called "Common Rounding". One way to minimize the bias is with banker's rounding. ...( read more )
Silverlight can popup a new browser window by calling the System.Windows.Browser HtmlWindow.PopUpWindow method. ...( read more )


Sometimes a Silverlight application needs to navigate to a .aspx page in the web site root from which it is being hosted. One way to do this is to use the HtmlPage class. ...( read more )
This blog post provides an example of parallel programing with Visual Basic 2010. This example uses Parallel Linq (PLINQ) which is a parallel implementation of LINQ to Objects. PLINQ implements the full set of LINQ standard query operators as extension methods for the T:System.Linq namespace and has additional operators for parallel operations. PLINQ queries scale in the degree of concurrency based on the capabilities of the host computer. PLINQ increases the speed of LINQ to O ... [ read more ]
One of the really fun things about being associated with the Visual Basic team is getting to see all of the varied usages to which our customers put it.   From enterprise software to games, our customer base covers a wide range.   The most fun to see, however, are the hobby applications, because the writers of that code come up with some pretty off-the-wall (but very cool) uses for it. Case in point:   I was contacted two weeks ago by a gentleman named David Swoboda ... [ read more ]


If you go into a Visual Studio method and start typing "MessageBox", you get a pop-up with some helpful text like "Displays a message box with the specified text...".  As you pick one of the overloaded methods, the pop-up changes appropriately, and explains each field.  For example, it might show " Text: the text to display in the message box". You can have Visual Studio give you the same hints on your own methods by using ... [ read more ]
Would you like to create applications that utilize multiple cores (CPUs)? Would you like to enable multiple threads to be executed simultaneously? ...( read more )


The RichTextBox can be a very useful control to take in text input from a user.   With minimal work, you can create a reasonable text editor based on this control.  But there’s not much point in having a multifunctional RichTextBox around if you can’t save the input or redisplay it when needed.  So in the next few blogs I’m going to demonstrate some of the ways you can load and save content with a WPF RichTextBox.   Loading Plain Text Files OK, ... [ read more ]


It’s no secret that many of the .NET Framework functions are built on top of the Windows APIs. A quick visit to www.pinvoke.net provides a quick glance at many of those functions and more. While numerous of these functions are built-in to the .NET Framework, some of the more interesting ones are left aside. Here we examine two functions provided by the Kernel32.dll. Wikipedia defines the Kernel32.dll as: “Exposes to applications most of the Win32 base APIs, such as memory management ... [ read more ]



Forum Discussions
.NET / .NET Newbies
.NET / .NET General
.NET / .NET 2005
.NET / VB.NET
.NET / C#
.NET / ADO.NET & XML
.NET / Reporting.NET
.NET / ASP.NET
Visual Basic 6 / VB6 Newbies
Visual Basic 6 / VB6 General
Visual Basic 6 / VB6 Controls & ActiveX
Visual Basic 6 / VB6 & Databases
Visual Basic 6 / VB6 & Reporting
Visual Basic 6 / VB6 & WinAPI
Visual Basic 6 / VB6 & Web Development
Visual Basic 6 / VBA
Visual Basic 6 / eMbedded Visual Basic
Visual Basic 6 / Graphics, Games, Multimedia
© 2005 Serge Baranovsky. All rights reserved.
All feed content is property of original publisher. Designated trademarks and brands are the property of their respective owners.

This site is maintained by SubMain(), a division of vbCity.com, LLC