473,473 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Forcing a form to reload

devonknows
137 New Member
hi ive got this at the end of my settings page, and i want it show the fmrSearch form change the check1.value, but everytime i do it, it takes two or three attempts for it to change (having to go back into settings and press ok again) so i put fmrsearch.refresh inhope that it would refresh the form and update the Check1.value. but it doesnt is there anywya i can force my form to reload? so it reloads all the form_load values?. please let me know

Kind Regards
Devon,

Expand|Select|Wrap|Line Numbers
  1. fmrSearch.Show
  2. If Combo1.Text = "yes" Then
  3. fmrSearch.Check1.Value = 1
  4. Else
  5. If Combo1.Text = "no" Then
  6. fmrSearch.Check1.Value = 0
  7. End If
  8. End If
  9. conn.Close
  10. Unload Me
  11. fmrSearch.Refresh
  12. End Sub
  13.  
Dec 5 '06 #1
1 8774
padhuwork
30 New Member
hi ive got this at the end of my settings page, and i want it show the fmrSearch form change the check1.value, but everytime i do it, it takes two or three attempts for it to change (having to go back into settings and press ok again) so i put fmrsearch.refresh inhope that it would refresh the form and update the Check1.value. but it doesnt is there anywya i can force my form to reload? so it reloads all the form_load values?. please let me know

Kind Regards
Devon,

Expand|Select|Wrap|Line Numbers
  1. fmrSearch.Show
  2. If Combo1.Text = "yes" Then
  3. fmrSearch.Check1.Value = 1
  4. Else
  5. If Combo1.Text = "no" Then
  6. fmrSearch.Check1.Value = 0
  7. End If
  8. End If
  9. conn.Close
  10. Unload Me
  11. fmrSearch.Refresh
  12. End Sub
  13.  
you are coding in which form? frmsearch?

Expand|Select|Wrap|Line Numbers
  1. "Unload Me
  2. fmrSearch.Refresh"
  3.  
make frmsearch.show and frmsearch.refresh again to see the checkbox being changed.

another way is do it is,
create a module, initialize your form object

Expand|Select|Wrap|Line Numbers
  1. Option explicit
  2. Public g_frmSearch As frmSearch
  3.  
  4. Public Sub Main()
  5. Set g_frmSearch = new frmSearch
  6. 'which ever form you want to startup put that form name followed show property
  7. ex: frmMain.show
  8. End Sub
  9.  
Set your project property to start in Sub Main()

and in your project replace frmSearch to g_frmSearch

this can for sure get behavior what you are looking for...
Dec 5 '06 #2

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

Similar topics

2
by: Steve | last post by:
I'm working in PHP, but am also using JavaScript, so perhaps there is a better way to do this using more PHP code...... I setup a search screen for my database, the user enters data and submits...
0
by: Earl Teigrob | last post by:
I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the XML file with new values. When an administrator...
4
by: WAZOO | last post by:
Sorry if this is obvious to everyone (except me). I've done a Google search and I'm not seeing anything encouraging that addresses my issue. My very large multispecialty medical practice needs...
1
by: jeffrobbins | last post by:
Hello, I am having an issue that I haven't been able to find an answer for. Any help or pointers to information would be appreciated. I have a form, lets call it mainForm, that contains a...
4
by: Rich | last post by:
Hello, I have a child form in an Mdi Parent form. I have 5 menu buttons on the Parent that I use to show the child form. Originally, in the Parent form on load event I had this line of code ...
10
by: hughestroop | last post by:
I have updated my CSS and if you view the main page with the old css cached, it breaks the page. Is there any way to force viewers that have the old css cached to get the new css? Our viewers...
3
by: nkoriginal | last post by:
Hello: I tried an script for keep my data form after reload page, but I've some errors. In this momento I runnung my own browser because we've an intranet. And for security reason, our page...
2
by: Sonnich | last post by:
Hi all! Probably simple - once one knows. I have a window, which open using <input type="button" class="box" name="main" value=" Add... " onClick=window.open('add.asp')> The window has...
3
Ajm113
by: Ajm113 | last post by:
Ok for some reason after the update of Firefox it seems that my form keeps getting submitted when the user made a error on the form. I just want the page to reload so the user may try again. Because...
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
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...
1
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...
0
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.