473,397 Members | 1,974 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,397 software developers and data experts.

How to call VB.Net components from user control

Bon
Hello all

How to call VB .NET components from user control?

My folder structures are: the upper folder called Bon and then there
are two sub-folders. One is called UserControls which is used to store
..aspx files and another one is called Components which is used to store
..vb files.

What code I should put in the .aspx file in order to call .vb file?

Thank you

Best regards
Bon

Nov 19 '05 #1
2 1299
Bon,

It really depends on what the .vb files are for. What sort of components are they? Are they merely classes? As long as they're in your solution explorer, you should be able to simply declare a class of the type given in the .VB file.

You'll really need to elaborate more on what you're doing, and more importantly, WHAT the .vb files are.

-Altaf


--------------------------------------------------------------------------------

All that glitters has a high refractive index.
www.mendhak.com
"Bon" <bo***********@gmail.com> wrote in message news:11*********************@o13g2000cwo.googlegro ups.com...
Hello all

How to call VB .NET components from user control?

My folder structures are: the upper folder called Bon and then there
are two sub-folders. One is called UserControls which is used to store
.aspx files and another one is called Components which is used to store
.vb files.

What code I should put in the .aspx file in order to call .vb file?

Thank you

Best regards
Bon

Nov 19 '05 #2
Bon
Hello Altaf

The .VB files are classes, which contains methods for connecting
database and extracting data from database in order to show them in the
..aspx pages. For example, I have a drop down list box in the .aspx
page. When the user select the desired item, it will pass a parameter
to one of the methods in the .VB file. Then, the .VB file will return
the dataset to the .aspx page and display the data.

I have compile the .VB file and generate .dll file. By the way, do I
need to compile and generate .dll file? I am using ASP .NET Web Matrix
for creating my website.

Thanks

Bon
S.M. Altaf [MVP] 寫道:
Bon,

It really depends on what the .vb files are for. What sort of componentsare they? Are they merely classes? As long as they're in your solution explorer, you should be able to simply declare a class of the type given in the .VB file.

You'll really need to elaborate more on what you're doing, and more importantly, WHAT the .vb files are.

-Altaf


--------------------------------------------------------------------------------

All that glitters has a high refractive index.
www.mendhak.com
"Bon" <bo***********@gmail.com> wrote in message news:1130599128.659101..13***@o13g2000cwo.googlegr oups.com...
Hello all

How to call VB .NET components from user control?

My folder structures are: the upper folder called Bon and then there
are two sub-folders. One is called UserControls which is used to store
.aspx files and another one is called Components which is used to store
.vb files.

What code I should put in the .aspx file in order to call .vb file?

Thank you

Best regards
Bon


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David N | last post by:
Hi All, I just wonder if in C#, I can develop a user defined control that can call its parent function which is not yet developed. For example, how do I make my user control call a...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
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...
9
by: Bijoy Naick | last post by:
In my Visual Studio solution, I have 2 projects.. One project implements a newsletter object, the other a file upload user control. When I compile the solution, each project generates its own DLL....
5
by: Patrick Vanden Driessche | last post by:
Hi All, I'm currently writing an in-house Form validation framework (WinForms) which is based on 'Component'-inheriting object. So basically, I have a small hierarchy. FormValidator +--...
1
by: Ellis Yu | last post by:
Dear all, I write my own components for my project and add them in "My User Control" under the toolbar. Some time later, I make some other new components into it and want to use them in my...
0
by: Nickneem | last post by:
I' m trying to disable all right mouse clicks by using the vbAccelerator Windows Hooks Library The small (systray / console) app. must catch all (right) mouseclicks before they are received by...
4
by: odwrotnie | last post by:
Hi, am I understanding wrong that "Custom Control" or "Control Class" is for drawing components from standard .net components? Why when I am trying to drag and drop sth. on its surface it...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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 projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.