vb One data generates multiple textboxes

Updated on technology 2024-04-05
13 answers
  1. Anonymous users2024-02-07

    On the first floor, your method generates an array of controls that can't respond to events.

  2. Anonymous users2024-02-06

    Split(a,b,c,d) A is the string to be decomposed, b is what is used as a group, c is how many segments are divided, and d is the comparison method used to distinguish substrings.

  3. Anonymous users2024-02-05

    a=split(text1,vbcrlf) and then in the array a, a(0) is the first line, a(1) is the second line, and so on. If you want lines 5 through 17, you can use: a=split(text1,vbcrlf)redim preserve a(4 to 16)b=join(a,vbcrlf).

  4. Anonymous users2024-02-04

    Start by defining array a

    dim a()

    Here's how to save the data in array A with a space as a delimiter:

    a()=split(," ")

    Here's how to save the data in array a with a comma as a splitter:

    a()=split(,",")

  5. Anonymous users2024-02-03

    The multiline property of the text box is set to true, and the program is as follows:

    private sub form_activate()dim a(1 to 5, 1 to 5) as integerdim s as string

    randomize

    s = ""

    for i = 1 to 5

    for j = 1 to 5

    a(i, j) = int(10 * rnd)s = s & a(i, j) &" "

    nexts = s & vbcrlf 'Divide the data next

    send sub

  6. Anonymous users2024-02-02

    dim filenumber

    filenumber = freefile 'Obtain unused document numbers.

    open "c:\" & for output as #filenumber 'Create a file.

    print #filenumber, &vbcrlf & 'Output the contents of two text boxes to a file, and so on.

    close #filenumber 'Close the file.

  7. Anonymous users2024-02-01

    The simple way is to open the program with the shell and the parameters set to get focus.

    The data is then entered in the form of a send button.

    The more advanced and complex ones are to use the API to send messages, and I know that.

  8. Anonymous users2024-01-31

    Define an array of text boxes.

    Assume that the text1(0) text box is already existed.

    Use the following actions to dynamically create a text box.

    load text1(i)

    text1(i).visible=true, then adjust the left, top, and length and height of text1(i), where i is a positive integer, and text1(i) cannot be loaded repeatedly.

  9. Anonymous users2024-01-30

    Add two buttons to the form: command1, command2, and a text box: text1, and then set the index property of text1 to 0 in the properties window

    private sub command1 click() Click to add a text box one at a time.

    dim i as long

    i =load text1(i)

    text1(i).visible = truetext1(i).zorder

    text1(i).move text1(0).left + text1(0).width * i

    end sub

    private sub command2 click() Click to delete one text box at a time.

    dim i as long

    i = - 1

    if i > 0 then unload text1(i)end sub

    Note: text1(0) is placed on the form at design time and cannot be deleted.

  10. Anonymous users2024-01-29

    textbox tb = new textbox;

    As for deleting, you can delete it directly or hide

  11. Anonymous users2024-01-28

    open "c:\" for output as #1 'In quotation marks, guess that Lao Liang is the path + file name Suiyun.

    print #1, 'text1 is the name of the textbox control.

    close(1)

  12. Anonymous users2024-01-27

    The values in the text box are separated by commas:

    dim a() as string

    a = split(, ",")

    Note that array a is a string type, and if you want to process it further, let's say it's an integer type:

    dim a() as string, b() as integer, i, n

    a = split(, ",")

    n = -1

    for i = 0 to ubound(a)if isnumeric(a) then

    n = n + 1

    redim preserve b(n)

    b(n) = a(i)

    end if

    next i

  13. Anonymous users2024-01-26

    dim r

    r = split(, vbcrlf)

    r is the array you want.

    After sorting = join(r, vbcrlf).

Related questions
3 answers2024-04-05

What is your problem? To add.

11 answers2024-04-05

Insert 3 texts, 1 command

private sub form_load()= "1000" 'Blood volume. >>>More

6 answers2024-04-05

i=1,j=1:x(1,1)=x(0,0)+1+1=2i=1,j=2:x(1,2)=x(0,1)+1+2=3...

i=1,j=5:(x,5)=x(0,4)+1+6=6--- >>>More

13 answers2024-04-05

The most accurate possible traffic data can only be obtained if the statistics are added correctly, and the following points need to be taken into account during the addition process: >>>More

12 answers2024-04-05

It seems that no, mathematicians and their computers in various countries are still trying to find larger prime numbers. If there is an equation, do you still have to find it this way? >>>More