Way To Be Able To Use Tab Control On Main Form And Transfer All 3 Other Forms
Feb 8, 2011
I am looking for a way to be able to use the tab control on my main form and transfer all 3 other forms onto that main form that has the tab control. Problem being is that some functions are named the same in each of the septate forms i want to bring into just one for the tab control.Is there a way to separate the code for each form ON the main form of the tab control so i don't have to rename/recode each of the 3 forms i want to place on the main form of the tab control? [code]so when i put both form1 and form2 code on the main form where the tab control is, its going to tell me that i have a duplicate function name.
View 2 Replies
ADVERTISEMENT
Sep 3, 2009
How to control other form from a main form? For example :
I want to change background color in Form2 after a button in Form1 is clicked.
View 3 Replies
Apr 7, 2011
What I have is a user control that has two RichTextBoxes. In the user control, there is RichTextBox1's TextChanged event, I want it to set RichTextBox2's Text to the same as RichTextBox1's Text, I'm currently using: RichTextBox2.Text = RichTextBox1.Text. The user control is on the main form, when I run the application and type I get this error: StackOverflowExecption was unhandled. [Code]
View 4 Replies
Jan 5, 2011
The code is listed below which hopefully illustrates what I'm trying to do:[code]....
View 12 Replies
Mar 15, 2010
I've got a Panel on a main Form containing a PictureBox control on Top of a TableLayout control. Both the child controls have their docking properties set to Top. The Picture control has sizemode set to Zoom.
What I'm finding is that the picture doesn't size properly when I start the app. There is a border at the top and bottom in the PictureBox control. It's only when I resize the overall form that it's correct.
So at the moment I've got this ugly bit of startup code, just to fix the problem Me.WindowState = FormWindowState.Normal Me.WindowState = FormWindowState.Maximized
What am I missing?
View 2 Replies
Apr 29, 2011
[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.
View 1 Replies
Jun 7, 2009
In the main form the user can choose to download information from a device.Since this request takes time, when "download information" is pressed I open new form in a separate thread: Private Sub RunDownload()
[Code]...
View 3 Replies
Apr 20, 2011
When 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?
View 4 Replies
Apr 7, 2010
I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.
[CODE]:......................
So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)
View 6 Replies
May 1, 2011
How can I transfer data from a web form to a user web control ? does the diffrence in the programming language affect ?
View 1 Replies
Dec 15, 2011
i wanted to transfer control to a different form when one form is minimized..,how do i achieve this?
View 4 Replies
Mar 17, 2011
I've created a windows form application in vb 2010. I've got all my forms complete and now want to add a Login screen. One the login screen, after the username/password is entered and OK is pressed, I try to open the a connection string. Obviously if the connection fails, the user has entered the incorrect credentials. If the credentials are ok, True is returned and I then open up the Main form that shows the correct items for the logged in user.
[Code]...
View 5 Replies
Nov 20, 2009
I need to get a subtotal from multiple forms and add them together on the main form. I can add two forms together but not the third.
View 1 Replies
Jun 22, 2010
I was a vb6 user, done a few projects only with forums Now i am moving to vb.net(vb2010) and i have some trouble.Lets say we have a form(form1), a module(mod1) and a textbox on the form1.
i want to start a Sub (DoWork) in the module but in a new thread.
Dim Thread1 As System.Threading.Thread
Thread1 = New Threading.Thread(AddressOf mod1.DoWork)
Thread1.Start()
The DoWork sub does some stuff and when it's finished i want to change the text of a textbox1 in the main form and start another sub (DoWork2) on the main form under the main thread not the one DoWork is running under.
Plese do not refer me to another post that mighe give me a part answer, try to explain to me what i have to do and why.
View 3 Replies
May 25, 2009
I am using the following code in the 'Application.Designer.vb' to set one of the two forms as the the mainform for my splash screen.The global string array gSetupStr(0,1) only produces a correct result when any Msgbox is inserted before the 'If' statement.However,I do not want the Msgbox during a splash screen, but do want to control the mainform. [code]
View 1 Replies
May 23, 2010
I wanted to let the users to select their desired wallpapers dynamically in the window main form. Is it possible? Funtional spec:
1. Let the users to select their desired wallpapers from any directory.
2. Save the wallpaper in the database.
3. Load the wallpaper in the main form after login sucessful.
View 1 Replies
Sep 24, 2010
I have a splash screen, the default from Visual studio. It loads up, is shown for a few seconds, then, when it disappears, the main form is loaded. Now here is the problem: the main form appears in the back, behind the windows explorer window I load the application from.
The weird thing is that this only happens on some computers, particularly Windows XP machines.I tried a lot of things like BringToFront() or TopMost = true in the on Load event of the form but nothing seems to change this.
View 3 Replies
Mar 17, 2009
Am devloping an application with multiple forms, which reside on top of a main form. i.e the main application window. The 'child' forms do not need to be linked in any way as they do not pass information to the parent form, as all the parent form does is act as main window.Now I would like to know what is the correct way for the 'main window' form acting as a container for the other forms? So that all the smaller secondary forms stay focused on top of the main application form, that when the main window is minimized, so these forms should do also etc..
I have read other posts and they mention, leaving all the forms standard i.e. IsMdiContainer = False and then using form.showDialog() to call the secondary forms. This did not work for me as what happens is that as soon as I give focus to the main app form, the secondary form disappears underneath.I tired making the main app form IsMdiContainer = True and when it loads calling:
frmMemberForm.MdiParent = Me
Now this works, because I can click off the form and minimize the app etc and the frmMemberForm doesn't disappear. However if i close the MemberForm and reopen it, it looses this property and once again when it looses focus, it will disappear.
View 16 Replies
Nov 25, 2010
I have a main form and a user control form. The user control form is on the main form. How can I send data from user control label1 to main form label 1?
View 3 Replies
Oct 21, 2010
What I'd like to do is in my application move a control like a groupbox or frame with content on it from e.g the main form to a tabpage on that same main form using code.
I can change the position of the control using it's location, but I haven't got a clue on how to move it from the main form to a tabpage, or from 1 tabpage to another.
-Is this at all possible and if so, how can it be achieved?
View 2 Replies
Jun 10, 2010
I build my project and i got some problems. First i want to print barcode for books(toolstripmenu item). but i cant. here's the code that i found:
[code..]
second problem is printing again. i want to print my MS ACCESS .mdb from child datagridview's records.
third one i want to save and load(with dialogs) my database from main form to child forms' datagridview.and the last one is help provider. i prepare my own .htm help file, when press F1 it opens. but i dont know how to call provider to toolstripmenuitem and help provider keep my computer's path so when i call provider another computer, the programme cant find the path.
View 10 Replies
Aug 18, 2009
I have a windows application with a main form, on which a user control is added dynamically when a device connects trough USB.
On a user control, there is a thread wich is getting data from the device trough USB and when it is finished, I want to change a progressbar that is located on the main windows form where user control reside.
This is the code that is I call on the user control thread to change the progress bar value:
Frm_Main.UpdateProgressBar(CInt((AllBytesReceived / MaxBytesInFlash) * 100))
and this is a code that is called on the main form:
Private Delegate Sub UpdateProgressBarDelegate(ByVal value As Integer)
[Code]....
View 8 Replies
Apr 23, 2009
I need to quickly demonstrate a project and decided to create a user control that is connected to an Access database through pure simple data connections (create the dataset and drag it on the control.)When I build the project and add the usercontrol to panel control on the main form, no data is shown in the datagrid.When I add the data components directly on the main form, the data is displayed properly. why I can't get my databound user control to display the data on my main form?
View 2 Replies
Dec 22, 2011
modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?
View 2 Replies
Jun 4, 2010
Dim frm As Form
For Each frm In Forms
Set frm = Nothing
Next frm
The above code is what I used in VB6 to close all forms associated with my programs before my program closed. I have been searching for information on how to make sure all forms are closed when closing a VB2008 program.
I have seen info on using the Project Property Shutdown mode When startup form closes and I currently have this set.
Is this all that is really necessary? Will the garbage disposal close everything else to free up RAM?
Also, if I have several forms open and want to close all from the main form without closing each one individually, what is the best approach? Is there a collection like in VB6, go through the collection, compare it to the name of the main form and close it if it is not the main form?
View 4 Replies
Mar 31, 2009
I have a windows forms application with several 'child' forms. (It's not MDI, and I don't want it to be).Normally everything runs fine, but on occasion windows gets into a state where all of the 'child' forms on the application are invisible when they should be on top of the main application. The oddest part is if I move another application's window over my application (i.e. explorer or notepad) the child form becomes visible within the boundaries of the other application. It's like windows is drawing my main form over top of the rest of the forms in my application without regard the z order, or topmost flag, or anything. If I cover the main form with a notepad window, etc. It draws my 'child' forms properly. Rebooting the computer and restarting the application temporarily solves the problem.
View 3 Replies
Aug 30, 2009
my web browser is my main form and it has a number of sub forms , how can i set it that when i close the main form my sub forms dont close ?
At the moment when i close the main form all the forms close
View 2 Replies
Sep 13, 2010
What is the vb.net equivalent to accomplishing this?
static void Main()
{
frmCalcView view = new frmCalcView();
[code].....
View 5 Replies
Feb 22, 2011
I'm new to programming so go easy on me.. I am wondering if this is possible to, send info that the user typed into a textbox to another forms textbox. for example you type into a textbox on form 1, you click a button to take you to form two and it shows what you typed in as a rich textbox, a label or whatever works, and have it be able to change each time you type something in to the first textbox.
View 1 Replies
Sep 28, 2010
I'm currently working on a simple Jeopardy game in visual basic. My selection choices are made from picking the proper radio buttons. Questions is; how do I connect the two forms (form_1 & form_2) so that is will show the proper points after answering a question? I'm using lbl or txtbox for bank total after each question.
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles Button1.Click
'contestestant "Max" choice
If RadioButton1.Checked Then
[Code] .....
View 2 Replies