473,513 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows forms application

I am new to VB.NET, have programmed in visual C++ for awhile. My question is
whether there is a similar document-view architecture in VB, ie data stored
in CDocument, viewed in CView, or is the form responsible for storing and
viewing data.

thanks,
Mike
Jan 30 '06 #1
14 1314
Michael,

VB Net is OOP a form object is instanced from a form class, which has all
the members to show a form.

I hope this helps,

Cor
Jan 30 '06 #2
CMM
There is absolutely no type of "framework" in all of VS or .NET in general
that accomplishes this. You're totally on your own to create this sort of
stuff. The tools you have to create your own paradigm or framework are all
there. You just gotta do it all yourself.

At the very least I expected VS2005 to have a Tabbed Document Interface
framework that allowed you to create professional modern apps. As it stands
you either create a messy overlapping-windows dialog based app or an even
messier deprecated MDI app.... which is what most developers choose to do
despite the fact that this paradigm has been urged against in every single
UI guideline since 1995 (including Microsoft's).

"Michael Dunn" <du*****@cox.net> wrote in message
news:ivhDf.2056$MJ.290@fed1read07...
I am new to VB.NET, have programmed in visual C++ for awhile. My question
is
whether there is a similar document-view architecture in VB, ie data
stored
in CDocument, viewed in CView, or is the form responsible for storing and
viewing data.

thanks,
Mike

Jan 30 '06 #3
Cor, thank you for responding to my post. I understand that vb.net is oop. I
guess my question should have been phrased differently.

Lets say I have a list of strings I retrieve from a database table and I
want to store those strings in an array and make the array available to
several forms within the application. Where would the array be located and
how would I make it available to all the forms.

thanks,
mike
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
Michael,

VB Net is OOP a form object is instanced from a form class, which has all
the members to show a form.

I hope this helps,

Cor

Jan 30 '06 #4
Thanks CMM, that's what I needed to know. Hopefully somebody at MS is
reading your posts.

cheers,
mike

"CMM" <cm*@nospam.com> wrote in message
news:en*************@tk2msftngp13.phx.gbl...
There is absolutely no type of "framework" in all of VS or .NET in general
that accomplishes this. You're totally on your own to create this sort of
stuff. The tools you have to create your own paradigm or framework are all
there. You just gotta do it all yourself.

At the very least I expected VS2005 to have a Tabbed Document Interface
framework that allowed you to create professional modern apps. As it stands you either create a messy overlapping-windows dialog based app or an even
messier deprecated MDI app.... which is what most developers choose to do
despite the fact that this paradigm has been urged against in every single
UI guideline since 1995 (including Microsoft's).

"Michael Dunn" <du*****@cox.net> wrote in message
news:ivhDf.2056$MJ.290@fed1read07...
I am new to VB.NET, have programmed in visual C++ for awhile. My question
is
whether there is a similar document-view architecture in VB, ie data
stored
in CDocument, viewed in CView, or is the form responsible for storing and viewing data.

thanks,
Mike


Jan 30 '06 #5
CMM
Add a global (Public) variable to a global module (Project|Add Module)...
"modules" are a sort of VB specific construct similar to a class with all
Shared/Static methods.

You can also use Sub Main in a VB module to duplicate the "Main" entry point
in C/C++ apps.

Module basGlobal

Public g_someVariable as Integer = 0

Public Sub Main()

End Sub

Public Sub SomeMethod()
'bla bla bla
End Sub

End Module

"Michael Dunn" <du*****@cox.net> wrote in message
news:UljDf.2073$MJ.392@fed1read07...
Cor, thank you for responding to my post. I understand that vb.net is oop.
I
guess my question should have been phrased differently.

Lets say I have a list of strings I retrieve from a database table and I
want to store those strings in an array and make the array available to
several forms within the application. Where would the array be located and
how would I make it available to all the forms.

thanks,
mike
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
Michael,

VB Net is OOP a form object is instanced from a form class, which has all
the members to show a form.

I hope this helps,

Cor


Jan 30 '06 #6
Michael,

Although the prevered way is to pass reference information between objects.
Are you able to set things shared (not real OOP however just modulair
programming). This is done in C++ as well by creating static members.

In VBNet it is nicely to describe.
You can create members that you share between all objects and you can create
static fields to a wich belongs only static to a method.

A shared member you can create as this
\\\
Public Class SomeVariables
Public Shared ReadOnly Property CorsName() as String
Get
return "Cor"
End Get
End Property
End Class
///

You get this back as
SomeVariables.CorsName

A static field inside a method is just
Static MyField as String

However all of this is not real OOP of course (although it is widely used in
all C versions), this information is added to the main(stack) as it was done
by the first programs ever made as well.

I hope this helps,

Cor
Jan 30 '06 #7
Thanks Cor, I appreciate the help. You and CMM have definitely made things
alot clearer for me.

Cheers,
mike

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Michael,

Although the prevered way is to pass reference information between objects. Are you able to set things shared (not real OOP however just modulair
programming). This is done in C++ as well by creating static members.

In VBNet it is nicely to describe.
You can create members that you share between all objects and you can create static fields to a wich belongs only static to a method.

A shared member you can create as this
\\\
Public Class SomeVariables
Public Shared ReadOnly Property CorsName() as String
Get
return "Cor"
End Get
End Property
End Class
///

You get this back as
SomeVariables.CorsName

A static field inside a method is just
Static MyField as String

However all of this is not real OOP of course (although it is widely used in all C versions), this information is added to the main(stack) as it was done by the first programs ever made as well.

I hope this helps,

Cor

Jan 30 '06 #8
CMM,
At the very least I expected VS2005 to have a Tabbed Document Interface
framework that allowed you to create professional modern apps. As it
stands you either create a messy overlapping-windows dialog based app or
an even messier deprecated MDI app.... which is what most developers
choose to do despite the fact that this paradigm has been urged against in
every single UI guideline since 1995 (including Microsoft's).


Did you already try MS Office Access? If you want everything MDI, than that
is the tool that probably fullfils your needs, although that it has of
course its limits and has probably 10% of the possibilities of Net. However,
as that is 90% of your problems to solve a very good tool.

A tabbed interface is for me typical Delphi, why would that be in Net. It is
the way that I mostly see direct that the application is made with Delphi, I
really don't call those one form compressed applications forever
professional as you seems to do. They often lack in my opinion a lot because
the small possibility of showing information.

Beside that, you can with less than 10 clicks create a windows form data
access application in any programlanguage of version 2005. I have seen this
now thanks to a problem from Philip that I investigated, but will probably
never use that myself.

Just my idea

Cor
Jan 30 '06 #9
"CMM" <cm*@nospam.com> wrote in message
news:en*************@tk2msftngp13.phx.gbl...
There is absolutely no type of "framework" in all of VS or .NET in general
that accomplishes this. You're totally on your own to create this sort of
stuff. The tools you have to create your own paradigm or framework are all
there. You just gotta do it all yourself.


Have you looked at Application Blocks?

See my blog post:
http://www.itwriting.com/blog/?postid=293

Tim
Jan 30 '06 #10
CMM
Just to add to Cor's post:
A class with all "Shared" (equivalent of Static in C++) Methods,Properties,
and Fields is almost the same thing as a "Module".... the only difference is
that you don't need to qualify modules when calling them... they are truly
"global."

When calling shared methods as Cor describes your code would look like this:
SomeClass.SomeSharedMethod()

When calling a method in a global Module the call looks like this
SomeGlobalMethod()
from anywhere in your code across all files.
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Michael,

Although the prevered way is to pass reference information between
objects. Are you able to set things shared (not real OOP however just
modulair programming). This is done in C++ as well by creating static
members.

In VBNet it is nicely to describe.
You can create members that you share between all objects and you can
create static fields to a wich belongs only static to a method.

A shared member you can create as this
\\\
Public Class SomeVariables
Public Shared ReadOnly Property CorsName() as String
Get
return "Cor"
End Get
End Property
End Class
///

You get this back as
SomeVariables.CorsName

A static field inside a method is just
Static MyField as String

However all of this is not real OOP of course (although it is widely used
in all C versions), this information is added to the main(stack) as it was
done by the first programs ever made as well.

I hope this helps,

Cor

Jan 30 '06 #11
CMM
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
<snip>
A tabbed interface is for me typical Delphi, why would that be in Net. It
is the way that I mostly see direct that the application is made with
Delphi, I really don't call those one form compressed applications forever
professional as you seems to do. They often lack in my opinion a lot
because the small possibility of showing information.

<snip>

Your post is somewhat ironic... considering you use one of the best Tabbed
Document Interfaces I have ever seen (Visual Studio)... but you can only
created Multiple Document Interfaces (MDI) with it!!!!

And, yes, Access has been due for an interface overhaul for a LONG LONG
time. Access was originally intended to be a laymen's (non-programmer)
database application meant to be used mainly by normal human office workers.
It has never ever reached that status... but has instead become a sort of
no-frills development platform for programmers... and thus replaced a niche
originally intended for FoxPro.

And even Access is starting to move away from MDI by implementing the same
(ill-conceived) pseudo-SDI interface that Excel has (via the "Windows in
Taskbar" option).
Jan 30 '06 #12
CMM
"Tim Anderson" <ti*****@nospam.nospam> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...

Have you looked at Application Blocks?

See my blog post:
http://www.itwriting.com/blog/?postid=293

Tim


Looks promising (the Composite UI Block). But MS's application blocks are
way too hammer-like and messy.... like requiring you to derive all your
classes from a particular base class and stuff like that.... totally
marrying you to a particular (unsupported) framework.

In short.... all I really want is for MDI Parent Forms to have a simple
property... (like enumed as "Classic," "Tabbed."). How hard is that?
Jan 30 '06 #13
CMM,
Your post is somewhat ironic...


And what is yours?

I understand your frustration with CSS by the way. I hope soon to understand
how to create in an easy way (not to use) new thema's as well.

However got the idea you was throwing that in this thread as well.

:-)

Cor
Jan 30 '06 #14
CMM
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eZ**************@TK2MSFTNGP14.phx.gbl...
Your post is somewhat ironic...


And what is yours?


Plaintive. :-(

Jan 30 '06 #15

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

Similar topics

15
3840
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
6
2529
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
9
2802
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
1
1769
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
5
1802
by: david | last post by:
I have developed my web service with a domain name of my computer name and wwwroot directory. I also developed a client of windows form application. It works locally (i.e. in the same machine). ...
1
3958
by: harinathch | last post by:
Hi, Iam working with myapplication.exe.config file in my vb.net windows application.Its working fine in my development environment. When i test this application in some other machine using exe and...
4
4159
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
15
7044
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
21
3289
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
3
4276
by: shobhitguptait | last post by:
How to Run C#.NET Windows App on N/W with centralized DB using SQL SERVER 2000 Hello All...i m really grate full to c such a website where developers try to help people like us who face problems...
0
7171
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
7388
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
7545
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...
1
7111
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
5692
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,...
1
5095
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...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.