473,507 Members | 6,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it common practice to sublass all the windows controls

In order to maintain consistency thru a project.

Our development team is getting ready to start a new project in converting
all the foxpro apps to VB/SQL Server. We don't have the luxury of training
so hopefully our F1 training won't cause us any major problems or future
headaches.

Are there any guides out there that might have the basic fundementals of a
windows application.

Is a startup main the best way to begin, default error handling, how to
handle daily updates...

I hope I am not to confusing.

I have already wrote one dot net app in framwork 1.0 to scrub edi data and
then rewrote it one 1.1 came out but it just doesn't seem right.

Calling a stored procedure randomly times out. When it doesn't, it takes
about 20 seconds. There isn't much data and it is a dual proc server. So
perhaps my code or how i call the procedure is'nt "By the textbook".

Thanks,
Phillip

Nov 20 '05 #1
2 1169
It is not common to subclass all the windows controls. You do this when you
want to add a feature to the control itself that isn't natively available,
or add a behaviour to all controls of a particular type without having to
code for each instance separately.

Rest is inline...

"Phillip" <Phillip_Putzback AT@ Insightbb.com> wrote in message
news:ul**************@tk2msftngp13.phx.gbl...
In order to maintain consistency thru a project.

Our development team is getting ready to start a new project in converting
all the foxpro apps to VB/SQL Server. We don't have the luxury of training
so hopefully our F1 training won't cause us any major problems or future
headaches.

Are there any guides out there that might have the basic fundementals of a
windows application.

Is a startup main the best way to begin, default error handling, how to
handle daily updates...
I find that setting startup to Main is best. It allows you the luxury of
running code before any form is instantiated.

Error handling is best done on a local level. Each function should "expect"
that certain possible errors will happen based on methods that it calls.
Unexpected errors can then be handled either generically, or bubbled up to
an application-level (global) exception handler. There are a number of
articles on the web and on MSDN with regards to different approaches on
exception handling. While there are certain best-practices concepts in
dealing with exceptions, no one can honestly say there is one "best" way of
handling exceptions. Here's one place to start:
http://msdn.microsoft.com/library/en...asp?frame=true

Updates to application components depend on what type of application you are
writing and how it is distributed. If it's an app that lives on one (or a
small number of) server(s), simply copying updated private assembly files
will suffice. However, if it is installed to many user stations, you might
want to consider something like the Microsoft Updater Application Block
(search for that phrase in MSDN).
I hope I am not to confusing.

I have already wrote one dot net app in framwork 1.0 to scrub edi data and
then rewrote it one 1.1 came out but it just doesn't seem right.

Calling a stored procedure randomly times out. When it doesn't, it takes
about 20 seconds. There isn't much data and it is a dual proc server. So
perhaps my code or how i call the procedure is'nt "By the textbook".


There is a possibility the SQL statements might be inefficient - for
example, you might be using SQL statements that lock a table rather than a
row, or select data from the same table without using a NOLOCK hint. You'll
have to address that outside the context of .NET, as it pertains to database
syntax.

However, it's also possible you're running into issues of having improperly
handled database connections (for example, ones that aren't closed out
properly). Try using the Microsoft Data Access Application Block. I'm not a
huge fan of this application block, because you can definitely write far
more efficient code than some of its methods, but it does deal properly with
database resource managment. It can also serve as a good guide to dealing
with ADO.NET objects.

-Rob Teixeira [MVP]
Nov 20 '05 #2
I agree with Rob - do not subclass them if your not going to add extra functionality

Can you post your code for calling your store procedure?

Cheers,
Rickard

Nov 20 '05 #3

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

Similar topics

3
6774
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
23
6955
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
0
1071
by: Ricky | last post by:
with win32 I can't using the common controls. The output error is Fatal link error (or external... etcetera... do you give me an example to using the common controls library with C++/win32 ...
7
2333
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking...
1
1764
by: trebor | last post by:
I'm learning dotNet, although I first learned programming back in the days when structured programming was all the rage. In both my books and courses, I've seen something like this: Public Class...
4
1112
by: jcrouse | last post by:
I am trying to share mouse events (click, up, down, move and the such) for 30 different label controls: Here is my code: Dim myLabel as Label Private Sub lblP1JoyUp_MouseDown(ByVal sender...
4
1826
by: Ned Balzer | last post by:
Hi all, I am pretty new to asp.net; I've done lots of classic asp, but am just beginning to get my mind wrapped around .net. What I'd like to do is include some code that tests if a user is...
3
1411
by: DaBrain | last post by:
Many thank to anyone who has the time to read an reply to this. Am a lone gun developer, I do not develop in team so this question comes from a place where I just don't really KNOW what others...
4
2458
by: ARC | last post by:
Another Access 97 to Access 2000 question. In the references section of my access 97 .mde, I'm using the Microsoft Common Dialog controls 6.0 and the Microsoft Windows Common Controls 5.0. After...
0
7221
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
7313
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
7372
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
5619
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
5039
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
4702
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
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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.