- spinner.zip
- CustomControls
- bin
- calendar
- css
- img
- ui-bg_flat_0_aaaaaa_40x100.png
- ui-bg_flat_75_ffffff_40x100.png
- ui-bg_glass_55_fbf9ee_1x400.png
- ui-bg_glass_65_ffffff_1x400.png
- ui-bg_glass_75_dadada_1x400.png
- ui-bg_glass_75_e6e6e6_1x400.png
- ui-bg_glass_95_fef1ec_1x400.png
- ui-bg_highlight-soft_75_cccccc_1x100.png
- ui-icons_222222_256x240.png
- ui-icons_2e83ff_256x240.png
- ui-icons_454545_256x240.png
- ui-icons_888888_256x240.png
- ui-icons_cd0a0a_256x240.png
- js
- colorpicker
- css
- img
- colorpicker_overlay.png
- colorpicker_select.gif
- custom_background.png
- custom_cancel.png
- custom_hex.png
- custom_hsb_b.png
- custom_hsb_h.png
- custom_hsb_s.png
- custom_indic.gif
- custom_rgb_b.png
- custom_rgb_g.png
- custom_rgb_r.png
- custom_submit.png
- js
- elrte
- css
- img
- elrte-toolbar.png
- pixel.gif
- js
- lang
- obj
- Debug
- DesignTimeResolveAssemblyReferences.cache
- DesignTimeResolveAssemblyReferencesInput.cache
- ResGen.read.1.tlog
- ResGen.write.1.tlog
- TempPE
- VisualJS.Web.Forms.SliderControl.resources
- WebControls.csproj.FileListAbsolute.txt
- WebControls.dll
- WebControls.pdb
- x86
- Debug
- DesignTimeResolveAssemblyReferencesInput.cache
- ResGen.read.1.tlog
- ResGen.write.1.tlog
- TempPE
- VisualJS.Web.Forms.SliderControl.resources
- WebControls.csproj.FileListAbsolute.txt
- WebControls.dll
- WebControls.pdb
- Properties
- slider
- css
- img
- arrows.png
- bullets.png
- loading.gif
- js
- spinner
- css
- img
- ui-bg_diagonals-thick_18_b81900_40x40.png
- ui-bg_diagonals-thick_20_666666_40x40.png
- ui-bg_flat_10_000000_40x100.png
- ui-bg_glass_100_f6f6f6_1x400.png
- ui-bg_glass_100_fdf5ce_1x400.png
- ui-bg_glass_65_ffffff_1x400.png
- ui-bg_gloss-wave_35_f6a828_500x100.png
- ui-bg_highlight-soft_100_eeeeee_1x100.png
- ui-bg_highlight-soft_75_ffe45c_1x100.png
- ui-icons_222222_256x240.png
- ui-icons_228ef1_256x240.png
- ui-icons_ef8c08_256x240.png
- ui-icons_ffd27a_256x240.png
- ui-icons_ffffff_256x240.png
- js
- Web
- WebControls.csproj
- WebControls.csproj.user
- SpinnerTest
- VisualJSSetup_1.042.zip
- spinner-noexe.zip
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using VisualJS;
using VisualJS.Web.Forms;
using System.Linq;
using System.Text;
namespace SpinnerTest.VisualJSApp
{
public partial class FormInElement : VisualJS.Web.Forms.Form
{
public FormInElement()
{
InitializeComponent();
}
//Use the below constructor if you create the instance of this Form object other than the active Thread
//otherwise you will receive "Cant locate the ClientID in active context. Consider using Form constructor with ClientID parameter" exception
public FormInElement(string clientId): base(clientId)
{
InitializeComponent();
}
private void jButton1_Click(object sender, EventArgs e)
{
MessageBox.Show("Thanks for your feedback!", this);
}
private void textBox1_OnSuggestion(string value)
{
Dictionary<string, string> list = new Dictionary<string, string>();
string [] words = value.Split(' ');
foreach (string word in words)
{
if (word.ToLower().StartsWith("po"))
{
list.Add("PokeIn", Color.DarkGreen.ToWebColor());
list.Add("Power", Color.Maroon.ToWebColor());
list.Add("Posix", Color.DarkBlue.ToWebColor());
}
else if (word.ToLower().StartsWith("vi"))
{
list.Add("VisualJS.NET", Color.Black.ToWebColor());
list.Add("Visual C++", Color.Brown.ToWebColor());
list.Add("Visual Basic", Color.YellowGreen.ToWebColor());
}
}
if (list.Count > 0)
textBox1.UpdateSuggestion(list);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.