I am new to programming. Is there a way to eliminate the border around a combo box? I'm looking for a list of property commands for various different properties for controls.
Thanks.
I have a text box that automatically puts a bullet and space (- ) at the beginning of the next line when the user hits enter. It works fine, but now I discovered that if the user inputs many lines of data, then decides to add some data in the middle of all that data and the cursor is placed at...
I found the OnClosing event in the Overrides section of the form (I'm assuming that's right). Here's the code I put in it:
vb/
Protected Overrides Sub OnClosing(ByVal e As System.ComponentModel.CancelEventArgs)
If MsgBox("Are you sure you want to exit?", MsgBoxStyle.YesNo Or...
I am new to programming. Where can I program the X (close) button on a form? I just want to put in a dialog box asking if the user is really sure they want to exit the program.
Thanks for any help.
I am new to programming. The "Select All" hot key (CTRL + A) does not work in any of my text boxes. Do I need to program it to work in a text box? How should I do that?
Thanks for any help.
I am new to programming. I have a form with two columns of textboxes. I anchored the left column to top-left and the right column to top-right. When I maximize the form, it works; however, I want the two textboxes to expand horizontally and maintain the same distance from each other in the...
I am new to programming. I declared a variable and then multiplied the number in a textbox by another decimal number. My result shows in a label, but to 6 decimal places. I just want it to output to 2 decimal places and rounding appropriately.
Thanks for any help.
It seems like that should work, but it doesn't put the string from the text box in the "File Name" box of the SaveFileDialog box.
Any other ideas?
Should the line look like this?
RichTextBox1.SaveFile(SaveFileDialog1.FileName = TextBox3.Text, RichTextBoxStreamType.PlainText)
I want my SaveFileDialog to put the string from a text box as the name to save the file as. For example: the user enters "My File Name" in a text box. I want "My File Name" to show up in the SaveFileDialog Box as the file name to save as.
Here is my code for the button click:
vb/
Private Sub...
I am going to try a new route since I can't get the splash screen working with a Module and a Sub Main. Now I've put this code into the load event for a form and designated the form as the startup object. Now the FormSplash should start and maintain itself for 3 seconds, then close and open...
Based on the above 2 responses, if the Sub Main continues after Form1 which ends the program, how do I stop this from happening so I can use multiple forms? My program is 5 forms in series connected with a "Next" button.
Also, I will gladly use ShowDialog, but how can I get rid of the sizing...
Thanks RiverGuy! Yes, I got that working, but there is still a problem. The splash works fine now. However, if I use fm.Show(), then Form1 flickers and disappears. If I use fm.ShowDialog(), then Form1 loads, but when I click a "Next" button on Form1 to go to Form2, the program ends. I...
Here is my code for the Module:
vb/
Module Module1
Sub Main()
Dim splash As New FormSplash()
splash.Show()
End Sub
End Module
/vb
Here is my code for the splash screen form:
vb/
Private Sub FormSplash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.