Click here to Skip to main content
15,895,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I edit datagridview by importing csv file into it Pin
rajulama13-Apr-09 4:06
rajulama13-Apr-09 4:06 
GeneralRe: How can I edit datagridview by importing csv file into it Pin
Dave Kreskowiak13-Apr-09 6:41
mveDave Kreskowiak13-Apr-09 6:41 
Questionproblem related to tab control Pin
nazimghori12-Apr-09 18:34
nazimghori12-Apr-09 18:34 
AnswerRe: problem related to tab control Pin
Dave Kreskowiak12-Apr-09 18:47
mveDave Kreskowiak12-Apr-09 18:47 
QuestionRe: problem related to tab control Pin
nazimghori12-Apr-09 19:58
nazimghori12-Apr-09 19:58 
AnswerRe: problem related to tab control Pin
Dave Kreskowiak13-Apr-09 3:46
mveDave Kreskowiak13-Apr-09 3:46 
AnswerRe: problem related to tab control Pin
Warp-1015-Apr-09 6:39
Warp-1015-Apr-09 6:39 
QuestionDynamically Load User Control WinForms - Please Help!! Pin
New2This212-Apr-09 17:26
New2This212-Apr-09 17:26 
Cry | :((

Can someone please tell me how to load multiple instances of the Same UserControl in a Windows Form? I've done this in ASP.NET, but for some reason in the Windows Form Environment I can only dynamically load a single instance of any given userControl.

The code below will put multiple controls on a form, but if I try a User Control, it only works the first time. After trying to load the second instance of the same user control, no errors that occur, but the Control Count of the Page does not increase, and the original user control remains unchanged.

Any help would be greatly appreciated. Thank you very much in advance!!!

Private id As Integer = 0
Private xAxis As Integer = 50
Private yAxis As Integer = 50

Dim x As UserControl1
x = New UserControl1
x.Name = "x" & id
Dim p As New Point(xAxis, yAxis)
x.Location = p

id += 1
yAxis += 50

Me.Controls.Add(x)

OR
Private id As Integer = 0
Private xAxis As Integer = 50
Private yAxis As Integer = 50

Dim x As TextBox
Dim p As New Point(xAxis, yAxis)

x = New TextBox
x.Name = "x" & id
x.Location = p

id += 1
yAxis += 50

Me.Controls.Add(x)
AnswerRe: Dynamically Load User Control WinForms - Please Help!! Pin
Dave Kreskowiak12-Apr-09 18:45
mveDave Kreskowiak12-Apr-09 18:45 
GeneralRe: Dynamically Load User Control WinForms - Please Help!! Pin
New2This213-Apr-09 3:15
New2This213-Apr-09 3:15 
GeneralRe: Dynamically Load User Control WinForms - Please Help!! Pin
Dave Kreskowiak13-Apr-09 3:48
mveDave Kreskowiak13-Apr-09 3:48 
GeneralRe: Dynamically Load User Control WinForms - Please Help!! Pin
New2This213-Apr-09 4:55
New2This213-Apr-09 4:55 
Questionhow to upload excel file data to access if excel file have header with special character Pin
paine113511-Apr-09 23:48
paine113511-Apr-09 23:48 
AnswerRe: how to upload excel file data to access if excel file have header with special character Pin
Eddy Vluggen12-Apr-09 23:55
professionalEddy Vluggen12-Apr-09 23:55 
Questiondatasourcing Pin
rajulama11-Apr-09 9:43
rajulama11-Apr-09 9:43 
AnswerRe: datasourcing Pin
Luc 64801111-Apr-09 10:04
Luc 64801111-Apr-09 10:04 
GeneralRe: datasourcing Pin
rajulama11-Apr-09 10:11
rajulama11-Apr-09 10:11 
GeneralRe: datasourcing Pin
Luc 64801111-Apr-09 10:21
Luc 64801111-Apr-09 10:21 
AnswerRe: datasourcing Pin
Naji El Kotob11-Apr-09 23:34
Naji El Kotob11-Apr-09 23:34 
GeneralRe: datasourcing Pin
Dave Kreskowiak12-Apr-09 6:58
mveDave Kreskowiak12-Apr-09 6:58 
GeneralRe: datasourcing Pin
Naji El Kotob12-Apr-09 9:45
Naji El Kotob12-Apr-09 9:45 
GeneralRe: datasourcing Pin
Dave Kreskowiak12-Apr-09 16:36
mveDave Kreskowiak12-Apr-09 16:36 
GeneralRe: datasourcing Pin
rajulama12-Apr-09 18:39
rajulama12-Apr-09 18:39 
GeneralRe: datasourcing Pin
Naji El Kotob12-Apr-09 20:42
Naji El Kotob12-Apr-09 20:42 
QuestionVB FORMS DISPALY Pin
NAVAF00911-Apr-09 8:02
NAVAF00911-Apr-09 8:02 

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.