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

design and runtime of controls

hi all

i am developing an user control in which i am creating a set of menu
objects in a panel.. i have overriden the oncontroladded and painting.
whenever i add the menu object i add it to the panel. panel is
maintained by using an arraylist of menu objects.. the problem is as i
have overriden paint, controladded is fired 3 times for each control

1)when i add the menu control to panel in design time - in which
arraylist is maintained properly
2)at runtime - populated arraylist is with proper values
3)another time it fires might be bcoz i have overriden paint. it is
painting again when i open the design time form or after i close the
runtime form - In this case array list is sometimes empty, sometimes
the array list indexes are changed. i)Why???
i am not sure wot is the mistake i am doing.. pls reply me immediately
as i need to fix it immediately..

ii) another question too, how to debug controls in design time? can i
check the arraylist values in design time itself.. i am using just
messageboxes and i find it difficult...any other way?

iii)sometimes i find oncontrolremoved automatically firing when i
close the runtime and open the design time form.. Why??

thivi
Nov 16 '05 #1
0 1095

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

Similar topics

1
by: Marc L'Ecuyer | last post by:
I have a form in my application. This form contains some controls + a panel with controls in it. I have to be able to move, resize, ... the controls in the panel (only those in the panel). Is it...
3
by: Tom Rahav | last post by:
Hi. I develop VB.NET for about 2 year.... recently, I created some user controls, and use them in a win-form. Sometimes, when I try to design a form that contains these controls, I get error...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
14
by: Jan Nielsen | last post by:
Hi In Microsoft Access it is possible to write code like this Sub test() DoCmd.OpenForm "TestForm", acDesign Dim a As Control For Each a In Forms("TestForm").Controls Do stuff Next End Sub
11
by: Peter M. | last post by:
Hi all, I'm currently designing an n-tier application and have some doubts about my design. I have created a Data Access layer which connects to the database (SQL Server) and performs Select,...
2
by: Steve | last post by:
This is a weird one. I have a series of "SmartParts" which are CAB (Composite Application Block) Views which are finally just UserControls (99% of the time) Anyway, I layout my UserControl in...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
0
by: vimalkanth | last post by:
Hi, We have a Delphi 5 Windows application which is built as a Client- Designer-Server application with http-based data exchange between Client/Designer and Server. Client application is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.