473,387 Members | 1,596 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,387 software developers and data experts.

In VB.Net , Form Opening is Very Slow?

hi,
My project is VB.net with Sql server 2000. i store image in database now the database size is around 400 MB. when i Click the form (image i have stored & Retrieved), it takes around 3 minutes to show the form , whereas other forms are working fine. ?

Thanx in Adv
Ganesh.
Sep 29 '08 #1
6 6387
Plater
7,872 Expert 4TB
Are you returning JUST the image you want to show, or ALL images and picking the one you want?
Sep 29 '08 #2
hi ,
Thanx For u'r Response.
I 'm not loading any Images when the form is Display,the Images loaded in the grid depends on Customer Selection. Since the form is Slow?

Bye.........
Ganesh
Sep 29 '08 #3
Plater
7,872 Expert 4TB
Could you post some code on it?
Specifically the form_load() function (and anything that it calls)
And any details about any bound controls on the form?
Sep 29 '08 #4
hi,
My Code is in Form _Load

Expand|Select|Wrap|Line Numbers
  1. InitializeForm()
  2.         cboCustomer.DataSource = mdlGeneralFunctions.fnLoadCombo(CHR_CUSTOMER, BLN_FREQUENT)
  3.         SetComboProperties(cboCustomer, False, "Name", "intRecordNo")
  4.         SetComboProperties(cboCustomer, 500)
  5.         dtpFrom.Format = DateTimePickerFormat.Custom
  6.         dtpFrom.CustomFormat = "dd/MM/yyyy"
  7.         dtpFrom.Value = Microsoft.VisualBasic.DateAdd(DateInterval.Day, -31, Today)
  8.         dtpTo.Format = DateTimePickerFormat.Custom
  9.         dtpTo.CustomFormat = "dd/MM/yyyy"
  10.         dtpTo.Value = Today

In that InitializeForm , I clear all Controls....

Since It's Working Very Slow

Ganesh
Oct 2 '08 #5
Plater
7,872 Expert 4TB
InitializeForm() should be in the contructor, not in the form_load()
See if that helps?
I would guess though that it is your database call that is slowing everything down.
Oct 2 '08 #6
hi plater,
It's Working Fine..
Thanx a Lot....

Bye...
Ganesh
Oct 6 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jawahar Rajan | last post by:
All, I am using the ASP code below to save some data from a SQL Server database via ADO as an Excel spreadsheet strReportName = Request.QueryString("ReportName") If len(strReportName) > 0 then...
4
by: KS | last post by:
I have a button on a form that starts another form with this click-event code: Dim frmH As frmHelp If IsNothing(frmH) OrElse frmH.IsDisposed Then frmH = New frmHelp() Me.Opacity = 0.9...
4
by: Marc | last post by:
When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe works fine but the initial show looks like the...
8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
2
by: Remco Groot Beumer | last post by:
Hello, I'm building a database in which is a form with the following elements: - 19 textfields - 6 comboboxes (with small amount of data, mostly below 10 records) - 1 listbox - 1 subform (also...
2
by: Steve Hall | last post by:
Dear All We have a SQL Server 2000 BE on a Win 2K Server box. Access 2000 clients, running on Win 2000 Pro. Front end design is fairly straight forward - 5 different "record types" (split...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
10
by: Sarah Smith | last post by:
Hello, I am a bit of a newbie to VB.NET, but not totally new. I took the plunge recently and decided (along with my colleagues), to try to convert/port a VB6 client/server app to .Net. (I'm...
3
by: DeanL | last post by:
Hi all, I've been developing an Access 97 DB on my WinXP Pro machine and have sized all forms, reports, etc. to work on a 1024 x 768 resolution screen. The problem I have is that when on of my...
5
by: lazyvlad | last post by:
Hi, I'm writing here because this issue is becoming more annoying with each day it passes. So I have a form, a dataset with a few table adapters (3 to be precise) and a datagridview.The datagridview...
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: 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
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
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
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
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
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
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.