VS 2008 Open The Same Form Twice Or More?
Aug 15, 2009Is it possible to open the same form twice or more, or do I have to make several copies of the same form and open them individualy?
View 1 RepliesIs it possible to open the same form twice or more, or do I have to make several copies of the same form and open them individualy?
View 1 RepliesI 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.
View 3 RepliesIs there a way that I can open up a new form in Panel2 of my main form?
View 1 RepliesI have a textbox on my form. I want the form which name is typed into the textbox (if exists) to open.
vb.net
Dim frmName As String
Dim objFRM As New Form
Try
frmName = tmp(1)
[Code] .....
With that code I get this error:
"Cannot create ActiveX component"
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've tried
On Form1
form2.show
me.close
[code].....
How I Can open the same form in my application one time only can not open the form tow time in same time
View 5 RepliesI'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."
View 5 RepliesI 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.
View 2 RepliesIs it possible to open a folder inside a form?
View 11 RepliesHow 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.
View 10 RepliesI 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]......
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.
View 4 RepliesI 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
View 3 RepliesI 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.
[Code]...
I am working on an excel add-in. Currently I have a couple of forms that grabs info from excel, processes and pastes data back into excel.My problem occurs after my form closes (this leaves excel and one other MDI form still open). I need my excel sheet to come to the front for users to view and edit. My MDI form just stays on top even though I just edited the excel doc. I have tried everything I can think of using:
.visible
.activesheet etc.
Here is my latest:
[code]....
I'm try on Ultimate version and Express version. Reinstall many time from web install and offline install. What should I do ?
View 10 Repliesget a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
how can i make my webbrowser open up a new link in my same webbrowser or in another form? basically what im saying is i dont want it opening links in internet explorer.
View 3 RepliesIn my program, I have a timer with a inteval set to 1000ms. The timer is executing a MySQL-command, and right now I'm opening and closing the connection each time.
View 5 RepliesI have mdi application, on main form which is mdi container and has a tree view. i open the child form on afterselect even of treeview. the issue i'm facing that i open the form but focus remain on tree view until i click on the the form. my question is how i can give focus to form rather it stays on treeview. i tried frm.focus also activatemdichild(frm) no sucess.
View 21 RepliesWhen I open my child form,
frm_Analogs.ShowDialog()
It opens up the new form, but now I can not interact with my main form. It will not accept focus or allow me to interact with it.
Do I need to change the form type?
I have a MDI Parent form created with a MenuList, I also have the MDI child form created.ow do I go about using the MenuList to open the MDI child form within the parent form?
View 1 RepliesPrivate Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Para abrir un formulario independiente /Open independent form
[Code].....
I have a date selector on mdi parent that updates a property when date is changed. When I open a child form, it grabs the property just fine. However if I change the date again after the child is open the date does not change on the child unless I close and reopen the form as expected. What would be the best way to automatically update all open child forms when the date is changed on the parent at anytime? running a timer to parse the date property is impractical.
View 2 RepliesI have form A that has a datagrid on it, I want to be able to double click a row in form A and open form B to that record.
I know how to do that in VBA in Access 2007, but I am having trouble comprehending the procedure for VB 2010.