Click here to Skip to main content
15,881,812 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionShowDialog causing system hang Pin
Dave Parker31-Oct-07 2:05
Dave Parker31-Oct-07 2:05 
GeneralRe: ShowDialog causing system hang Pin
Dave Parker31-Oct-07 5:19
Dave Parker31-Oct-07 5:19 
QuestionUpgrading vb.net 2002 to vb.net 2005 Pin
gil_be31-Oct-07 0:02
gil_be31-Oct-07 0:02 
AnswerRe: Upgrading vb.net 2002 to vb.net 2005 Pin
Luc Pattyn31-Oct-07 0:23
sitebuilderLuc Pattyn31-Oct-07 0:23 
GeneralRe: Upgrading vb.net 2002 to vb.net 2005 Pin
gil_be31-Oct-07 1:15
gil_be31-Oct-07 1:15 
GeneralRe: Upgrading vb.net 2002 to vb.net 2005 Pin
Luc Pattyn31-Oct-07 2:03
sitebuilderLuc Pattyn31-Oct-07 2:03 
QuestionInsert Code tag in the webbrowser control Pin
Luay.Essa29-Oct-07 21:14
Luay.Essa29-Oct-07 21:14 
QuestionLoading a User Control onto a panel at runtime Pin
Henry Venn28-Oct-07 1:49
Henry Venn28-Oct-07 1:49 
Hello All,
I am fairly new to VB and I am trying to load a user control (with a few text boxes - nothing special) using the built in snippet:

Dim myAssets As New UserControlAssets()
With myAssets
.Location = New Point(64, 40)
.Size = New Size(668, 488)
.TabIndex = 0
End With

Try
Me.ParentForm.Controls.Item("panelMiddle").Controls.Add(myAssets)
Catch nrx As NullReferenceException
Debug.Print("Apparently its NULL.")
End Try

This is the exception. I have tried variations of different controls, even a listview. I am missing something vital, and I've spent so much time on this. If you cant see the problem from the code but have a clue please respond and I will provide additional data.

Regards,
H. Venn
AnswerRe: Loading a User Control onto a panel at runtime Pin
TJoe28-Oct-07 6:52
TJoe28-Oct-07 6:52 
QuestionRe: Loading a User Control onto a panel at runtime Pin
Henry Venn28-Oct-07 15:56
Henry Venn28-Oct-07 15:56 
AnswerRe: Loading a User Control onto a panel at runtime Pin
TJoe29-Oct-07 2:14
TJoe29-Oct-07 2:14 
GeneralRe: Loading a User Control onto a panel at runtime Pin
Henry Venn30-Oct-07 0:58
Henry Venn30-Oct-07 0:58 
GeneralRe: Loading a User Control onto a panel at runtime Pin
TJoe30-Oct-07 2:01
TJoe30-Oct-07 2:01 
QuestionRe: Loading a User Control onto a panel at runtime Pin
Henry Venn31-Oct-07 17:18
Henry Venn31-Oct-07 17:18 
AnswerRe: Loading a User Control onto a panel at runtime Pin
Henry Venn31-Oct-07 17:35
Henry Venn31-Oct-07 17:35 
QuestionEmbedding an Access table into datagrid Pin
latuan13227-Oct-07 21:53
latuan13227-Oct-07 21:53 
AnswerRe: Embedding an Access table into datagrid Pin
Paul Conrad28-Oct-07 6:33
professionalPaul Conrad28-Oct-07 6:33 
GeneralHorizontally Scroll Lines of Text Pin
Brady Kelly27-Oct-07 1:40
Brady Kelly27-Oct-07 1:40 
GeneralRe: Horizontally Scroll Lines of Text Pin
Luc Pattyn28-Oct-07 7:08
sitebuilderLuc Pattyn28-Oct-07 7:08 
GeneralRe: Horizontally Scroll Lines of Text Pin
Brady Kelly29-Oct-07 3:21
Brady Kelly29-Oct-07 3:21 
GeneralRe: Horizontally Scroll Lines of Text Pin
Luc Pattyn29-Oct-07 3:27
sitebuilderLuc Pattyn29-Oct-07 3:27 
GeneralRe: Horizontally Scroll Lines of Text Pin
Brady Kelly29-Oct-07 4:02
Brady Kelly29-Oct-07 4:02 
GeneralRe: Horizontally Scroll Lines of Text Pin
Luc Pattyn29-Oct-07 4:31
sitebuilderLuc Pattyn29-Oct-07 4:31 
GeneralRe: Horizontally Scroll Lines of Text Pin
Brady Kelly29-Oct-07 4:39
Brady Kelly29-Oct-07 4:39 
QuestionAccessing multiple groups of radiobuttons Pin
Steve Landers26-Oct-07 13:25
Steve Landers26-Oct-07 13:25 

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.