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

Cascading list boxes

Okay: I know this may not seem like much to you, but I have at last
worked out how to connect two database-linked listboxes using ADO dotNet.
You know: the first one has countries, and when you click one of them,
the second one shows cities in that country.

I have long experience in VB for ver 2 up to 5, then I've been in VBA
under Excel, Access, Word etc since. Therefore the dotNet framework is
all a bit strange, and the Express edition is very lean on documentation.
It took me a long time reverse-engineering all the automagic-generated
code to find the appropriate objects and classes (quite often called the
same things, too, which is very confusing). That's why I am so proud of
this :-)

Still, the question is this. Is there anyway of reading or diagramming or
displaying the default classes and objects created automatically by the
IDE?

Thanks in advance.

Tim F
Jan 26 '06 #1
4 1746
Tim Ferguson wrote:
Okay: I know this may not seem like much to you, but I have at last
worked out how to connect two database-linked listboxes using ADO dotNet.
You know: the first one has countries, and when you click one of them,
the second one shows cities in that country.

I have long experience in VB for ver 2 up to 5, then I've been in VBA
under Excel, Access, Word etc since. Therefore the dotNet framework is
all a bit strange, and the Express edition is very lean on documentation.
It took me a long time reverse-engineering all the automagic-generated
code to find the appropriate objects and classes (quite often called the
same things, too, which is very confusing). That's why I am so proud of
this :-)

Still, the question is this. Is there anyway of reading or diagramming or
displaying the default classes and objects created automatically by the
IDE?

Thanks in advance.

Tim F


You just want to see the code that the IDE puts in behind as it adds it
to the form? You need to turn on "Show hidden files" in your solution
explorer. Then a + will be next to your form. The class inside that +
will hold all the automatically generated code.

Chris
Jan 26 '06 #2
Tim,
(quite often called the same things, too, which is very confusing).

This is because of the little bit strange acting of VB6 with classes and the
new reintroducing faking of that in VBNet for that for the My classes. Which
makes in my opinion working with VB2005 less consistent and therefore more
difficult to understand as you show now.

However a class is a template, you cannot hold anything in it. Another name
for a class is a Type.

An object is something that you can make from a class and can use. (This is
not for a shared class, which is in fact a module, from which all members
are consequently in the program).

I hope this helps,

Cor
Jan 27 '06 #3
Chris <no@spam.com> wrote in news:ue*************@tk2msftngp13.phx.gbl:
Still, the question is this. Is there anyway of reading or
diagramming or displaying the default classes and objects created
automatically by the IDE?


You just want to see the code that the IDE puts in behind as it adds
it to the form? You need to turn on "Show hidden files" in your
solution explorer. Then a + will be next to your form. The class
inside that + will hold all the automatically generated code.


I already found this: it's how I managed to get anything working at all.
I just read through pages and pages of auto-code and every now and then
found the object I wanted already instantiated and ready for use. Trouble
is, it takes ages.

What I was hoping for was a documentation function or window somewhere
that would show me all the auto-created classes and the ready-filled
objects so that I don't have to go find them one-by-one.

Or is this something you just do the first fifty times and then just
"know"?

Best wishes
Tim F

Jan 27 '06 #4
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in
news:ey**************@TK2MSFTNGP09.phx.gbl:
(quite often called the same things, too, which is very confusing).


An object is something that you can make from a class and can use.
(This is not for a shared class, which is in fact a module, from which
all members are consequently in the program).


Thanks for this, although I understand the difference between classes and
objects. What I was referring to was that I could find classes like

ContactsAtALocationDataTable

which might or might not be instantiated into objects like

jesstab9DataSet.ContactsAtALocation

which is actually a class property. There are some mindnumbingly useful
class methods (but deeply hidden) like

ContactsDataTable.FindByCtNum

and some classes don't seem to have instances at all. It would be really
good if there were some kind of documentation or diagramming somewhere,
without having to read through the the .xsd and designer files line by
line. I get the feeling that ADO dot Net is very powerful, and that the
auto-written code could be phenomenonally useful, but it's still really
opaque.

Perhaps a 3rd-party tool?

Thanks and best wishes
Tim F

Jan 27 '06 #5

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

Similar topics

0
by: cognoscento | last post by:
I'm currently putting together a database for my work (not an expert by any stretch, so muddling through as best as I can... you know the story...) and I could use some advice and hand-holding ...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
0
by: KMEscherich | last post by:
Hi there, am wondering if there is a way to have a primary key control on a field and have this drive the cascading list boxes. I would like to have someone enter an ID(Primary Key) in a textbox...
7
kcdoell
by: kcdoell | last post by:
I have three tables: One for the Division location: tblDivision DivisionID = Autonumber DivisionName = Text One for the Working Region: tblWrkRegion
4
klarae99
by: klarae99 | last post by:
Hello, I am working on an Access 2003 Database. The tables that pertain to this issue are tblOrg, tblState, tblCity, and tblZip. I have posted the table structure with only the pertinant fields...
1
kcdoell
by: kcdoell | last post by:
Good Morning: I have a form where I am trying to create cascading combo boxes. I have done this before but I am getting the following error that is throwing me off: Procedure declaration...
3
kcdoell
by: kcdoell | last post by:
I have 5 cascading combo boxes on a form. Below is a sample of my vb in the first combo box: Private Sub CboDivision_AfterUpdate() 'When the Division is selected, the appropriate Segment...
18
by: LosLobo | last post by:
Greetings all. I know that cascading lists are a common problem and in truth I my initial post here was to request help with my own, but then I figured out the right code. That being said, I have a...
7
by: Toireasa | last post by:
Hi, Newbie Access developer here, and my first post on this forum, so I might not get everything right - thanks in advance for your help and your patience! I'm using Access 2007, in XP. I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...

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.