Search:

Type: Posts; User: finn0013

Page 1 of 6 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    5
    Views
    2,825

    Re: Easy Treeview Modification

    I tried that, but when I drew the node, the box just appeared behind the sub-nodes and nodes underneath. Because of this, I tried to change the height of the node so that the next nodes down would...
  2. Replies
    5
    Views
    2,825

    Re: Easy Treeview Modification

    I have been busy with other stuff and just managed to pick this up again.

    Setting the DrawMode to OwnerDrawText works but does not resize the TreeNode. I have been looking for a way to resize a...
  3. Re: (REOPENED) Changing WebBrowser control contents before 1st render

    Cool - thanks for the clarification. I am new enough to .net that I was having trouble figuring out what your code allowed that the normal web browser didn't. I actually used your control for a test...
  4. Replies
    5
    Views
    2,825

    Re: Easy Treeview Modification

    By easy I mean relatively little COM and API. I am still pretty new to .net. I am pretty well versed in both VB6 and Java, so I understand the concepts, I just haven't figured out all the syntax...
  5. Replies
    5
    Views
    2,825

    Easy Treeview Modification

    Is there an easy way to modify the nodes in the treeview so that it can display a panel or some other control as part of one of the nodes? (See attached picture)
  6. Re: (REOPENED) Changing WebBrowser control contents before 1st render

    Why is it not reliable?

    FYI for anyone interested: After looking at this more, it appears that it doesn't matter if I use the control created by phil or not. As long as I place my update code in...
  7. Re: (REOPENED) Changing WebBrowser control contents before 1st render

    So, in looking at this further, it appears that the rendered html is being updated, even though the InnerHtml property is not. If you update the code I attached, changing the doMods() method to...
  8. Re: *** RESOLVED *** Changing WebBrowser control contents before 1st render

    I have created a test project with phil's code to see if it will work for me before going through the trouble of adding it to my project, but I can't get it to work - it does not actually update the...
  9. Replies
    6
    Views
    947

    Re: *** RESOLVED *** Implementing a method

    That makes more sense to me. Thanks for the clarification.
  10. Replies
    6
    Views
    947

    Re: *** RESOLVED *** Implementing a method

    Thanks, I didn't know that. I assumed that every object was passed by reference unless you specifically specified to pass by value - java habits.
  11. Replies
    6
    Views
    947

    Re: Implementing a method

    Nevermind... I was trying to return void when it really returned Boolean...
  12. Replies
    6
    Views
    947

    *** RESOLVED *** Implementing a method

    I am new to C# and am having trouble translating the following line from VB.net to C#:


    Public Sub BeforeNavigate2(ByVal pDisp As Object, ByRef URL As String, ByRef flags As Object, ByRef...
  13. Re: *** RESOLVED *** Changing WebBrowser control contents before 1st render

    So when you set AllowNavigate = false then it will still load the new html into the DocumentText property, just not render it?
  14. Re: Disable Print in WebBrowser control

    This has been resolved in this post:

    http://www.vbforums.com/showthread.php?t=421686
  15. Re: Changing WebBrowser control contents before 1st render

    Cool - thanks for all the help and suggestions.
  16. Re: Changing WebBrowser control contents before 1st render

    Thanks for the help, his code is doing exactly what I want.

    This is really a C# question, but I think you guys may know the answer to this:
    I started rewriting it in C#, but someone mentioned...
  17. Re: Changing WebBrowser control contents before 1st render

    By doing that, will the server persist the session? If a user signs into a site (i.e.: a forum) and points it at a bunch of pages that rely on the user being singed in, using the web browser control...
  18. Re: Changing WebBrowser control contents before 1st render

    I forgot to mention why that would not work in my last post... :)

    Many of the pages users are likely to want will include graphics, dynamic html, and content rendered via ajax calls. By grabbing...
  19. Re: Changing WebBrowser control contents before 1st render

    penagate - I am not quite following you... When I call navigate() and point it at a web site, I do not get the contents back to hand to the browser control, it just renders it. This application will...
  20. Re: Changing WebBrowser control contents before 1st render

    Perhaps I wasn't clear...

    This is an issue with the WebBrowser control, which is not VB/C# specific. There is a post in the C# forum, however I have posted here as well to broaden the views and...
  21. (REOPENED) Changing WebBrowser control contents before 1st render

    *** UPDATE ***
    This problem is with the WebBrowser component. The code posted below is what I am trying to insert into the control before it renders the page for the first time.
    *** UPDATE ***
    ...
  22. Re: Disable Print in WebBrowser control

    Since nobody has posted a way to modify the contents before the first display, I am guessing that the control will not let you do it?

    Does anyone know if there is a way to add a hook to the...
  23. Re: Disable Print in WebBrowser control

    I have figured part of it out.

    By taking advantage of the way javascript treats methods and allows for method assignment, I can use this code to override the print function and make it do...
  24. Replies
    4
    Views
    716

    Re: 's problem when insert into database

    By building your queries using strings and concatenating the arguments in, you open the door to SQL Injection attacks. By manipulating the contents sent, it is feasible to insert and/or view data...
  25. Re: Disable Print in WebBrowser control

    I am not really very picky about how the javascript print() call gets cancelled as long as it does not affect the AJAX and rendering of the rest of the page.

    I am not opposed to "listening" to the...
  26. Re: Disable Print in WebBrowser control

    Yes, which is also the reason why I can't disable javascript. Some of the pages will execute portions as AJAX calls. I don't really want to deal with executing all the scripts on my own, so it is...
  27. *** RESOLVED *** Disable Print in WebBrowser control

    I have been trying to figure out how to disable print functionality in the WebBrowser control.

    Just a note - I am very new to C#. I have pretty heavy experience in VB6 and Java though.

    Some...
  28. Re: How to get a sorted list of keys that are contained within a Map

    Try the below code - it will give you a string array sorted using the compareTo method. If the key you are using is a different object type just do the same thing but make sure it implements the...
  29. Re: ActiveX - Tab Not Detected

    If you end up using the code in the above link make sure you replace the ShiftState property with this one to ensure that you do not get overflow erros.


    Private Property Get ShiftState() As...
  30. Re: ActiveX - Tab Not Detected

    I have tried everything I can think of including subclassing the control (as well as each of the subcontrols) to listen for the tab key with no success.

    The only way I have found to do it is with...
  31. ActiveX - Tab Not Detected [*** RESOLVED ***]

    I have an active X control with multiple picture boxes in it. I currently have it set up so that I can detect the keydown event for anything but the tab key. I don't care about the control losing...
  32. Replies
    15
    Views
    3,230

    Are you talking about grabbing text from another...

    Are you talking about grabbing text from another application's textbox? If so you will need to use API.

    Do a search on FindWindowEx and it will bring up tons of examples.
  33. Replies
    15
    Views
    3,230

    Alternatively if you want to write your own...

    Alternatively if you want to write your own control:

    RFC 821 - SMTP
    RFC 2045 - MIME Part 1
    RFC 2046 - MIME Part 2


    There are a ton more on that site depending on what you want to do. ...
  34. Replies
    15
    Views
    3,230

    Wow - been a long time since I originally posted...

    Wow - been a long time since I originally posted this. In order to get this to work you will have to use MIME encoding and send the email in either rich text format or HTML format. I am not very...
  35. Replies
    3
    Views
    1,046

    Here is the fix: Private Sub...

    Here is the fix:

    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)

    Dim p As POINTAPI
    Dim sw As Long
    Dim sh As Long

    Call...
  36. Replies
    3
    Views
    1,046

    Seems the difference between PX and NX is always...

    Seems the difference between PX and NX is always 4 and the difference between PY and NY is always 30.

    I could hard code to account for this however I am reluctant to do so as this may be something...
  37. Replies
    3
    Views
    1,046

    sorry - meant to say PX = NX and PY = NY

    sorry - meant to say PX = NX and PY = NY
  38. Replies
    3
    Views
    1,046

    Cursor Position - **RESOLVED**

    This is driving me nuts - I can not get X to equal NX or Y to equal NY. It all looks right to me, however I am just spinning my wheels now - just paste this in a form and run:

    Option Explicit
    ...
  39. Replies
    14
    Views
    1,602

    Yes, it is a global variable. The only change in...

    Yes, it is a global variable. The only change in between each method call is that if the search parameter is found the string is removed.

    The only reason that it is not currently in a database...
  40. Replies
    14
    Views
    1,602

    The slowest part seems to be the call to InStr -...

    The slowest part seems to be the call to InStr - it takes a while to search through all 5mb of data. This process will be running against 50,000+ files so every bit of optimization I can get helps....
Results 1 to 40 of 224
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width