473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

how to call a form in vb.net dynamically

I am developing an application in vb.net, in which i m using a treeview control which display nodes generated from database, when i select a node it gives me a form name that comes also from datahase, now i have to call this form. how it should be??

Can any one help.
Apr 27 '09 #1
4 4479
artov
40
What do you mean by form name? Name property of the Control class or something else? And more important, what do you mean by calling form? Do you mean creating the form, and then sending ShowDialog or is the form already created, but possible hidden?
Apr 28 '09 #2
@artov
My application have various form..not hidden..name of the forms are saved in data base...in the treeview when i select a particular form..it gives me the form name ..which is in string format..now i want to show the selected form.
Apr 28 '09 #3
Curtis Rutland
3,256 Expert 2GB
I would use a select case statement, and just compare the value to constant strings, then launch the proper form when cases match.
Apr 28 '09 #4
Frinavale
9,735 Expert Mod 8TB
Could reflection help you at all here?
When you're referring to the Form Name are you referring to the variable name of an instance of the form? Or are you referring to the Name of the form?

How did you save the form name into the database in the first place?
Can you use the same logic in reverse to retrieve the form?
May 1 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
1
by: jaykchan | last post by:
I would like to know how to call various routines dynamically using VB.NET. Let say I have a class called CMyBarcodeReader that needs to send a barcode number that it has received from scanner...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
4
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where...
1
by: Tom | last post by:
I am dynamically loading a DLL that I wrote that contains forms, a module, and classes. I am doing this via: Dim asm As = .LoadFrom(MyDLLPath) Dim TypeToLoad As Type = asm.GetType(MyDLLName &...
8
by: Goldwind | last post by:
Hi, I"m writing a page in asp. When the user presses on Submit the form is passed by Post to a url in a different site. The problem is that i want to do this action in script, meaning call a...
7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
7
by: Steve_Black | last post by:
Hello, I'm toying with the idea of loading a MenuStrip (VB.Net 2005) dynamically based on who is logged into my system. Every user has different security settings and I want to customize the...
12
by: Tom | last post by:
I use dynamically created controls all the time. I.E. I create the control in code then use AddHandler to add the necessary delegates for processing (like Click, etc). Does one have to call...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.