dcsimg

Search:

Type: Posts; User: kmlj

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    458

    Re: [Help needed] WPF Toolkit AutoCompleteBox

    ViewModel.cs


    using System;
    using System.Text;
    using System.Linq;
    using System.Collections.Generic;

    namespace Berg
    {
  2. Replies
    1
    Views
    458

    [Help needed] WPF Toolkit AutoCompleteBox

    I've been following the example to make a simple AutoCompleteBox.

    xaml


    <Window x:Class="Whatever.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
  3. Replies
    1
    Views
    840

    Re: Embed an application into a WPF

    I was able to get a lot further over here.
    Moving to CefSharp anyway .....
  4. Replies
    1
    Views
    840

    Embed an application into a WPF

    Hi there,

    I'm in the process of porting my project to WPF.
    I'm trying to launch an application (SmatraPDF) in a SlackPanel within my WPF program that has got several controls.



    {
    ///...
  5. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    I wouldn't have been reluctant one bit if no expenses had been incurred.
  6. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Yes, this does the trick. I must have come across that "System.Threading.Thread.Sleep" a hundred times before but I haven't managed to make it work the right way.
    Well, this should keep me going for...
  7. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    @ moxid
    Thanks a lot for looking into it again. You're right.
    Well I guess I'll have to bite the bullet and use the two-time-click (not double-click) solution based on jdc20181's code (# 6)

    You...
  8. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    I'm executing several different tasks from the same application, that's the reason why I need to have the WebBrowser Control visible. Granted, not for this task we're are discussing now.


    ...
  9. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    @ Shaggy Hiker
    I can but acquiesce.
  10. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Your code works like a charm but the problem is, I have to click button1 twice as I've said several times before, that's the only issue.



    Because I need to ;)

    I wish you could just give it a...
  11. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    @ Shaggy Hiker
    Self-explaining really but then again, I haven't managed to make jdc20181's code work :(

    @ jdc20181
    It's still work in progress ...
    Now, the first "routine" works flawlessly as...
  12. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Well, believe it or not but it does actually.


    Sorry mate, but you sound like someone who'd gladly patronize anyone not well acquainted with computer programming but that's not the way to go if...
  13. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Alrighty .....



    Private Sub Button1Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    WebBrowser1.Navigate("https://translate.google.com/#en/es/" +...
  14. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    https://s23.postimg.org/8n97j2zkn/Class_ID.png

    Isn't that a "decent" way in order to find out about IDs ?

    @ moxid
    Thanks but I'm trying to soft-pedal the issue I have, I'm just a beginner, go...
  15. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    That would have been a walk in the park if it were the Google Search function but it isn't as I need Google Translate in this particular case ;)


    I do have to use the Clipboard as I'm copying a...
  16. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Fair enough and I'm aware of that, but the thing is, the second part of the code which is supposed to pass the content of "result_box" to TextBox1 isn't executed because I guess is beeing...
  17. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Sorry mate, but I must have overlooked your reply.
    I tried that but it didn't make any difference.
    As mentioned in my previous message, I have to click button1 twice (not successively! But with a...
  18. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Hi there :)
    It's just a thumbnail mate, have you clicked to enlarge?
    That's the whole code actually.
    The code below runs without any issues. However, I have to click button1 twice:
    First click...
  19. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    Thanks mate for your help, however ....

    https://s24.postimg.org/pw832tpox/Error1.png
  20. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    I don't want to be thick but when I double-click my WebBrowser1 in Design Tab, this is what I get:


    Sub WebBrowser1DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs)...
  21. Replies
    41
    Views
    2,352

    Re: Combine / Merge two buttons' actions

    That's what I thought ;)


    You mean the code listed under Button2, right ?


    The way I understand this, I double-click WebBrowser1 control and enter the code:


    Sub...
  22. Replies
    41
    Views
    2,352

    Combine / Merge two buttons' actions

    I'd like to merge / combine these two actions into one button or a contextMenuStrip.

    Button 1


    Sub Button1Click(sender As Object, e As EventArgs)
    ...
  23. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    I've ended up adapting another piece of code to my needs ...


    Declare Auto Function SetParent Lib "user32.dll" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer
    Declare Auto...
  24. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    Thank you very much :)
  25. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    No, no, not all ;)
    I'm trying to understand what's going on but I'm just a beginner you see .....
    I'll try that, thanks.
    While we're still at it, I'm trying to pass an argument to SumatraPDF.exe....
  26. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    Thanks for your prompt reply.

    This is the working code:


    Imports System.Diagnostics
    Imports System.Runtime.InteropServices

    Public Partial Class MainForm
    <DllImport("user32.dll")> Public...
  27. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    Alright, getting near the end .....
    Based on this code, I've managed to make it work.
    Now, how can make SumatraPDF fit the panel upon start? (Process1 is running inside Panel1)
    I mean, I just want...
  28. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    Yes indeed, I had already seen that but it relies on Ghostscript which is not installed by default. Images won't let me copy any text either.
    For the time beeing, pdf2htmlEX is serving me very well....
  29. Replies
    11
    Views
    1,774

    Re: Embed Sumatra PDF Reader into a Form

    Would it be possible to run Sumatra PDF reader as a child process inside let's say a panel in my main form instead ?
    I'm just looking for the easiest way to view pdf files using my form without...
  30. Replies
    11
    Views
    1,774

    Embed Sumatra PDF Reader into a Form

    Hi there lads,
    I was wondering if it would be possible to embed Sumatra PDF reader into a given Form ?

    https://www.sumatrapdfreader.org/free-pdf-reader.html
    I've searched fairly a lot but most...
  31. Re: Start typing at caret's position in a TextBox

    Brilliant!
    I wasn't aware of that possibility.
    Thanks a lot lads :)
  32. Re: Start typing at caret's position in a TextBox

    Fair enough lads, as a matter of fact TextBox1.SelectionStart = TextBox1.TextLength would kick the caret to the end of the sentence, right.
    Now, for the sake of being as simple as possible, this is...
  33. Re: Start typing at caret's position in a TextBox

    I mean I can place the caret wherever I wish but as soon as I start typing, it just jumps to the end of the sentence :(
  34. Re: Start typing at caret's position in a TextBox

    Yes, I'm aware of that but the trouble is, I just don't seem to find the right code for that.
    This is what I've got so far:


    Sub TextBox1TextChanged(sender As Object, e As EventArgs)...
  35. [RESOLVED] Start typing at caret's position in a TextBox

    Hi there lads,
    I've cobbled together an application including an on-screen keyboard for Arabic language as well as a TextBox. Everything works well except for one thing:
    I want to be able to place...
Results 1 to 35 of 35



Featured


Click Here to Expand Forum to Full Width