.NET Applets

To The Code!

If you've done a windows form control, or even just a windows form (controls aren't much harder than forms themselves, just a different mindset) you can do this .NET Applet stuff.

The Control

Create a new Windows Control Library project (demoControl). Drop your items and code into it and compile. Okay, okay, an example… let's do this (thanks Sven):

We have our project. It should default with a User Control. This looks like a Windows Form grid, but without the title bar. Quick reason behind this, it's NOT A FORM. It's a control. Your form will have the title bar, and any menus. (You also cannot drag a Main Menu component to this grid.)

So, drag some controls to your User Control (myControl). In our demo we are going to use a Combo Box and a Label. Very simple. Fill your Combo Box with some items. Whatever you feel like. I'm using different types of computer systems. (Laptops, Tablet PCs, Desktops)

Now we need to create some code. Double click on your combo box. The designer will create a method to handle the SelectedIndexChanged event. For example purposes, simply put some code in that takes the combo box text and drops it into the Label.Text property.

VB.NET

Me.Label10.Text = Me.ComboBox1.SelectedText

We're done for now, compile it and on to the HTML.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” - Edsger Dijkstra