Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips

Controls - Page 2

21-40 of 333     Previous     Next
Accessing Server Controls Using JavaScript
by Santhi Maadhaven
Find out how to access your server controls using JavaScript.
Set Your onclick Event to Occur on the Client Before the Server
by Huang Rickel
Follow these three simple steps to set your onclick event to occur on the client before it occurs on the server.
Masked Edit Control
by Raghavan Swaminathan
Learn how to include characters in your mask that are also part of the set of mask syntax characters.
Display itemdata in a ComboBox
by Nkata Levi
This code shows how to display specific itemdata in a ComboBox.
Change the Tab Order of the Controls in a Dialog Box
by Arpad Pandy
Changing the Z order of the controls allows you to change the tab order of the controls in your dialog box.
Create and Execute Web Links with the LinkLabel Control
by Parthasarathy Mandayam
Learn how to easily create makes with the LinkLabel control.
Visual Inheritance with C#
by Boris Eligulashvili
Microsoft VS.NET provides design-time support for form inheritance. A derived form can be added to your solution by right-clicking on your project in the Solution Explorer window and choosing "Add..." and then "Add Inherited Form…" from the context menu.
Deselect All Items in a ListView Control
by Suresh Lale
Use this code to deselect all items in a ListView control.
How to Determine the Item Selected from a Property Grid Drop-down List
by Vladimir Shaposhnik
In Visual Studio, when you select an item on a form you're building, the Property Grid appears and lets you set various properties (e.g. background color, width, height, text color, etc.) from a two-column table. This tip shows how to know which item a user selects from the drop-down list.
Set Two Items of a Property Grid from the Drop-down List
by Vladimir Shaposhnik
The example in this tip demonstrates the technique for setting two items of a property grid from the drop-down list
How to Reference a Control with a String Like a Name
by Armando Antonio Dasilva
GetSelectedRadioButtonValue - Retrieving the value of the selected RadioButton
by Marco Bellinaso
Return the Tag value of the selected RadioButton from the input array of controls. This is useful when you have many radio buttons, with a value associated to each one, and want to select the value of the checked option. Instead of writing something like this: If RadioButton1.Checked Then
GetControlHtml - Retrieving the HTML code generated by the input ASP.NET server control
by Marco Bellinaso
Return the HTML code generated by the input ASP.NET server control Note: the function only works with server side controls that don't generate postbacks and that can be declared outside a server-side form Example: TextBox1.Text = GetControlHtml(DataGrid1)
GetListSelections - Retrieve a comma delimited list of items selected in a List control
by Marco Bellinaso
Return a comma delimited list of items selected in a List control (e.g. ListBox, CheckBoxList) Example: Dim selections As String = GetListSelections(CheckBoxList1)
HasUploadedFile - Return whether a file uploader control has posted a file to the server
by Marco Bellinaso
Return whether a file uploader control has posted a file to the server
Pre-filling a TextBox control with TextMode="Password"
by Marco Bellinaso
When the TextMode property of a TextBox control is set to Password, the value you assign to the Text property (either declaratively or programmatically) isn't actually displayed at runtime, not even in masked mode (with the * chars). This is of course done for security reasons, because even if ...
SetListSelections - Select in a List control the items passed as a comma delimited list
by Marco Bellinaso
Select the specified items (passed as a comma delimited list) in the input List control (e.g. ListBox, CheckBoxList) Example: SetListSelections(CheckBoxList1, "item 3, item 5, item 6")
Enable a key-skipping mechanism for a TextBox
by Marco Bellinaso
Enable the key-skipping mechanism for the input TextBox and for the input chars Example: don't process the 'A', 'b' and '0' chars EnableTextBoxCharSkip(TextBox1, "A"c, "b"c, "0"c)
GetControlsByTag - Find all the controls with the specified Tag value
by Alberto Falossi
Find all the controls with the specified Tag value Example: Dim ctrls() As Control = GetControlsByTag("OK", Me) Dim ctrl As Control For Each ctrl In ctrls Debug.WriteLine(ctrl.Name) Next
GetTextBoxCurrentLine - Determine the current line in a multiline TextBox control
by Marco Bellinaso
Determine the current line in a multiline TextBox control Example: MessageBox.Show(GetTextBoxCurrentLine(TextBox1))
21-40 of 333     Previous     Next
Sitemap