Recent content by VBobCat

  1. VBobCat

    Question Implement Column/Cell/EditingControl derived classes, host custom ComboBox control

    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...
  2. VBobCat

    Question WebBrowser Control disables the Form when it navigates while not visible

    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!
  3. VBobCat

    Question WebBrowser Control disables the Form when it navigates while not visible

    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...
  4. VBobCat

    write to an excel file

    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.
  5. VBobCat

    Late-bound Event Sink: works with Word, not with Outlook. Why?

    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...
  6. VBobCat

    Mouse command with Windows API SendInput function - why doesn't it work?

    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...
  7. VBobCat

    Warning due to conflict between Form's Shared Function and its Default Instance

    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...
  8. VBobCat

    Warning due to conflict between Form's Shared Function and its Default Instance

    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...
  9. VBobCat

    Warning due to conflict between Form's Shared Function and its Default Instance

    Yes, thanks, I typed that sample in a hurry. Of course, it should be "Dim MyDialogX as New DialogX : Dim DialogXresponse= MyDialogX.ShowDialog()"
  10. VBobCat

    Warning due to conflict between Form's Shared Function and its Default Instance

    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...
  11. VBobCat

    Mouse Move and Click with Windows API Function SendInput

    [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...
  12. VBobCat

    Mouse Move and Click with Windows API Function SendInput

    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...
  13. VBobCat

    Error casting Integer()-typed arrays into Object()-typed parameters

    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...
  14. VBobCat

    Error casting Integer()-typed arrays into Object()-typed parameters

    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...
  15. VBobCat

    Functions and ReadOnly Properties

    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.
Top Bottom