473,387 Members | 1,693 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.

Refresh textbox with a MsgBox()

3
Hi.
In a web form I have this code in VB, on the button_Click event:
Expand|Select|Wrap|Line Numbers
  1. Text1.text = "1"
  2. Text2.text = "2"
  3. MsgBox("OK?", MsgBoxStyle.Information, "Cancel")
  4.  
The MsgBox displays but the textboxes doesn't refresh. What am I missing?
Thanks.

(Sorry, I posted in the wrong forum, is VB not c#)
Jun 15 '16 #1
0 1225

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

Similar topics

3
by: *no spam* | last post by:
How do you refresh the controls on a panel? I've got a VB webform which contains a panel. On that panel is a checkbox and a textbox. I'd like the textbox to appear when the checkbox is checked...
16
by: Adda | last post by:
If I cycle through the MdiChildActivate event of the parent form I can read text in a textbox on the child mdiform -- console.writeline(Me.ActiveMdiChild.Controls(1).Text) But if I have a sub...
5
by: sparkle | last post by:
Hi, I'm having a problem getting data into my db using datatable and commandbuilder. The 'cars' table in my sql server holds: employeeID, carID, make, model, year. I have a datagrid with...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
2
by: nijaraju | last post by:
Hi, I need to refresh a text box in my web page every second to get the system date and time. Or else i wanna see the current date and time in a text box dynamically. Can any1 help please.... ...
0
Wagsy
by: Wagsy | last post by:
Hi All, I have a scale connected via serial port and displayed data in a textbox. Problem is the displayed data is very 'flickering'. How can i use a timer control to keep the data in the text...
6
by: naseemsadak | last post by:
Hi, I'm developing a program in c# 2005 and would like to know if it is possible to refresh a tab page's controls(e.g textboxes, combobox, datagridview) when a different tab is selected so when i...
16
Knut Ole
by: Knut Ole | last post by:
I have a function to draw some shapes on a form depending on values in queries/tables. The whole procedure takes up to ten seconds however, and as I'm new to coding, I assume I might have a lot to...
1
by: DoubleD | last post by:
Hi, I need assistance. I have a form in MS Access 2007. On this form I have 30 textboxes. 15 Of these are disabled and get data from a SQL query. The values of these textboxes is a number of which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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
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...

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.