I have started to use VB .net (Visual Studio 2008). I made a small program which starts with form1. This form1 automatically loads form2 and the form1 should close. But when it closes form2 closes as well.
Public Class Form1
Private Sub LC_Load (ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.Show()
Form2.Show()
Me.Close()
End Sub
End Class
I have a piece of code connecting to my database retrieving data. I was just testing the form on another computer and everytime it loads this specific form it closes the form.You can see the lines I had to comment out in order for the form to NOT close on load. Is there something possibly that needs to be installed on this other computer? running XP pro 32 bit.
Dim conn As OleDbConnection Dim comm As OleDbCommand Dim dr As OleDbDataReader Dim connectionString As String
if you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...
i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.
How can i put a scrolling a buttons?I want a put a multiply buttons vertically and when it the control exist beyond there size of the form will automatically show a scroll bars...Is there have a control that i have to use?
I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
Is it possible to do it invisibly? And once it is done, is it possible to close the invisible browser window too?
I started making a program, and I wanted to insert music to play. i just added music to the resources and used the code my.computer.audio.play(my.resources.name_of_the_file and so on. this worked perfectly until I added the 5th song. the resource file became to large and vb said it was corrupt. so I thought of a new way: making a music file opener. I made a code so a window opens where you can select your .wav files. that all worked, but I couldn't get it so the music would start automaticly or that it would actually play. this is the code I have so far:
vb.net Dim Open As New OpenFileDialog() Open.Filter = "Wav [*.wav*]|*.wav" Open.CheckFileExists = True
[Code]....
as you can see I put stars in the place where I have no idea what I have to do next. I e.g. tried my.computer and a path
make a quick app that will create 3 random letters, and search google with it which i can do. It is then ment to open the first link, and grab a sentence, or a group of words randomly.
I want my login screen to open over my editor! Example MS word how they have the tips screen over top and you press the close button if you don't want it there.
I have 4 tab pages on a form. and on each tab page a datagridview witch is connected to a specific table from a database located in Microsoft sql server 2005. I am wondering if it's posible to automatically open the tabpage2 when I click on a specific row in the tabpage1..
Im using visual basic 2010 and im building a program that will basically, you click on something in the list it will automatically open a .dat file pull the information that it needs, and then proceed to enter it into a box on the right. Well heres my issue i know how to do everything else but i cant seem to imitate this image, i need to know how i can make a list like this where the whole row is selectable, and the items/subitems are divided.
I've installed Mic Visual Studio 2008 few days ago. At first, Mic Visual Basic functions very well. But now, i can only open the program, but not the form. When I wants to Open>New Project, something pops out shows that "No Visual Basic Template can be found. See the Application Log in EventViewer for more details."
I am using Visual studio express 2008. I was working on a VB project for a few hours. Then I did something,(I think I just double clicked the form ) and I cannot open it in design mode. By Design mode I mean so you can see the controls, and ad buttons and stuff. The form still runs, if I run it. I see the form in the Solution explorer. From solution explorer, if I show all Files , then open FrmMain.Designer.vb, I can see my code. If I go to the project menu item and insert New Windows Form the new form works like I expect it too, I can see it. I need to be able to see my form.
How would i make it so when the user clicks a button. it will open a form with a some tabs but go to a specific tab like lets say i have 4 lets say i click the button and it goes to 2.
I want to know how you can open a form with specific information as if you are just calling a sub, kinda like how a message box is. Example:
MyForm.Show("The form title")I also want to know how I could apply this to forms that are being created from pre existing forms. Exaple:
vb Dim NewMyForm as New MyForm("Title Text")'Now I want to know for each of these next 2 lines of code, think of them as being different codes all together.NewMyForm.Show() ' orNewMyForm.MdiParent = Form1NewMyForm.Show
I made a buttom that saves info from RichTextBox to selected location now My problem is I want this file to be loaded when program loads so basicly folder will look like this
myprogram.exe CustomNamesFolder > Inside that folder there will be a file called names.txt how can I doit so that name.txt file loads in my ComboBox? so when user downloads the exe they can just go in to folder edit the .txt file and add names they want and when they start program it will load this list in to the ComboBox of my program
How can I achive this ? I looked at 6 pages of Loading Files in program but non told me what I wanted to know above ;s
I've got 2 levels of users, and I'd like to find a way to open a certain form for each user. I have tried something that I thought would work, but it just opens the same form for all users:
If "MenuType" = "Landscaper" Then Dim MainPanel As frmOwnerPanel MainPanel = New frmOwnerPanel
[code] Actually,I m doing notepad application,my problem is when ever click the form maximize button automatically form is resized .. same like that my richtextbox control also maximized. this is the my scenario.
I'm currently having some trouble getting an If statement to work. I want the statement to do its thing when it detects a form is not open. this might sound a bit confusing this is what i mean:
If Form2.open = false Then
blah blah blah blah blah blah blah blah blah
[CODE]...
Basically i dont know if im able to have an IF statement occur for when a form is not open and i dont know how to word it.
I have just started using VB 2008 Express i couldn't find a forum for this version. Im having trouble working out how to open my form in design view rather than code.
I created several Reports in Visual studio. and now I would like to create a form with buttons that open the reports. I have been searching for the code to open a report but cannot find anything useful.
Do I have to add al the Report projects to my ReportForm project or...?
Ok Guys what id like to do is Have a set of buttons across the top of my form and when the user clicks one id like the botom of the form to change to reflect that click. Kind of like the Office 2k7 ribbon but apply that to the whole for
I have a form which won't open properly under certain circumstances if a particular Button is set to visible = false. Under the same circumstances if the Button is set to visiblbe = true the form does open properly or if the line of code at a certain place where it is set to either visible = true or visible = false is commented out or not there then the form opens properly. If any one of the 5 phases on my form are turned on then the problem doesn't ever occur but if none of the phases are on then the problem does occur. I just found a fix for the situation but I still am not clear about what exactly is going on.