Is it possible to use MultipleColumn in VB ListBox [closed] - vb.net

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Im not able to use MultipleColumns in ListBox. I've set ListBox1.MultiColumn attribute to true. ListBox1.ColumnCount says ColumnCount is not a member of ListBox

Please notice that a Multi-Column ListBox does NOT mean that you can add several columns (such as a datagridview). When you set ListBox1.MultiColumn = True it only means that ListBox1 places items into as many columns as are needed to make vertical scrolling unnecessary. You can test it by decreasing the height of ListBox1 and then adding many items. You will see something like this:
Multi-Column ListBox
As you can see, ListBox1 automatically puts items in multi columns and there is no Vertical scrollbar.
For more information, you can see ListBox.MultiColumn Property from Microsoft documents.

Related

Bold Text in Dialog Box - DXL [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I'm trying to make an program in DXL whos asks the user some data. For this reason, I would like show the instruction to user with an Dialog Box. How can I do put a bold strings in the Dialog Box? (I'm new in this language).
Although the question is already answered, I update the question so that future readers can understand it better:
I know how dialog boxes are created and displayed in DXL, as follows:
DB dialog = create("My DB box.", styleCentered | styleFixed);
label(dialog, "ALL");
show dialogue
But what I want to do is add bold text inside it.
This depends on where you need the bold text. As far as I know it is e.g. not possible to make a label of a field bold, but you could perhaps create a DBE of type richField (or richText) on your dialog box and fill it with richtext, like in
void doSomething (DBE x) {ack "boo!"}
DB dialog = create("hi there")
richField (dialog, "", "Remember to {\\b save your module} before calling this function", 60, true)
button (dialog, "Do something", doSomething)
show dialog
For more complex texts you might want to look at drawing text on a DBE canvas

VBA to change background color of exel cell if value of any cell in sheet is deleted or updated [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working on pre populated excel sheet with data in every cell ,
I am looking to a macro or conditional formatting or formula which will change the color of any cell of that sheet where the contents of the cells are either edited or deleted or changed ?
regards
As BigBen said you need a worksheet_change event for it. This is fairly easy to search for and I can find multiple similar questions on it.
Since it's so simple though, pop this code into your sheet module. Change the yellow to what color or search for the other methods to change cell colors in VBA.
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Cells.Interior.Color = vbYellow
End Sub

Initialize PictureBox before Form Load event [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
In the Form Load event I bring data from a database, all I want to do is to display a PictureBox which contains a GIF with a loading animation, but I want to do it after the data is loaded from the database, some idea?
I assume you want to display a loading gif while the data is retrieved from the database.
Instead of putting all the code inside the Form Load, you can try to first display the PictureBox and then start a new thread that loads the data. Once the data is retrieved, you can remove the gif.

Error converting set statusbarPanel text from VB6 to VB.NET [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a code in VB6 as follows:
stbStatusBar.Panels("MONITOR").Text = "Monitor Initializing"
Now I'm converting code into VB.NET as follows:
stbStatusBar.Items.Item("MONITOR").Text = "Monitor Initializing"
But it doesn't set any values. Any help would be appreciated.
Although it is hard to understand code from just one line, I think you forgot to name your Statusbar Panel in designer form in VB.NET.
Check If any panels with name "SERVER" exist. If not you should name it as follows:
stbStatusBar_Panel.Name = "SERVER"
And then add panel in statusbar.

How to obtain data from one form to another? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
User clicks select colour in Form1, it opens Form2- they click red and click the button "Choose". Form2 closes, and the colour is set as a variable in Form1. How do I do this? Any code samples?
Yes, this is possible. You can do something called passing variables between forms.
You can do this by making a textbox/combobox a public property from the modifiers menu in design view
Look here for information on passing variables between forms.
Also P.S - Show some of your working first, before posting just for code!