The catalyst wave open Excel 44 - Excel form affected by the operation of the solution becomes minimum in Show Mode

In many of the features of Excel catalyst, the form will be used to develop a more user-friendly interactive use, but there is a problem, troubled for a long time, after running some code on the form, halfway down the pop-up dialog box to the user to do some MessageBox simple tips or interactive, discovery after the run, the form was originally displayed in the front end of the top level, but it becomes minimized in the taskbar.

The problems caused by very poor user experience, to get the final, are not brave enough to alert the user MessageBox dialog box and the like, or simply use ShowDialog mode is displayed, in short, very unhappy.

Recently, try a simple process, after the end of the program, by first Hide hidden form, and then re-Show to display the form, I did not expect such a simple process, even successfully achieve the desired effect, even if the form is halfway there MessageBox, selectively Excel ranges and other operations, the form is still displayed the forefront.

Attach a small source of pattern type selection.

        private void SelectMatchShapes(List<string> selectShpNames)
        {

            if (selectShpNames.Count > 0)
            {
                this.CurrentSht.Shapes.Range[selectShpNames.ToArray()].Select();
            }
            else
            {
                this.CurrentSht.Cells[1].Select();//没有图形选中就选择单元格。
            }

            this.Hide();
            this.Show();
        }

Epilogue

Sometimes, a simple process, will be able to bring a very big experience to improve, this post should be open to share the easiest, but if someone found this answer before I give reply to the author, these really old drought every nectar nourish general.

Participants not difficult, difficult person would not, put it on top of it a little overstated, but the reality is that many of these seemingly simple, if nobody guidelines, has been abandoned to the dark, I hope you do not give up after dark VSTO one who is.

Technical exchange QQ group

QQ group name: Excel catalyst open discussion groups, QQ group number: 788 145 319
Excel catalyst dimensional code open source discussion groups

About Excel catalyst

Excel catalyst name, first a public micro-channel number, then shun its name, officially launched the Excel plug-in, plug-continuous updates, the update cycle depends on my time may be able to fight for one week on a line function modules. Excel catalyst plug-permanent commitment to individual users free of charge!

Excel catalyst plugin uses the latest deployment of technology, once installed, all future updates automatically update is complete, no need to repeat concerns updates, manually download the installation package to reinstall, you can always keep the latest version with a single installation!

The catalyst Excel plug-in download link: https://pan.baidu.com/s/1Iz2_NZJ8v7C9eqhNjdnP3Q

Contact the author

No public

Named catalyst , due to strong itself, not everyone can immediately enjoy Excel, most people are still at the stage of the child's Excel software, the mind is very clear and want to achieve results, and experts who also have achieved it, that is, how to get yourself out Dounong, or worse, you do not know what Excel can do while staying in constant repetition, mechanically, manually doing data, spend countless youth years. So spawned whether as a medium, so that the majority of Excel users can instantly ignite the explosion point Excel, without the need desperately struggled day and night to learn skills, brain burn senior complex functions, going on from entry to give up the road.

Finally, Excel is powerful, in fact, the need to establish a point of view, not all things have to Excel to complete, and not all things Excel are very competent, the outside world is still a vast world, just a dazzling Excel star, there are other more exciting same powerful technology tools. * Excel catalyst will be leveraging these other technologies, so that Excel can play a more powerful eruption!

About Excel catalyst Author

Name: Li Weijian, for many years engaged in data (BI direction) analysis, a learner in the same way.
Served industries: retail category in particular shoes retail industry, electricity providers (Taobao, Lynx, Jingdong, the only product)

Technical route from an ordinary user, through the Excel software to learn, go from the data world, Coban non-IT professionals.
After many difficulties, and finally reach the plains of technical data on the road, learning many knowledge is no longer too difficult, but also formed its own set of data solutions (data collection, data cleaning and processing, multi-dimensional data modeling, data reporting display, etc.).

Specializes in technology areas: Excel and other Office family of software, the secondary development of VBA & VSTO, Sqlserver database technology, business intelligence BI technology Sqlserver of, Powerbi technology, cloud server deployment technologies.

2018 began his career made a major adjustment, from the original full-time job, turned freelance, no fixed income, temporarily on the road ahead is not clear, bitter return to full-time job, for Excel catalyst operations and development must be greatly affected (within the time could not maintain full-time job can not just put the results in a work published in time, the time outside of work is very limited, because he has thirty years of age, family responsibility).

And the majority of advocates with expectations: Excel catalyst has been able to run down, I have the benefit of the group were able to support ( multi-message encouragement, friend circle under forwarded the recommendation under small a reward and the most focused and where the company can and recommended recommended peers, so I can maximize the value of technology in your company to achieve a win-win (you can imagine how the data is preliminary consultant or small projects to develop forms of cooperation).

Guess you like

Origin www.cnblogs.com/ExcelCuiHuaJi/p/11225084.html