Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Avoid connecting to a database through a connection string Pin
jzonthemtn23-Aug-08 2:05
jzonthemtn23-Aug-08 2:05 
AnswerRe: Avoid connecting to a database through a connection string Pin
jzonthemtn23-Aug-08 2:07
jzonthemtn23-Aug-08 2:07 
AnswerRe: Avoid connecting to a database through a connection string Pin
rprateek24-Aug-08 15:44
rprateek24-Aug-08 15:44 
AnswerRe: Avoid connecting to a database through a connection string Pin
Jon_Boy25-Aug-08 1:40
Jon_Boy25-Aug-08 1:40 
AnswerRe: Avoid connecting to a database through a connection string Pin
AlexeiXX325-Aug-08 6:15
AlexeiXX325-Aug-08 6:15 
Generalproblem when change C# to VB.Net Pin
Golden Jing22-Aug-08 18:36
Golden Jing22-Aug-08 18:36 
GeneralRe: problem when change C# to VB.Net Pin
Paul Conrad22-Aug-08 19:40
professionalPaul Conrad22-Aug-08 19:40 
GeneralRe: problem when change C# to VB.Net Pin
Golden Jing26-Aug-08 0:09
Golden Jing26-Aug-08 0:09 
sorry it's not show the underline i put tag but it not show.

public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();

allStands = new List[] { Stand1plates, Stand2plates, Stand3plates };

// Stand2plates.Add(3);
}

List[] allStands;
List Stand1plates = new List();
List Stand2plates = new List();
List Stand3plates = new List();

private void MoveFromTo(int source, int dest)
{
int top = allStands[source-1][allStands[source-1].Count - 1];
allStands[source - 1].Remove(top);
allStands[dest-1].Add(top);

RedrawPanels();

}
=================================
I change it to VB.net as bellow:

Public Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
' Stand2plates.Add(3);
allStands = New List() {Stand1plates, Stand2plates, Stand3plates}
End Sub

Private allStands As List(Of Integer)
Private Stand1plates As New List(Of Integer)
Private Stand2plates As New List(Of Integer)
Private Stand3plates As New List(Of Integer)

Private Sub MoveFromTo(ByVal source As Integer, ByVal dest As Integer)
Dim top As Integer = allStands(source - 1)(allStands(source - 1).Count - 1)
allStands(source - 1).Remove(top)
allStands(dest - 1).Add(top)

RedrawPanels()
End Sub
End Sub

VB.Net

QuestionVB 2005 program thread calling vbscript 5 [modified] Pin
rderkis22-Aug-08 14:56
rderkis22-Aug-08 14:56 
AnswerRe: VB 2005 program thread calling vbscript 5 Pin
jzonthemtn23-Aug-08 2:12
jzonthemtn23-Aug-08 2:12 
QuestionVB 6 to VB.Net syntax... Pin
CCG322-Aug-08 6:57
CCG322-Aug-08 6:57 
AnswerRe: VB 6 to VB.Net syntax... Pin
paas22-Aug-08 10:36
paas22-Aug-08 10:36 
GeneralRe: VB 6 to VB.Net syntax... Pin
Thomas Stockwell24-Aug-08 5:17
professionalThomas Stockwell24-Aug-08 5:17 
Questionloading report using crystal report Pin
Wael Hawari22-Aug-08 5:03
Wael Hawari22-Aug-08 5:03 
AnswerRe: loading report using crystal report Pin
Netblue23-Aug-08 3:43
Netblue23-Aug-08 3:43 
QuestionInternet Explorer - Mouse being disabled Pin
Dennis Lokken22-Aug-08 2:58
Dennis Lokken22-Aug-08 2:58 
AnswerRe: Internet Explorer - Mouse being disabled Pin
Thomas Stockwell22-Aug-08 4:49
professionalThomas Stockwell22-Aug-08 4:49 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Dennis Lokken23-Aug-08 3:56
Dennis Lokken23-Aug-08 3:56 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Thomas Stockwell23-Aug-08 6:09
professionalThomas Stockwell23-Aug-08 6:09 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Dennis Lokken23-Aug-08 6:38
Dennis Lokken23-Aug-08 6:38 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Thomas Stockwell23-Aug-08 7:13
professionalThomas Stockwell23-Aug-08 7:13 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Paul Conrad23-Aug-08 7:25
professionalPaul Conrad23-Aug-08 7:25 
AnswerRe: Internet Explorer - Mouse being disabled Pin
Paul Conrad22-Aug-08 19:41
professionalPaul Conrad22-Aug-08 19:41 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Dennis Lokken23-Aug-08 3:40
Dennis Lokken23-Aug-08 3:40 
GeneralRe: Internet Explorer - Mouse being disabled Pin
Paul Conrad23-Aug-08 4:50
professionalPaul Conrad23-Aug-08 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.