473,395 Members | 1,441 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.

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 1805
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 "superiority" 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******@discussions.microsoft.com> schreef in bericht
news:5F**********************************@microsof t.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 "superiority" 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******@discussions.microsoft.com> schreef in bericht
news:5F**********************************@microsof t.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 "superiority" 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
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...
1
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...
1
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...
2
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 ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.