VB.NET - richtextbox - counter on the left side - counter

I am probably the first one to ask this question. How do I add a counter on the left side of a richtextbox form like this?
1.
2.
3.
and so forth.
I haven't found a single answer. I appreciate all help! Have a nice day!
[Visual Basic 2010 Express]
Here is an example:
http://www.codeproject.com/KB/edit/FastColoredTextBox_/fastcoloredtextbox2.png

Related

monaco-editor: vertical line padding

Inspired by IntelliJ's 3 panel merge conflict view, I am trying to build something similar for vscode. I figured out, that I can integrate three complete customizable monaco-editors within a vscode Webview. But I cannot figure out, how monaco-editor applies the line padding in its diff-view like in the picture below (as I don't want to have a two-way but a 3-way diff using the internal diff-view is not an option for me):
Is it done through custom lineNumbers: lineNumber => isPaddingLine ? '' : lineNumber - someOffset, and inserting empty lines ("padding lines") at the related place and apply a deltaDecorations to those lines?
I hope there is a more easy way, which does not need the "padding lines" hack. Ideally I could just add something to a deltaDecoration like padding-bottom: $Xem
If I have just overlooked a way with vscode's api to achieve something like that, that would be of course more welcome than to deal directly with monaco-editor.
Thx a lot for any help / ideas :)
I finally found it :) IViewZone is the used magic.
And https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-listening-to-mouse-events is a nice example

How to get coordinates of selected word on QWebView

mighty All,
I have selected the word by QWebPage::SelectNextWord().
I just exec the code:
ui->webView->page()->triggerAction(QWebPage::SelectNextWord);
The question is: how to define coordinates of blue rect of selected word,
any method which allows to solve this (Qt, Windows MDN, jscript,...)
Does anybody know how to do this?
Regards,
Radmir
MDN Api allows to write small script, that solves the task.
Thanks,
the question is closed.
Radmir

RDLC Crystal Report Set Column Group Result Vertical

I can't find any help online with my problem maybe due to that I don't know the exact keywords to use but hear me out.
Here is the screen shot of my report format...
The actual report result appears like this...
The next item appears beside (right side) the first result. I want it to appear below instead like this...
How do I achieve this? Just comment any additional information that is needed.
BTW, I am using visual studio 2013 (Seems like it matters).
UPDATE:
This is the report format that I want to copy. The headers are not important just the body of the report. Thanks!
Try to use grouping go to this link hope this gives you a clue thanks
Finally found out what's wrong. I removed the column groupings and added only a parent row group. Then I added all needed rows and columns inside the group. It was fairly easy once I found out the problem.
Here's the output of my report.
Thanks guys!

VFP how to work with two forms Concurrently

in Visual Foxpro, I need to work with two forms concurrently. When I invoke the second form, from the first form, I need the second form to stay open, when I do some work on the original form. Presently the second form closes immediately, if I should try to click on any element in the first form.
The way I call the second form is this:
DO FORM imagez WITH ThisForm.pf1.page4.image7, this_form
READ EVENTS
Any ideas would be appreciated.
The form properties of both forms are:
DeskTop = .T.
ShowWindow = 2 - As Top-Level-Form
My above solution works. I had a ThisForm.Release() command installed in the LostFocus event...
My apologies to all...
Dennis

Setting the controlsource value of a listbox using Properties Window

I am new to VBA and am currently still studying the most basic ideas of the language. I haven't gotten that far in my VBA Code studies to write the code I need by hand, so, in the mean time, I have been using the VBA Editor to enter Property Values via the Properties Window. This has been proving far more difficult than I anticipated. My Goal is to create a drop down list for a VBA Form. I understand one of my options is to reference a range of cells in my excel worksheet by inputting it into the value field located right of the ControlSource Property. My attempts to input the desired range always comes up with the same error:
Could not set the ControlSource Property. Invalid Property Value.
I have tried looking in the VBA Help files and even searched online. I haven't had any luck finding the proper syntax to enter into this field.
I am assuming I may run into similar issues as I try to set other property values through the Property Window. Thus, I am diligently studying my VBA courses so I can simply write the raw code. But that takes time and I need this form to work as soon as possible.
Is there anyone out there that wouldn't mind lending me their brain for a moment? I would be most grateful. Having this working would bring a lot of stress off of me.
Thanks for reading!
What tigeravatar mentioned, works fine for me, for the ComboBox as well for the ListBox.
If I enter =a1:b5 into the ComboBox' RowSource, I see the values of the cells if I open the form and the Combobox. Tigeravatar's notation with $ and sheet! may be more reliable for the productive version.
The RowSource is where the boxes get their displayed items from. The ControlSource is where the chosen value finally is linked to. So if I write just A10 to the ControlSource, then open the form, then pick a value, close the form, I see the chosen value filled to the Excelsheet field A10.
Sometimes it helps to start a fresh UserForm and to add some simple fresh controls. If you seek around, you will probably alter property values that influence the behaviour in an unexpected way, and then you get lost. I have tested with Office 2010. If you have another version, it may be important to forum readers to know.