I have this custom Control class, derived from ComboBox. Its purpose is to provide a standard behavior for controls whose list of items will be populated depending on what user types in it as search criteria.
Imports System.ComponentModel
Public Class SearchBox
Inherits ComboBox
Private...
Thanks a lot, JohnH. I made a Sub to handle ParentChanged events of both UserControl and WebBrowser (the latter in order to run upon UserControl's initialization). It tests whether WebBroser.FindForm Is Nothing and sets UserControl.Enabled property accordingly. It solved the problem!
Hello friends,
My application has a single Form. It always shows in full dock one of a set of several UserControls. They alternate as user demands different functions from the application, so that the Form is one along all runtime and it remains the same. Note: this is the desired design. To...
I think you should:
1. add a new blank workbook and store it to a variable of type Excel.Workbook;
2. copy the desired range to the new workbook;
3. save the workbook invoking the .SaveAs method against the variable you created at #1.
I hope it helps.
Dear friends, I need your help with solving this puzzle.
I wanted to wrap Word and Outlook interop code in classes that work regardless of Office Version on target user machines.
For that reason, I chose late binding instead of adding reference to a specific PIA.
Much with help of examples...
Dear friends,
I would like to command mouse operations with Windows API SendInput function. So I wrote the code below, but it doesn't work. Can anyone point out what I am doing wrong here?
Thank you very much.
Public Sub MouseMove(ByVal x As Integer, ByVal y As Integer)
Dim...
Dear folks, I'm all the more thankful for your explanations, but, as I said from beginning, my code compiles and works. I get no errors. However, I was receiving this specific warning: "Access of shared member, constant member, enum member or nested type through an instance; qualifying...
About the issue itself, I was taught about two workarounds, and both work, so far as I tested them.
1. Move out the problematic method, so that it be no longer a shared function in form class, but an independent function in a module.
2. Have only parametrized constructors in the form class, so...
My project has a "Dialog" Form.
Its purpose is to allow user to select none, some or all itens among the content of a default array.
This default array with all possible choices must be dynamically generated on runtime.
This gets done by function defined into the class of that class.
Whenever...
[SOLVED] Re: Mouse Move and Click with Windows API Function SendInput
Then, again, it was my fault not to see that everything that goes down must come up, and both keyboard keys and mouse buttons must have a pair of press and release messages in order to simulate the user movement. That is, the...
Dear folks, I need your help on this.
I need to move the mouse pointer to a give x,y coordinate, and then perform a click.
I've found several samples of how to use Windows Api "SendInput" function in order to do so, but they're all in C++/C#, which I can't straightly understand...
Let me explain my problem better, maybe it helps more.
I have this DialogBox, it works for me as a generic list selector for large lists of items (it has two listboxes side by side and buttons like "Add >>" and "<< Remove", and allows some smart text search with Regex).
It takes as...
This may be a silly question, but if I can send an Integer value into a sub/function whose parameter is typed Object, why can't I send an Integer() array into a sub/function whose parameter is typed Object() ? This throws this exception: "Unable to cast object of type 'System.Int32[]' to type...
This is a theoretical question:
When designing custom classes, how should I choose between implementing a Function or a ReadOnly Property? Is there any practical consequence about this choice? What is the difference between them?
Thank you very much.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.