Search:

Type: Posts; User: mobi12

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    390

    Re: How to load HTML file in Webview2 TinyMCE?

    OK, I found the issue. It seems if HTML page has any " then it fails to load. If I replace all " with ' it loads fine.
    I also had to replace newlines from HTML files - else it would not load.
  2. Replies
    4
    Views
    390

    Re: How to load HTML file in Webview2 TinyMCE?

    Nothing happens!
    The value of fq, the HTML content of the file, is correctly read.
    Looks like if I pass a variable to ExecuteScriptAsync it does not run it, but if I pass a hardcoded HTML string it...
  3. Replies
    4
    Views
    390

    How to load HTML file in Webview2 TinyMCE?

    I have a Webview2 control named wbv in my form.
    I also have an HTML file with TinyMCE.

    My intention is to load a user specified file in TinyMCE editor.

    This code I wrote but not working


    ...
  4. Replies
    7
    Views
    411

    VS 2019 Re: Displaying HTML in Rich Text Box

    The problem seems lot more complex than I initially thought. I have written a very crude parser though still have not managed to figure out a way to include images. Embedded images in HTML are...
  5. Replies
    7
    Views
    411

    VS 2019 Re: Displaying HTML in Rich Text Box

    Yes, I can use Word InterOp but legally I can't distribute my code with it. So I prefer a standalone solution or using any free Nuget package.
  6. Replies
    7
    Views
    411

    VS 2019 Displaying HTML in Rich Text Box

    I want to display HTML content in rich text box.

    I am able to convert the HTML by loading it into a web browser control and then selecting all and then pasting on rich text box. It does work...
  7. VS 2019 Re: TreeView - sort children of selected node only

    Thanks. Worked brilliantly.
  8. VS 2019 [RESOLVED] TreeView - sort children of selected node only

    How do I sort the nodes under selected node only in a treeview?

    treeview1.Sort() is globally sorting entire treeview.

    I only want to sort children under currently selected node only.

    Thanx
  9. Replies
    10
    Views
    2,145

    Re: VB.NET on Apple Mac / MacBook

    What kind of application you want to develop in Mac? If very simple apps that does not have to interact with files in user's computer and you want to run it in mobiles too, best to start with...
  10. VS 2019 Re: [RESOLVED] RichTextBox - add columns to existing table?

    I have not found a way to visually select a column. But I think from the table array it would be possible to select a column’s content programmatically and paste somewhere.
  11. VS 2019 Re: RichTextBox - add columns to existing table?

    After lots of trial and errors I finally managed to implement insert/delete row/column in RTF tables.

    I have taken this approach. Convert a table to an array (including rich text formatting). Then...
  12. Replies
    5
    Views
    1,454

    VS 2019 Re: StartsWith/EndsWith vs Like

    Intesting the situation with C#.

    I find LIKE more versatile because I can compare like words ending with cise or cize in one command LIKE "*ci[sz]e".

    The corresponding code with EndsWith will...
  13. Replies
    5
    Views
    1,454

    VS 2019 StartsWith/EndsWith vs Like

    Is there any difference between following commands?



    If mwd.EndsWith("ous") Then mwd = mwd.Replace("ous","ás")




    If mwd Like "*ous" Then mwd = mwd.Replace("ous","ás")
  14. VS 2019 Re: RichTextBox - add columns to existing table?

    The tables in RTB are quite cumbersome to deal with. I am thinking off editing tables inside datagridview and then pasting in RTB. Data Grid View offers easier option to manipulate rows/columns.
  15. VS 2019 Re: RichTextBox - add columns to existing table?

    Thanks. I am using VS2019 on .NET 4.7.2 Does it not already use this updated version of rich text box?
  16. VS 2019 Re: RichTextBox - add columns to existing table?

    I am adding the table in rich text box with following code.



    Public Sub RTBAddTable(ByVal col As Integer, ByVal width As Integer)
    Try
    Dim rtbTemp As New RichTextBox
    ...
  17. VS 2019 Re: RichTextBox - add columns to existing table?

    I can insert a new table without problem. The problem is how to insert or delete a column from an existing table.

    I am thinking of copying existing table to memory, storing the cell contents into...
  18. VS 2019 [RESOLVED] RichTextBox - add columns to existing table?

    In a Rich Text Box, is it possible to add/remove columns in a table?

    If yes, how?

    Thanx
  19. VS 2019 Re: .NET 5 - no listview scrollbars on deployed version

    Hello

    Yes, the listview has anchoring/docking!

    I am not at my dev PC now, so I briefly explain what I did.

    I created a simple Windows form.
    Add a menu bar on top.
    Added a split container -...
  20. Replies
    3
    Views
    1,002

    VS 2019 Re: .NET 4.7.2. Rich Text Box RegEx problem

    Yes, I had to tackle it by compensating for the character offset. After some experiments, it appeared that the offset is same as number of "\cellx" within the RTF content. After I appended same...
  21. Replies
    3
    Views
    1,002

    VS 2019 .NET 4.7.2. Rich Text Box RegEx problem

    I am facing a weird RegEx issue with Rich Text Box in .NET 4.7.2

    I am running a spell check code (shown below).

    When RTB has no table, it selects words correctly.

    When RTB has table,...
  22. VS 2019 Re: .NET 5 - no listview scrollbars on deployed version

    I have used the following command deploye the single file executable. The size of EXE is 150 MB. An equivalent EXE under .NET Framework is only 1 MB. When I tried with "trim" command the EXE was 84...
  23. VS 2019 Re: .NET 5 - no listview scrollbars on deployed version

    It says Win 7 SP1 above and Win 10 supported.
  24. VS 2019 .NET 5 - no listview scrollbars on deployed version

    I am facing a strange problem with .NET 5 ListView.
    My set up is VS2019 and .NET 5 WinForm application.

    In my dev PC, running on Windows 10, it is showing the vertifical as well as horizon...
  25. Replies
    7
    Views
    1,265

    VS 2019 Re: Anyone deployed .NET 5 app in Mac & Linux?

    My Winform app uses a rich text box and list view. These are 2 predominant components. Is it possible to re-write it as web app? I have never tried web apps before.
  26. Replies
    7
    Views
    1,265

    VS 2019 Re: Anyone deployed .NET 5 app in Mac & Linux?

    WinForms type
    So which type of app is truly cross platform then?
  27. Replies
    7
    Views
    1,265

    VS 2019 Anyone deployed .NET 5 app in Mac & Linux?

    I have started re-developing a .NET Framework project to .NET 5 with the sole aim of being able to run it in Windows, Mac and Linux.

    But has anyone done it yet? I know it can be done in theory but...
  28. Replies
    6
    Views
    1,618

    VS 2019 Re: .NET 5 - how to cut paste menu?

    Thanx - will try this approach.

    I do wonder why Microsoft made life hard in .NET 5.
  29. Replies
    6
    Views
    1,618

    VS 2019 .NET 5 - how to cut paste menu?

    In older VB.NET I could easily cut a menu and paste in a different location.

    In .NET Core/5 I see that menu design is via collection items.

    How do I move a menu if I created in wrong location...
  30. VS 2019 Re: Webbrowser control does not load HTML if passed as command line parameter

    Managed to resolve it. Had to introduce a pause manually like this.



    Dim html As Object = File.ReadAllText(CurrentlySelectedFile)
    Threading.Thread.Sleep(1000) 'not loading html without a pause...
  31. Replies
    1
    Views
    618

    VS 2019 Re: Overriding webbrowser control's shortcuts

    OK, managed to do it in web browser's PreviewKeyDown event. It did not work with Form's keyup/down or keypress events.



    Private Sub wb_PreviewKeyDown(sender As Object, e As...
  32. Replies
    1
    Views
    618

    VS 2019 Overriding webbrowser control's shortcuts

    If I drag a web browser control in a form and then press key combination like Ctrl+O, Ctrl+P, Ctrl+K etc, it performs some predetermined operations.

    How I can override these behavior with my own...
  33. VS 2019 Re: Webbrowser control does not load HTML if passed as command line parameter

    Same result, still works only with messagebox

    I also tried with with storing command line argument in a variable and using it in the Form_Shown event but without any luck.

    Interesting part is,...
  34. VS 2019 [RESOLVED] Webbrowser control does not load HTML if passed as command line parameter

    I have created a simple form with a web browser control.

    In the web browser control, I am loading TinyMCE editor .html file.

    No problem, working fine as expected. I can open any HTML file and...
  35. VS 2017 Re: Using .NET 5 Rich Text Box with .NET 4 Windows Forms application

    Yes noticed that. What was a 1 MB EXE in .NET Framework, after publishing in .NET Core it became 140 MB even after trimming :eek:
  36. VS 2017 Re: Using .NET 5 Rich Text Box with .NET 4 Windows Forms application

    Ah OK, I thought somehow I could use a .NET Core DLL in .NET Framework :blush:
  37. VS 2017 Using .NET 5 Rich Text Box with .NET 4 Windows Forms application

    I have an application which use Rich Text Box on .NET Framework 4.0 (the code compiles fine with VS2010 as well as VS2019).

    I have used the .NET 5 Rich Text Box and noticed some improvements.
    ...
Results 1 to 37 of 37



Click Here to Expand Forum to Full Width