[urgent] genuflect is begged for OLE controls after say bye - bye
Time:12-22
Because want to EXCEL embedded in VB form window, so the first thing that comes to OLE controls, but OLE is a rectangle, when open the size can't control, Me for a few days, can't control the size, interface changes, finally gave up Using mdiform is used, because of a little complicate So want to directly add an excel object "parts" to the whole, the result is to control the size, the interface be good-looking, but each time the loading window, all need to double click to open, . When you use the OLE and ole1 doverb to activate, now is to control the size, no sheet1. Doverb, did not move the verb, wiping the activate also not line, no winter verb, how make, I just want to make a bit like the grid form controls, sheet1 without db_click events Don't want to use the API, it was the API is completely blind The load form, don't need to double-click directly EXCEL object editor status, ask everybody to help, blocked a few days, there is no choice
CodePudding user response:
Put out the parade, who give directions
CodePudding user response:
Say what? OLE can adjust the size of 1) design pattern Is just on the edit mode (which can be directly set Excel content), cut the focus out editor (such as the window area) is over, can adjust the OLE control size, 2) running mode Direct code resize
Private Sub Form_Resize () If Me. WindowState=vbMinimized Then Exit Sub On the Error Resume Next OLE1. Move 0, 0, ScaleWidth, ScaleHeight On Error GoTo 0 End Sub
CodePudding user response:
Accidentally drag, or abnormal interface is easy to size with ole box size uniform, there are other possible methods
CodePudding user response:
Since the design mode is not assured, in the run mode code, is used to adjust the size,
CodePudding user response:
How the whole running mode, ole, but the excel can't
CodePudding user response:
Don't understand! People speaking!
CodePudding user response:
Microsoft has a open source OCX, direct comparisons with good, But if only support 03 previous versions,