473,508 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bound or unbound

Hi

I was wondering what most of the designers in .NET create: bound windows forms or unbound windows forms. The applications I've made in Access were all bound forms but what is the best choice in .NET? And why..

Thx!
Jul 21 '05 #1
4 1832
Cor
Hi Maurice,

I was wondering what most of the designers in .NET create: bound windows

forms or unbound windows forms. The applications I've made in Access were
all bound forms but what is the best choice in .NET? And why..

I think this is another question in dotnet, it is not always necessary that
an application use a database. When you use the dataadapter and things like
that, you need a form to use it, but if you wish, you can than bring it to a
seperate class.

But you can also use databases without the wizards and then the data will
mostly be in another class than the forms.

When you use databases it is good to look at all types of databinding.
It is very extended in Visual.studio.net.

I hope this was more or less your question?

Cor
Jul 21 '05 #2
Dear Cor

thanks for looking to my question. You're right, not all apps need a database. I was asking this question because I thought maybe in .NET most developers use unboud controls: I'm having a little problem and can't find a clear solution for it

In .NET I created a form with bound controls (Access Database). I used a dataset and followed examples to create a navigation using the Binding Context. So far everything goes well
My question, how do I add a new record to the database AFTER the user filled in the fields on the form. I can't find the solution. The problem is that my database has some fields that are required before I can add the row to the database

Do you know how to do this. How to display a new row in a form with bound controls.

Thx in advance, Mauric
Hi Maurice
I was wondering what most of the designers in .NET create: bound window

forms or unbound windows forms. The applications I've made in Access wer
all bound forms but what is the best choice in .NET? And why.

I think this is another question in dotnet, it is not always necessary tha
an application use a database. When you use the dataadapter and things lik
that, you need a form to use it, but if you wish, you can than bring it to
seperate class

But you can also use databases without the wizards and then the data wil
mostly be in another class than the forms

When you use databases it is good to look at all types of databinding
It is very extended in Visual.studio.net

I hope this was more or less your question

Co

Jul 21 '05 #3
The .AddNew Method of the Binding Context will add a new record to the DB
"Maurice" <an*******@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
Dear Cor,

thanks for looking to my question. You're right, not all apps need a database. I was asking this question because I thought maybe in .NET most
developers use unboud controls: I'm having a little problem and can't find a
clear solution for it.
In .NET I created a form with bound controls (Access Database). I used a dataset and followed examples to create a navigation using the Binding
Context. So far everything goes well. My question, how do I add a new record to the database AFTER the user filled in the fields on the form. I can't find the solution. The problem is
that my database has some fields that are required before I can add the row
to the database.
Do you know how to do this. How to display a new row in a form with bound controls..
Thx in advance, Maurice

Hi Maurice,
I was wondering what most of the designers in .NET create: bound
windows forms or unbound windows forms. The applications I've made in Access were
all bound forms but what is the best choice in .NET? And why..

I think this is another question in dotnet, it is not always necessary that an application use a database. When you use the dataadapter and things like that, you need a form to use it, but if you wish, you can than bring it to a seperate class.

But you can also use databases without the wizards and then the data will
mostly be in another class than the forms.

When you use databases it is good to look at all types of databinding.
It is very extended in Visual.studio.net.

I hope this was more or less your question?

Cor

Jul 21 '05 #4
Maurice:
"Maurice" <an*******@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
Hi,

I was wondering what most of the designers in .NET create: bound windows forms or unbound windows forms. The applications I've made in Access were
all bound forms but what is the best choice in .NET? And why..

Thx!


I agree with Cor as usual. The only thing I'd mention is that if your app
is datadriven, I think most .NET developers are using Binding b/c it's easy
to implement, straightforward and very powerful. In the old VB6/C++ days,
databinding could be scarry, but I've found it to be very reliable in .NET
and there's great visual support in VS.NET but even if you don't want to use
it, you can code some classes and do everything through code too.

What specifically are you trying to accomplish? With a little more info, I
could probably be of more help.

Bill
Jul 21 '05 #5

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

Similar topics

3
21123
by: Kylotan | last post by:
Although I see lots of references to them in various documentation, I can't find a decent explanation of exactly what they are. I'm guessing that it's a reference to a method that remembers which...
2
1911
by: Farshid Lashkari | last post by:
Hi, I have an object and I want to check if it is a bound or unbound method, or neither. I tried using the types module, but it seems as though types.UnboundMethodType and types.MethodType are...
19
4066
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
2
3046
by: Wolfgang Kreuzer | last post by:
Hello all, I am converting an Axs 2.0 application to a2k (I know A2K is not the most current version but Axs 2.0 support ended and A2K is supported in our company amd on every PC). The form is...
3
4990
by: MLH | last post by:
I have a form, bound to a query. Its RecordSource property is a query named frmEnterLienAmounts. The form has a few bound controls and some unbound controls. The unbound controls are calculated...
2
277
by: Maurice | last post by:
Hi I was wondering what most of the designers in .NET create: bound windows forms or unbound windows forms. The applications I've made in Access were all bound forms but what is the best choice in...
0
2983
by: colleen1980 | last post by:
Hi: There are two textboxs in my main form. One is bound and another is unbound. There is no entry in the unbound textbox as values come into automatically after entering some information in the...
14
3009
by: 7stud | last post by:
Here is some example code that produces an error: class Test(object): def greet(): print "Hello" t = Test() t.greet() TypeError: greet() takes no arguments (1 given)
3
14272
by: kathnicole | last post by:
Hi, I am using MS Access 2007/Vista I have a field, ProductCost in the subform. i need to find the total of ProductCost and assign it to a field, Total, in the Main Form . I read an article...
0
7226
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
7125
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
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
7049
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
7499
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...
1
5055
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
4709
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
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.