473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB 2005 User Control Issue

I am writing a windows application using VS 2005. I have a user control that
returns customer data.

I have placed this customers user control on several forms in my
application. In the OnLoad event of the customers user control I have a data
access function that retrieves data from a database to populate the control.

The problem I have is that having the data access function in the OnLoad
event causes an error in design time for the Parent Forms. I get a "No row
at position 0" error when I try to view the parent form in design view. This
does not affect the ability of the project to build, or run.

Has anyone seen this before?

Thanks in advance for your help.
Jan 18 '06 #1
4 1814
Sperotti,

It is bad design to mix up getting data from a server in an UI.

In my opinion is it extremely bad design to get data directly data from a
server in a user control from an UI.

I hope that you don't mind that at least I will not show that we help doing
that.

Cor
Jan 19 '06 #2
Cor Ligthert,

Well, your opinion is noted, and I would prefer in the future if you see a
message from me in this newsgroup again that you will ignore it. I really
don't care for your attitude and it is snobs like you that give Microsoft a
bad name.

First of all there is a middle-tier object connected to the user control.
If you had any people skills at all, you would have asked a question before
passing judgement. But since it is obvious that you don't have a life and
are only interested in expressing your "superiorit y" you are not worth
another second of my time.

"Cor Ligthert [MVP]" wrote:
Sperotti,

It is bad design to mix up getting data from a server in an UI.

In my opinion is it extremely bad design to get data directly data from a
server in a user control from an UI.

I hope that you don't mind that at least I will not show that we help doing
that.

Cor

Jan 19 '06 #3
Sperotti,

I don't have to answer your question. However if you first write this.
In the OnLoad event of the customers user control I have a data
access function that retrieves data from a database to populate the
control.
And now write this.
First of all there is a middle-tier object connected to the user control.
Maybe you can than at least for somebody else tell what you mean by that or
maybe somebody else does understand this direct completely your question and
than it is of course not needed.
I get a "No row at position 0" error when I try to view the parent form in
design view.
This does not affect the ability of the project to build, or run.
However no answers from me anymore to you, I have understood your message
that I am not so qualified as you.

Cor



"sperotti" <sp******@discu ssions.microsof t.com> schreef in bericht
news:5F******** *************** ***********@mic rosoft.com... Cor Ligthert,

Well, your opinion is noted, and I would prefer in the future if you see a
message from me in this newsgroup again that you will ignore it. I really
don't care for your attitude and it is snobs like you that give Microsoft
a
bad name.

First of all there is a middle-tier object connected to the user control.
If you had any people skills at all, you would have asked a question
before
passing judgement. But since it is obvious that you don't have a life and
are only interested in expressing your "superiorit y" you are not worth
another second of my time.

"Cor Ligthert [MVP]" wrote:
Sperotti,

It is bad design to mix up getting data from a server in an UI.

In my opinion is it extremely bad design to get data directly data from a
server in a user control from an UI.

I hope that you don't mind that at least I will not show that we help
doing
that.

Cor

Jan 19 '06 #4
On the contrary, I am sure you are very qualified. Perhaps even more
qualified than me.

You are just too arrogant to answer anyones questions here.

"Cor Ligthert [MVP]" wrote:
Sperotti,

I don't have to answer your question. However if you first write this.
In the OnLoad event of the customers user control I have a data
access function that retrieves data from a database to populate the
control.


And now write this.
First of all there is a middle-tier object connected to the user control.


Maybe you can than at least for somebody else tell what you mean by that or
maybe somebody else does understand this direct completely your question and
than it is of course not needed.
I get a "No row at position 0" error when I try to view the parent form in
design view.
This does not affect the ability of the project to build, or run.


However no answers from me anymore to you, I have understood your message
that I am not so qualified as you.

Cor



"sperotti" <sp******@discu ssions.microsof t.com> schreef in bericht
news:5F******** *************** ***********@mic rosoft.com...
Cor Ligthert,

Well, your opinion is noted, and I would prefer in the future if you see a
message from me in this newsgroup again that you will ignore it. I really
don't care for your attitude and it is snobs like you that give Microsoft
a
bad name.

First of all there is a middle-tier object connected to the user control.
If you had any people skills at all, you would have asked a question
before
passing judgement. But since it is obvious that you don't have a life and
are only interested in expressing your "superiorit y" you are not worth
another second of my time.

"Cor Ligthert [MVP]" wrote:
Sperotti,

It is bad design to mix up getting data from a server in an UI.

In my opinion is it extremely bad design to get data directly data from a
server in a user control from an UI.

I hope that you don't mind that at least I will not show that we help
doing
that.

Cor


Jan 19 '06 #5

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

Similar topics

0
2116
by: Unigroup of New York | last post by:
Content-Type: multipart/mixed; boundary="------------C465DF38DCB38DD2AF7117E0" Lines: 327 Date: Tue, 15 Feb 2005 23:36:38 -0500 NNTP-Posting-Host: 24.46.113.251 X-Complaints-To: abuse@cv.net X-Trace: fe12.lga 1108528794 24.46.113.251 (Tue, 15 Feb 2005 21:39:54 MST) NNTP-Posting-Date: Tue, 15 Feb 2005 21:39:54 MST Xref: number1.nntp.dca.giganews.com comp.lang.python:398656
1
1998
by: Robert | last post by:
I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE complains that in the ASPX file (html source): Error 1 Element 'stylesheet' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\...\Local Settings\Temp\1\VWDWebCache\onlineformsdev.....com\sweepv2\dorequest1.aspx 16 7 http://onlineformsdev.....com/ The source code (start of the...
1
1432
by: Alan | last post by:
We just switched from vs 2003 to vs 2005. We have a large number of projects in the solution. So to make it easier on everyone we use file references instead of project references. The biggest issue so far that I have with 2005 is that if file references are used then the "Go to definition" command only is able to bring up the "metadata" interface file. However, if project references are used then the "Go to definition" command is able to...
2
2597
by: mikeingenito | last post by:
Hello, I have a a web form where i dynamically load a user control. The web page is an issue log, and each user control I add is a specific issue. I load them as follows: Try sqlConn.Open()
0
8613
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8469
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7150
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6106
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4074
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.