Quantcast
Channel: Programming – DenRic Denise
Viewing all articles
Browse latest Browse all 36

VB Modern UI Design Tutorial No. 01

$
0
0

VB Modern UI Design Tutorial No. 01 – Login Screen

On this video VB Modern UI Design Tutorial I will show you on how to convert the Modern UI Design Tutorial No. 01 to a VB.Net project. For the design part you can refer to C# project, it is basically just proper placing of the controls. In project I also used the Metro Sliding Panel which also created on my previous tutorials and it is available in VB and C#.




modern-ui-design-tutorial-01-smmodern-ui-design-tutorial-02-sm




 

 

 

 

Converting this into a VB Modern UI Design Tutorial is not that too technical. You can need to know the correct syntax for declaring and raising events and aswell as creating variables.

The following are some of the important codes to convert.  The rest is pretty straight forward to follow.

C#
public event EventHandler SettingClosed;
public event EventHandler LogInSuccess;
VB
Public Event SettingClosed As EventHandler
Public Event LogInSuccess As EventHandler
C#
for (int i = 3; i < 13; i++)
{
MetroTile _tile = new MetroTile();
_tile.Size = new Size(30, 30);
_tile.Tag = i;
_tile.Style = (MetroColorStyle)i;
_tile.Click += _tile_Click;
flpSettings.Controls.Add(_tile);
}
VB
For i = 3 To 12
Dim _tile As New MetroTile
_tile.Size = New Size(30, 30)
_tile.Tag = i
_tile.Style = DirectCast(i, MetroColorStyle)
AddHandler _tile.Click, AddressOf _tile_Click
flpSettings.Controls.Add(_tile)
Next

 

VB Modern UI Design Tutorial No. 01
denricdenise.


Viewing all articles
Browse latest Browse all 36

Trending Articles