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

setting MyForm=Nothing doesn't clear all components

I have an mdi app with a misbehaving form. In its closed event I do
MyForm=Nothing. But when the user re-opens the form, one of the comboboxes
remembers the previous displayvalue. Is there something else I need to do
to kill the components on the form?

Jeremy
Nov 21 '05 #1
3 1703

"Jeremy" <gr***@hevanet.com> wrote
I have an mdi app with a misbehaving form. In its closed event I do
MyForm=Nothing. But when the user re-opens the form, one of the comboboxes
remembers the previous displayvalue. Is there something else I need to do
to kill the components on the form?


Just out of curiosity, where are you calling the form's Dispose method?

LFS
Nov 21 '05 #2
Jeremy,

In addition to Larry

Setting a Form to nothing in VBNet does nothing.

Cor
Nov 21 '05 #3
Well, I'm not. I'll search look into where it oughta be done. Thanks.

Jeremy

"Larry Serflaten" <se*******@usinternet.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...

"Jeremy" <gr***@hevanet.com> wrote
I have an mdi app with a misbehaving form. In its closed event I do
MyForm=Nothing. But when the user re-opens the form, one of the
comboboxes
remembers the previous displayvalue. Is there something else I need to
do
to kill the components on the form?


Just out of curiosity, where are you calling the form's Dispose method?

LFS

Nov 21 '05 #4

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

Similar topics

27
by: Dave Anderson | last post by:
Last September, some of us engaged in a discussion of freeing resources in ASP scripts written in JScript. It can be seen here: http://tinyurl.com/2flzt I recently read Eric Lippert's article on...
2
by: Bill S. | last post by:
Hi, I have a form that is generated by an ASP page, and I want to write a client-side function in JavaScript to clear all the checkboxes in a form. The problem is that the number of items on...
4
by: Yasutaka Ito | last post by:
Hi, As you know, all the non-ui components (like Timer control, etc.) that sit on the form are contained in its private variable 'components'. How can I enumerate such components from any form...
1
by: Ryan | last post by:
Hi, I am hoping somebody can provide a clear picture on this topic. When is it necessary to specifically close and/or set an object (recordset, database, variable, etc.)to nothing and what is...
2
by: A programming and programmed squirrel | last post by:
I am trying to write a program similar to "ping".Like the example provided in MSDN,I call setsockopt function to set SO_RCVTIMEO value for my raw socket.And before I make a call to recvfrom,I call...
9
by: james.e.coleman | last post by:
Hello, I have created a custom dropdownlist that is used multiple times within a single page. When trying to set the values of the controls with the page in which they are being used, they all...
6
by: Wally | last post by:
With this cycle For each ctl in Controls ..... Next I can see all visual components on a form but I cannot see Menus, ContextMenus, ToolTips, Timers, ecc. How could I write a cycle to see...
4
by: paulbradleysmith | last post by:
Here's a simple script to update the contents of one select based on the user's choice in a second select. It works fine in IE, but not at all in Firefox. Can anyone shed light on the matter? ...
0
by: AcuZod | last post by:
Heyas! Using the TreeView control on a website built in VS 2005, the SelectedNodeStyle.ImgURL setting doesn't seem to work. Here are my settings: ImgSet = "Custom" NodeStyle.ImgURL =...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.