Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > Visual Basic.Net > Tips & Tricks


Search:
What's New - What's Hot
XML Literals  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: jpaulino      Rating:  
Read Reviews | Write Review |  Your Rating: 

XML Literals allow you to use XML syntax in your code. It’s easy to work with XML files this way, since you have that Tags in the code, but it’s also quicker to access information rather than the traditional methods....

How to: Read Connection Strings from the Web.config File  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This example reads a connection string from a Web.config file. The connectionStrings element is a ConnectionStringSettingsCollection collection of ConnectionStringSettings objects. Working with collection elements can be slightly more complicated than working with other configuration elements.

To update a configuration setting, use the Save or SaveAs method of the configuration object. For more information, see Using the Configuration Classes. For additional code examples, see the Conn...

How to: Inherit from Existing Windows Forms Controls  Version: 0.00     Price: $0.00  
Total Hits: 42  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you want to extend the functionality of an existing control, you can create a control derived from an existing control through inheritance. When inheriting from an existing control, you inherit all of the functionality and visual properties of that control. For example, if you were creating a control that inherited from Button, your new control would look and act exactly like a standard Button control. You could then extend or modify the functionality of your new control through the implement...

How to: Create a Windows Forms Control That Shows Progress  Version: 0.00     Price: $0.00  
Total Hits: 59  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following code example shows a custom control called FlashTrackBar that can be used to show the user the level or the progress of an application. It uses a gradient to visually represent progress.

The FlashTrackBar control illustrates the following concepts:
* Defining custom properties.
* Defining custom events. (FlashTrackBar defines the ValueChanged event.)
* Overriding the OnPaint method to provide logic to draw the control....

How to: Develop a Simple Windows Forms Control  Version: 0.00     Price: $0.00  
Total Hits: 33  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This section walks you through the key steps for authoring a custom Windows Forms control. The simple control developed in this walkthrough allows the alignment of its Text property to be changed. It does not raise or handle events....

How to: Bind to a Web Service Using the Windows Forms BindingSource  Version: 0.00     Price: $0.00  
Total Hits: 39  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you want to bind a Windows Form control to the results obtained from calling an XML Web service, you can use a BindingSource component. This procedure is similar to binding a BindingSource component to a type. You must create a client-side proxy that contains the methods and types exposed by the Web service. You generate a client-side proxy from the Web service (.asmx) itself, or its Web Services Description Language (WSDL) file. Additionally, your client-side proxy must expose the fields of ...

How to: Navigate Data in Windows Forms  Version: 0.00     Price: $0.00  
Total Hits: 36  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

In a Windows application, the easiest way to navigate through records in a data source is to bind a BindingSource component to the data source and then bind controls to the BindingSource. You can then use the built-in navigation method on the BindingSource such a MoveNext, MoveLast, MovePrevious and MoveFirst. Using these methods will adjust the Position and Current properties of the BindingSource appropriately. You can also find an item and set it as the current item by setting the Position pro...

How to: Create Smart Tags With Custom Recognizers in Word and .NET Framework 3.5  Version: 0.00     Price: $0.00  
Total Hits: 20  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

In Word projects that target the .NET Framework 3.5, you can control how Word recognizes smart tags in documents by deriving from the Microsoft.Office.Tools.Word.SmartTag class and overriding the Recognize method....

How to: Cache Data for Use Offline or on a Server  Version: 0.00     Price: $0.00  
Total Hits: 37  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

You can mark a data item to be cached in the document, so that it is available offline. This also makes it possible for the data in the document to be manipulated by other code when the document is stored on a server....

How to: Create New Documents  Version: 0.00     Price: $0.00  
Total Hits: 44  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you create a document programmatically, the new document is a native Microsoft.Office.Interop.Word..::.Document object. This object does not have the additional events and data binding capabilities of a Microsoft.Office.Tools.Word..::.Document host item. For more information, see Programmatic Limitations of Host Items and Host Controls.

Starting in SP1, you can use application-level add-ins to convert any Microsoft.Office.Interop.Word..::.Document object to a Microsoft.Office.Tools.W...

How to: Create a Web Service Method  Version: 0.00     Price: $0.00  
Total Hits: 23  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you create a Web service in managed code, you indicate the methods that are available through that Web service by placing the WebMethod attribute before the method declaration of a Public method. Private methods cannot serve as the entry point for a Web service although they can be in the same class and the Web service code can call them. The WebMethod attribute must be applied to each public method that is available as part of the Web service. For more information, see How to: Use the WebM...

How to: Respond to User Selection in a CheckBox Web Server Control  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

When the user selects a CheckBox control, the control raises an event that you can respond to....

How to: Access the HTML Source in the Managed HTML Document Object Model  Version: 0.00     Price: $0.00  
Total Hits: 59  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The DocumentStream and DocumentText properties on the WebBrowser control return the HTML of the current document as it existed when it was first displayed. However, if you modify the page using method and property calls such as AppendChild and InnerHtml, these changes will not appear when you call DocumentStream and DocumentText. To obtain the most up-to-date HTML source for the DOM, you must call the OuterHtml property on the HTML element....

How to: Configure Data Synchronization in an Application  Version: 0.00     Price: $0.00  
Total Hits: 46  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

If your application requires data from a remote database that does not have to be continuously retrieved from the database (or that is not always available), you can use a local database to store the data on the client computer with your application. You can then set up your application to synchronize data between the local and remote databases by using the Configure Data Synchronization dialog box to configure Microsoft Synchronization Services for ADO.NET....

How to: Implement a Designer for a Control     
Total Hits: 26  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This topic describes how to implement a designer (HelpLabelDesigner) for the HelpLabel extender provider control described in the How to: Implement a HelpLabel Extender Provider. The designer is a nested class in the HelpLabel control. The designer code example demonstrates the following points:
* HelpLabelDesigner derives from ControlDesigner.
* HelpLabelDesigner provides a designer verb by overriding the Verbs property specified in the IDesigner interface. At design time, verbs a...

How to capture a piece of the desktop     
Total Hits: 187  |  Today: 0Author: kurtsune      Rating:  
Read Reviews | Write Review |  Your Rating: 

Run the code. Press down the primary mouse button. The cursor changes to a +. Move the mouse so that the + is positioned on the upper left corner of the area you need to capture. Press the secondary mouse button while still having the other button depressed. Drag a rectangle and let go of the buttons. A SaveFileDialog appears. If you don't want to save the image, click Cancel. The image is always tucked in the clipboard, so you can just paste it in whatever document you have open....

Tips for Beginner when creating First Desktop application     
Total Hits: 122  |  Today: 0Author: Rupesh Kumar Swami      Rating:  
Read Reviews | Write Review |  Your Rating: 

First of all, this article is totally for Beginner. So there is not any special thing for Intermediate and Advanced level programmer. This article demostrate that how can we design forms in .NET application, apply appropriate validation(field level and form level) on controls and use some function to perform database operation. These are some tips for commonly faced problems by beginner in .NET . Some of these tips are mine and some of these i have got from different sources. My aim is not to c...

Get a Charge From Statics with Seven Essential Programming Tips     
Total Hits: 61  |  Today: 0Author: K. Scott Allen      Rating:  
Read Reviews | Write Review |  Your Rating: 

It is rare that you would work on a .NET-based application and not encounter a type with a Shared method or static field. Since these abstractions have special behaviors, there are important questions to ask about the implementation. When will the runtime initialize the static fields? Is this method thread safe? Could this class cause a bottleneck?...

Get info about local digital certificates with WSE 2.0 and .NET     
Total Hits: 87  |  Today: 0Author: Orka.      Rating:  
Read Reviews | Write Review |  Your Rating: 

First at all, I want to mention that this is my first article, so I will ask everybody to be patient and forgiving :) This article describes how to get information about digital certificates stored on your local machine; to be more specific, it looks into your System provider. It also shows how to search a certificate by name, and retrieve the certificate hash. For more info about .NET cryptography, read this article....

Easily Create A Single Instance Application     
Total Hits: 142  |  Today: 0Author: Steven Killick.      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sometimes you want your application to run single instance. For example, if you wrote a server application you probably only want a single instance to run at a time on the localhost.

This code was developed primarily for a server application running on a Win2KPro Multi-Processor server. It is intended to make absolutely certain that only one instance of the application runs at a time regardless of logged on users. The code detects all processes running in all desktops and all service exec...


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net