Error converting set statusbarPanel text from VB6 to VB.NET [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 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.

Related

Is it possible to use MultipleColumn in VB ListBox [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 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.

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.

Message Boxes not showed [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
net Programmers
I am in a trouble
I want to display messagebox after a while of time
i did this but the problem is that the messagebox appears behind the other windows of the active programs
I want a code that displays the messagebox over all opened windows to make the user see it
and THANKS
You can't set TopMost on a message box. However, you could create your own class/dialog set TopMost to true on it and then use ShowDialog to display it.

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!

How do I get microsoftreportviewer on my Windows Forms form? [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 8 years ago.
Improve this question
I am trying to put a PSD file on my form using Microsoft report viewer, but I cannot find it. Where is it?
You should have a "Reporting" tab in the toolbox, its in there.
If you do not have that tab, right-click in the toolbox, select "Choose Items", and select the ReportViewer box.