Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Saturday, November 22, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > Visual Basic.Net > Server Controls
Search:
What's New - What's Hot
Listings for ComboBox Control ComboBox Control (52)
Listings for Custom Controls Custom Controls (97)
Listings for DataGrid Control DataGrid Control (70)
Listings for List Controls List Controls (36)


Formatting the Windows Forms DataGrid Control in Visual Basic        
Total Hits: 8  |  Today: 0 Author: Seth Grossman       Rating:  
Read Reviews | Write Review |   Your Rating: 

A number of tasks you may want to accomplish with the Windows Forms DataGrid control are, surprisingly, more difficult than you might expect. Primarily, this is because the Windows Forms DataGrid control is column-based, rather than cell-based. As a result, to accomplish most tasks, you have to work with the columns, not the cells themselves. One example of a group of tasks that requires working with columns is changing the display properties of the grid (foreground color, background color, data...

Handling that Pesky Windows ControlBox        
Total Hits: 8  |  Today: 0 Author: Paul Kimmel       Rating:  
Read Reviews | Write Review |   Your Rating: 

The Red X, ControlBox, or whatever you call it, can be pesky. The ControlBox closes a window in a WinForms application. That's what it's for. If that form is the last open form or the main form, your application closes. If you handle the FormClosing event, you can Cancel the close operation. But, what happens if you write something like a wizard and the current form is not the main form? The current form closes, but now the user is left staring at a blank screen....

How To Make an AutoSizeTextBox        
Total Hits: 13  |  Today: 0 Author: saratan60       Rating:  
Read Reviews | Write Review |   Your Rating: 

This small Windows application makes any TextBox fit its contents like Google toolbar's Search TextBox in Internet Explorer. This application is very easy to understand and needs no particular background. We use the TextChanged event of the TextBox to resize it. First of all, we need to get the Graphics object from TextBox using the CreateGraphics() method inherited from the Control class. Then, use the MeasureString method that has several overloads. The simplest of them gets two parameters, a ...

ActiveX and Visual Basic: Enhance the Display of Long Text Strings in a Combobox or Listbox        
Total Hits: 12  |  Today: 0 Author: John Calvert       Rating:  
Read Reviews | Write Review |   Your Rating: 

The combobox and listbox controls in Visual Basic have no built-in support for displaying text strings that are too long to fit in the visible area of either control. This article describes several techniques to improve the readability of long strings in each control. The first technique uses tooltips to display a combobox or listbox item. The other techniques, which use various Windows APIs, include adding a horizontal scrollbar for a listbox and determining the necessary width of the longest s...

Client-side Cookies, Unchecking Checkboxes, Microsoft.com Toolbar, WebBrowser Control, and More        
Total Hits: 6  |  Today: 0 Author: Robert Hess       Rating:  
Read Reviews | Write Review |   Your Rating: 

I have a series of pages on my Web site, with different want ads on each page. Users click on the ads they want to see. In order for me to identify users and put them in touch with the person who placed the ad, I request that users register with a user ID, password, and e-mail address, which they keep for future visits. Before registered users look at the ads, I would like them to enter their user ID and password. Then, when they click on an ad, a form is sent to me with the user ID, password, a...

Server-side Controls in Active Server Pages+        
Total Hits: 7  |  Today: 0 Author: George Shepherd       Rating:  
Read Reviews | Write Review |   Your Rating: 

Ever since the PDC in July I've been hearing about Active Server Pages+ (ASP+) server-side controls. What are they, and how are they different from ActiveX® controls? Why would I ever use one? That's a good question. With all the new technology coming from Microsoft, it's sometimes hard to keep everything straight. Server-side controls are custom controls. You're probably thinking that custom controls have been around forever, right? There were VBXs in the early 90s, OLE Controls in 1994, and A...

Building a Tiered Web App Using the DataSet and the ASP DataGrid        
Total Hits: 10  |  Today: 0 Author: msdn.microsoft       Rating:  
Read Reviews | Write Review |   Your Rating: 

Much of the success of the ADO Recordset can be attributed to its lightweight structure and easy-to-use interface. Now with the introduction of the ADO.NET DataSet, you can represent more than one data structure, making the ADO Recordset even more flexible. As I discussed in the February 2002 Data Points column, the DataSet can represent multiple related data structures and their relationships. And because it's built on XML, the DataSet can also transform itself into an XML document. This gives ...

Writing ActiveX Controls in Visual Basic versus Visual C++        
Total Hits: 7  |  Today: 0 Author: George Shepherd       Rating:  
Read Reviews | Write Review |   Your Rating: 

A couple of months ago I read an article that compared writing ActiveX® controls in MFC to writing them in ATL. I know you can also write ActiveX controls in Visual Basic®. Can you tell me how writing ActiveX controls in Visual Basic is different from writing them in C++? other. Of course, in the end the client doesn't care, right? This is COM and as long as the client and the object agree on the interfaces to use, the two should be able to integrate easily. However, each environment has some ...

Handling Null Values with Controls        
Total Hits: 8  |  Today: 0 Author: Ken Spencer       Rating:  
Read Reviews | Write Review |   Your Rating: 

In Visual Basic® .NET, the textbox and checkbox controls do not accept null values. Is there a way to modify these controls in order to be able to accept nulls? This is a good question. To answer it, I had to do a bit of research and testing. Luckily, you should find the solution applicable to any control you use. First I need to clarify what is meant by null. In the database itself a null value is simply represented by NULL. In Visual Basic .NET and ADO.NET, null is mapped into a special value,...

Create a Graphical Editor Using RichTextBox and GDI+        
Total Hits: 9  |  Today: 0 Author: Ken Spencer       Rating:  
Read Reviews | Write Review |   Your Rating: 

Irecently was asked a question by a reader who is developing a graphical editor that supports non-Windows® objects (rectangle, line, circle, image) as well as a Windows object (a text control derived from the rich text control). He wanted to define the Z-order of these objects, but discovered that the text window always hides other objects. Figuring out how to implement the Z-order took some time and research. I've seen discussions about making controls transparent, but I couldn't find a good an...

A New Grid Control in Windows Forms        
Total Hits: 9  |  Today: 0 Author: Dino Esposito       Rating:  
Read Reviews | Write Review |   Your Rating: 

Grid controls are essential in many of today's apps. Until now, though, most developers using Visual Basic® have had to buy third-party components to get an effective, easy to use grid component. The Windows® Forms DataGrid turned out to lack too many features for the average developer. Third-party grid controls are often more feature-rich than anything found in a system framework like the Microsoft® .NET Framework. But for in-house and personal applications that don't need a professional qualit...

Designing With Custom Attributes        
Total Hits: 6  |  Today: 0 Author: Ted Pattison       Rating:  
Read Reviews | Write Review |   Your Rating: 

One of the most powerful aspects of the Microsoft® .NET Framework is its support for attributes. Attribute-based programming is extremely powerful because it adds a declarative dimension to designing and writing software. Declarative programming provides an elegant new way for developers to leverage services and functionality from reusable libraries and frameworks as well as from developer tools, such as the Visual Basic® .NET compiler. As a user of Visual Basic .NET, it's essential that you und...



DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net