Search results for query: *

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

    generate html and show it

    Glad to know you figured out what wasn't working. In addition, in case you must deal with tricky replacement needs, I would also recommend using Regular Expressions, through System.Text.RegularExpressions.Regex.Replace(...) function. There's also a nice tutorial here: Regular-Expressions.info -...
  17. VBobCat

    generate html and show it

    Ok, so I made up my own html file, named "template.html",that contains this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML lang=pt-br><HEAD><META charset=ISO-8859-1><TITLE>My Test Document</TITLE></HEAD> <BODY> <TABLE border="1"><TBODY>...
  18. VBobCat

    byte array but in negative index?

    What are you trying to accomplish? Reversing the array before using a regular index woudn't do it?
  19. VBobCat

    generate html and show it

    I took a fast look on your code, and I saw no reference to textboxes whatsoever. So I couldn't follow where your data comes from and what you attach it to. Perhaps it was my fault in not being able to follow your algorithm. But the idea is straightforward to me. I would do it by preparing a...
  20. VBobCat

    How to convert .txt file into DB or Excell cell?

    It is possible indeed, in a series of different ways. Which way you should choose depends of what you have and what you are able to do based on your present knowledge. Most of these ways are below the level of complexity that would suggest writing a .NET application, and that's the reason - I...
Back
Top