powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft Office [игнор отключен] [закрыт для гостей] / Textbox при нажатии на enter появляется новый textbox
9 сообщений из 9, страница 1 из 1
Textbox при нажатии на enter появляется новый textbox
    #35119285
mobyx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Такая проблема,мне нужно сделать так,чтобы при вводе в textbox какого-нибудь значения,при нажатии на enter появляется новый textbox, чуть ниже предыдущего.Подскажите как это сделать?Спасибо.
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35119580
redneck
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
хм...попробуй
Textbox2.show
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35123192
mobyx
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Не совсем то,у меня пока нет textbox2, его нужно создать.Как написать создание нового textbox
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35123233
vkodor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
expression.AddFormControl(Type, Left, Top, Width, Height)
Код: plaintext
expression.AddOLEObject(ClassType, FileName, Link, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height, )
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35125382
LETME
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
vkodor
Код: plaintext
expression.AddFormControl(Type, Left, Top, Width, Height)
Код: plaintext
expression.AddOLEObject(ClassType, FileName, Link, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height, )

vkdor, а где документацию побыстрому можно взять по созданию контролов?
Весч полезная, но всегда забываемая и недоступная своевременно.
Спасибо!
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35127097
vkodor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
LETME vkodor
Код: plaintext
expression.AddFormControl(Type, Left, Top, Width, Height)
Код: plaintext
expression.AddOLEObject(ClassType, FileName, Link, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height, )

vkdor, а где документацию побыстрому можно взять по созданию контролов?
Весч полезная, но всегда забываемая и недоступная своевременно.
Спасибо!
Вообще-то я вытащил это из обычного хелпа VBA OFICCE2000.
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35127119
vkodor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
F1 VBA
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
AddFormControl Method
                

Creates a Microsoft Excel control. Returns a Shape object that represents the new control.

Syntax

expression.AddFormControl(Type, Left, Top, Width, Height)

expression   Required. An expression that returns a Shapes object.

Type   Required Long. The Microsoft Excel control type. Can be one of the following XlFormControl 
constants: xlButtonControl, xlCheckBox, xlDropDown, xlEditBox, xlGroupBox, xlLabel, xlListBox, 
xlOptionButton, xlScrollBar, or xlSpinner. You cannot create an edit box on a worksheet.

Left, Top   Required Long. The initial coordinates of the new object (in points) relative to the upper-left 
corner of cell A1 on a worksheet or to the upper-left corner of a chart.

Width, Height   Required Long. The initial size of the new object, in points.

Remarks

Use the AddOLEObject method or the Add method of the OLEObjects collection to create an ActiveX control.
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35127126
vkodor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
VBA F1Creates an OLE object. Returns a Shape object that represents the new OLE object.

Syntax

expression.AddOLEObject(ClassType, FileName, Link, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height, )

expression Required. An expression that returns a Shapes object.

ClassType Optional Variant. (you must specify either ClassType or FileName). A string that contains the programmatic identifier for the object to be created. If ClassType is specified, FileName and Link are ignored. For more information about programmatic identifiers, see OLE Programmatic Identifiers.

FileName Optional Variant. The file from which the object is to be created. If the path isn’t specified, the current working folder is used. You must specify either the ClassType or FileName argument for the object, but not both.

Link Optional Variant. True to link the OLE object to the file from which it was created. False to make the OLE object an independent copy of the file. If you specified a value for ClassType, this argument must be False. The default value is False.

DisplayAsIcon Optional Variant. True to display the OLE object as an icon. The default value is False.

IconFileName Optional Variant. The file that contains the icon to be displayed.

IconIndex Optional Variant. The index of the icon within IconFileName. The order of icons in the specified file corresponds to the order in which the icons appear in the Change Icon dialog box (accessed from the Insert Object dialog box when the Display as icon check box is selected). The first icon in the file has the index number 0 (zero). If an icon with the given index number doesn't exist in IconFileName, the icon with the index number 1 (the second icon in the file) is used. The default value is 0 (zero).

IconLabel Optional Variant. A label (caption) to be displayed beneath the icon.

Left, Top Optional Variant. The position (in points) of the upper-left corner of the new object relative to the upper-left corner of the document. The default value is 0 (zero).

Width, Height Optional Variant. The initial dimensions of the OLE object, in points.
...
Рейтинг: 0 / 0
Textbox при нажатии на enter появляется новый textbox
    #35128515
LETME
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
vkodor VBA F1Creates an OLE object...
vkodor, great thanks!
...
Рейтинг: 0 / 0
9 сообщений из 9, страница 1 из 1
Форумы / Microsoft Office [игнор отключен] [закрыт для гостей] / Textbox при нажатии на enter появляется новый textbox
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]