| |

VerySource

 Forgot password?
 Register
Search
View: 746|Reply: 5

Page empty problem

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 23:00:01
| Show all posts |Read mode
Clear the contents of the page and write:
 Dim con As HtmlControls.HtmlInputText
            For Each con In Me.Controls
                con.Value = ""
            Next
No, what should I do?
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-12 11:15:02
| Show all posts
Me.Controls is "No" HtmlControls.HtmlInputText
Control collection To maintain compatibility, use the base class Control of all controls as elements
You cannot traverse with HtmlInputText
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-14 22:30:02
| Show all posts
But no error is displayed when writing the program
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-3-14 22:45:01
| Show all posts
me.Forms.Control.Clear ()
Reply

Use magic Report

0

Threads

5

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-19 16:15:01
| Show all posts
me.Forms.Control.Clear ()
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-3-20 13:15:02
| Show all posts
me.Controls.Clear ()

or

me.Form.Controls.Clear () 'Assuming controls are manually dragged from the designer


The letter "s" is missing from me.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list