Search:

Type: Posts; User: VBobCat

Search: Search took 0.02 seconds.

  1. Extend ListView Control to catch an event when View Property changes

    Hello friends,

    I have an extended ListView class and I wanted it to allow aplication to catch an event when its "View" property changes. Is the code below the best way to achieve this?

    ...
  2. Replies
    2
    Views
    1,280

    Re: Options to accdb files

    Thank you! I'll take a look on both.
  3. Replies
    2
    Views
    1,280

    [RESOLVED] Options to accdb files

    Hello Friends,

    I develop in VB.NET and my Applications store data primarily in .accdb files, connected via Data.OleDb objects and using ACE provider.

    I would like to know if there are best and...
  4. 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...
  5. VS 2013 Re: WebBrowser Control disables the Form when it navigates while not visible

    Usually, but not always. For instance, if I manually click the Form and reactivate it, but my program is still interacting with WebBrowser content and gets it to navigate again (for instance,...
  6. VS 2013 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...
  7. Re: Late-bound Event Sink: works with Word, not with Outlook. Why?

    Well, no special reason but my practice of always using TryCast whenever I'm not 100% sure of object's type, so I can test whether the cast succeeded or not without throwing an exception. Which I...
  8. Replies
    9
    Views
    5,266

    Re: Word cannot open datasource error

    Well, I recorded a Macro while creating a mailMerge, and the code was generated in a different fashion:


    ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
    ...
  9. Replies
    9
    Views
    5,266

    Re: Word cannot open datasource error

    Try replacing this:
    strconnection = "DSN=MS Access Databases; " & "DBQ = " & mydblocation & ";"
    By this:
    strconnection = String.Format( _
    "DSN=MS Access Databases; DBQ={0};...
  10. 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,...
  11. Re: How to handle events from late-bound objects?

    Then, again, if there is a way of referencing Office Interop classes early that would allow my application to run seamlessy regardless of the Office version in user's computer (at least from version...
  12. Re: Need script to extract text at certain places in a set of .txt files... (regEx) ?

    I don't think you need COM automation to accomplish this.
    Two .NET classes can do all the job for you.
    Take a look on System.IO.File -...
  13. How to handle events from late-bound objects?

    Dear friends,
    My application already automates Word, Excel and Outlook.
    Since its users can have Office 2007 to 2013 in their machines, i decided to stick with late binding to avoid compatibility...
  14. Re: SendInput - Function to type ASCII characters - where's the flaw?

    Lots of Thanks! I'm still developing these interactions and the functions you've mentioned could come in handy, I'll take a closer look on the documentation for each one of them.
    In my case, in...
  15. SendInput - Function to type ASCII characters - where's the flaw?

    Dear friends,

    I need to fill a "File Open" dialog box with a string (file path and name).

    Since my language has plenty of characters on the extended ASCII - for instance, a file can be named...
  16. Re: [RESOLVED] How to use SynchronizingObject property

    Is there a way to assure that a Timer and an OleDbConnection share the same thread? Might this SynchronizingObject property be used for that?
  17. Re: Warning due to conflict between Form's Shared Function and its Default Instance

    Thanks, my class had already two constructors, and the one without parameters was quite an idle one. Removing it solved the problem. The parametrized constructor retrieves previous settings and, from...
  18. 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...
  19. [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...
  20. Re: Mouse Move and Click with Windows API Function SendInput

    Yes, I'll try and learn to do that, for you've helped me before and I trust your advice. And Pinvoke.net sure is the place to go first. But...

    MSDN states that "This function has been superseded....
  21. 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"...
  22. Re: Error casting Integer()-typed arrays into Object()-typed parameters

    Thanks. Let me explain my problem, 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...
  23. 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...
  24. Replies
    9
    Views
    3,339

    Re: Detect debug mode

    Thank you very much, that suggestion is nice, and in time, I'll implement it.
  25. Replies
    9
    Views
    3,339

    Re: Detect debug mode

    My application automatically performs the repetitive filling of some boring, hideously detailed, annoying forms in my organization's intranet, since they won't give in on collecting our branch data...
  26. Replies
    9
    Views
    3,339

    Re: Detect debug mode

    Thanks, .paul, that is exactly what I was looking for.
  27. Replies
    9
    Views
    3,339

    Detect debug mode

    Hello, I would like to know whether is it possible to detect, in runtime, via some property, if application is running in debug mode, hosted inside IDE, or as a stand-alone independent executable....
  28. Re: [RESOLVED] Help With Kleinma's Suppressing Javascript Alerts in WebBrowser

    Ok, it's possible to select JS-Confirm response by replacing line "PostMessage(PopupHandle, &H10, New IntPtr(1), IntPtr.Zero)" with one of these:
    -> "PostMessage(PopupHandle, &H100, New IntPtr(13),...
  29. Re: [RESOLVED] Help With Kleinma's Suppressing Javascript Alerts in WebBrowser

    Thanks for sharing this information. I knew that from some experiences in Firefox-requiring websites. But I already have a quite complex application for automating navigation with VB.Net WebBrowser,...
  30. Re: [RESOLVED] Help With Kleinma's Suppressing Javascript Alerts in WebBrowser

    I'd like to share an interesting result of some simple modifications to Kleinma's brilliant original. This is what I did:
    1) I increased tmrPopCheck.Interval from 100 to 1000;
    2) I suppressed the...
  31. Replies
    3
    Views
    1,168

    VS 2010 SOLVED: ComboBox not filled with DataTable - Why?

    My own mistake. I just have been told about it. Using statement disposes the used resource at end of block, so I have disposed the DataTable and, with it, all ComboBox data, which was bound and...
  32. Replies
    3
    Views
    1,168

    VS 2010 Re: ComboBox not filled with DataTable - Why?

    I am not so sure about how to do so...

    What I can say, in order to clarify, is this: my data source is an Access 12 file (.accdb), and all the OleDb commands I use to handle it are encapsulated in...
  33. Replies
    3
    Views
    1,168

    VS 2010 ComboBox not filled with DataTable - Why?

    I used this code:


    Friend Sub PopulateCB(ByRef mycontrol As ComboBox, _
    ByVal expressionSQL As String)
    ' DMBD is my data-handling class:
    Using DataTableOrigem As...
  34. VS 2010 .NET WebBrowser control's DocumentCompleted event passes no pDisp argument

    Hello.

    I have some experience developing for VBA inside Office apps, but I am quite new to VB.NET, and I just noticed that its WebBrowser control is a bit different from that one I used to...
Results 1 to 34 of 34



Click Here to Expand Forum to Full Width