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!
Related
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.
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 4 years ago.
Improve this question
Sorry for my English, but i'm studying it.
My question is this: is possible to create a taskbar like Windows 10 taskbar in vb.net? I'm developing a vb.net OS and i need a taskbar. I would like it to work in such a way as to show an icon for each application (project forms) that are opened by the OS. I've tried using pictureboxes and user controls, but the problem is that I do not know how to add the click event to controls added dynamically to the program.
Thanks to those who will answer, even if you will not be helpful :)
If you mean you want to make OS using VB.Net, I should tell you that is impossible in VB.Net, If you mean you want to make something emulate the OS as Launcher, You can use this codes to get all opened process and other codes to get that's thumbnails
Dim pro() = Process.GetProcesses()
For Each pr As Process In pro
'Your codes goes here
Next
Then you can add processes name with that's thumbnail in database and Refresh it using Background Worker, Then Display it in List View Docked at the bottom, that will emulate the Windows 10 Task bar.
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.
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.
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.