Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2004, 08:36 PM
Authorized User
 
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re-Creating User Control

Hey guyz, i am trying to re-create a user control and align them on a form at run time. The code below runs well without any problems. the only is i don't see the control being re-created (Visible) on the form. This is a VB.Net Proj.. if u know what i can do please help realtime!!

Dim continousFrm(3) As ctlRoaster
Dim i As Integer
For i = 1 To 3
continousFrm(i) = New ctlRoaster()
continousFrm(i).Visible = True
continousFrm(i).Location = New Point(34, 34)
continousFrm(i).TextBox3.Text = "45555"

Next i

Also, Is there away in VB.Net i can have a continous form like in Ms Access, where i can put controls repeat itself. I dont wanna use data grid coz i can't add controls like dateTimePicker or combo box.

LION OF JUDDAH!
__________________
LION OF JUDDAH!
 
Old April 12th, 2004, 12:28 AM
Authorized User
 
Join Date: Jun 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about:

continuousFrm.Show()
 
Old April 12th, 2004, 02:26 AM
Authorized User
 
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default


    Hey i figured it out.

    You use object.control.Add(New object())..hopefully it helps somebody else. thanx to you (shadowpug) for tryin to help.

LION OF JUDDAH!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a ASPNET user s_boland .NET Web Services 2 June 6th, 2007 02:22 PM
get an error when creating a new user...?? riki_gill ASP.NET 1.x and 2.0 Application Design 1 October 29th, 2006 01:27 PM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.