A Single Button Should Be Used In All The Forms?
Mar 13, 2010
i need to use a single button for all forms in a vb.net project. The single button should be called in the forms to perform operations.
For eg., In a form i need to save, update the records.
When i call the button, save and update buttons should be appeared at runtime using the single button.
View 3 Replies
ADVERTISEMENT
Feb 1, 2009
I am new to VB.NET, Now i'm working with Events in VB.NET, I have two event methods, Mouse Click and Mouse Down for a single button in a form, I have displyed a message in each of these methods but only mouse down event is triggered. Why Mouse Click is not triggered? Similiarly I Did the same for Mouse Enter and Mouse Move for a particular button, in this case both the events are triggered.
View 2 Replies
Sep 16, 2010
My program has two forms which get data from the same data source. After binding controls to tables and fields on both forms, I noticed each form has it's own apparently duplicate DataSet. Is it standard practice for each form to have its own DataSet even though they use the same ConnectionString and connect to the same database at the same time?
View 1 Replies
Jan 8, 2010
I've got to the stage where I want to make changes to my application so that all of my forms appear to the user as a single window.
I have a main Form with a menu bar which opens up three separate forms. Only one forms is visible at any time.
One way to do this, that I can think of, is to place all the controls from each of the "auxiliary" forms on a panel contained in the main form and then show and hide the panels, when needed. I can envisage this being a big headache though.
Another way would be to give each form a menu bar and make it look like the main form so that the user would not know the difference (with a bit of luck).
I just wonder if there are better ways to do this. Maybe if I could incorporate one form into another form?
View 2 Replies
Mar 1, 2010
i wants to load many pages in same form which each of the pages contains different messages.example....if i press more in the page no1(form 1) it should load the page no2 at the same form(form 1)...
View 1 Replies
Mar 7, 2010
I've written an application with about 30 forms and am almost ready to publish, my biggest concern though is that i'm not sure if its a normal thing to do having all these forms and hiding, disposing and showing forms throughout the use of the application.I've toyed with the idea of converting to a MDI Child / Parent interface as well as having one form with lots of subcontainers that are hidden and then hiding / showing them as the navigational buttons are shown.Ive worked on this application for about 8 months now, but would be happy to rewrite the interface and appearance of it if i know that it is not generally an acceptable practice having forms flashing open and closed while navigating through the application.
View 3 Replies
Jan 16, 2011
Is it possible to display several other forms in a single WindowsForm (by using a table layout or something else) ?
View 4 Replies
Apr 4, 2011
I'm new to vb.net and I have what probably is a simple question, but one that I am stuck on. I'm trying to add a single item to a ca combo box at run time. For example, a user selects a category from the first drop down box at run time, say "Admin", I want to add a single item to the combo box below it: Not applicable.
cboTest.Items.Clear()
cboTest.Items.Add("Not Applicable")
View 1 Replies
May 15, 2012
Most of the apps I write have a base / home form and a few other forms (three of four typically) which pop up in response to controls clicked by the user. I'd like to be able to set some properties to be the same for all the forms in an app; particularly properties like BackColor and FormBorderStyle. Yes, I can manually set the individual properties for each form in the VB IDE, but I'd prefer to be able to have one line of code in the base / home form for each property along with one line for each dependent form which says something to the effect of "use the same property value as the base / home form has". Overall, my objective would be to have one single line of code in the app which, when changed, would apply the changed property to all the forms. For example, a single line which I can change to take the BackColor from Apple to Orange for all the forms ...
[Code]....
View 11 Replies
Mar 3, 2010
if i have mediaplayer1 in Form1 and mediaplayer2 in Form2 than how can i play and control a single video file in both mediaplayer1 and mediaplayer2 in vb.net
View 1 Replies
Feb 16, 2011
i am currently using this code to open and close my drive in VB. However i want to make a single button to open the drive if its close and to close it if its open.
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByVal buffer As String, ByVal bufferSize As Int32, ByVal hwndCallback As IntPtr) As Int32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lRet As Long lRet = mciSendString("set CDAudio door open", vbNullString, 0, 0)
End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)HandlesButton2.Click
Dim lRet As Long lRet = mciSendString("set CDAudio door closed", vbNullString, 0, 0)
View 10 Replies
May 11, 2010
i am using vb.net 2005, in windows application, i have controls like textbox, listbox, radiobutton in one form, all the controls are required to fill, how can i validate all controls in one buttonclick..
View 4 Replies
Mar 10, 2011
I am just starting to learn the visual basic language so i am trying to make a simple application where a user can put in it's first and last name or else the application exists.
I manage to do this fine untill i get to the point of ending one if statement and starting another in the same button..
(in the form i have button1, button2, label1, label2. Button2 is only a "quit" button)
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]....
What happens when i run this is that i can put in the first name but then when i click yes the application closes.
View 14 Replies
Jun 14, 2010
can we have a single global variable which can be manipulated by multiple forms
View 6 Replies
Feb 8, 2011
how to print the whole asp.net webpage on single button click event iusing VB ?
View 2 Replies
Jul 16, 2009
I have two buttons on a form , clock in and clock out, and i have two fields in an access database, fldCheckIn and fldCheckOut, when i click the check in button i want it to get the current time and set it to the field in the database
View 13 Replies
Nov 13, 2010
I have a Search form where the user can click a Button that opens up a rtb with every single word (12,800+) used in the King James Bible. Every word is Capitalized ("Thankful, Grateful", etc), so in my code, the user selects a word, then right-clicks and sends the word to the TextBoxSearch in lowercase. Now, if the RTBDisplay (where all search results go) is empty, then a msgbox pops up asking if the user would like to re-search the same word in Uppercase. If they click OK then the word in the TextBoxSearch (lets says: "thankful") is supposed to become "Thankful". But instead, the TextBoxSearch goes blank. I have tried many variations of code, and here is my latest (doesn't work):
If Me.RichTextBoxSearch.Text = "" Then
MsgBox("Would you like to search the same word but in Uppercase?", CType(1, MsgBoxStyle), "Re-Search?")
If CBool(MsgBoxResult.Ok) Then[code]....
View 6 Replies
Nov 22, 2010
How to validate two textboxes at single button click using vb.net ?[code]...
View 3 Replies
Aug 5, 2009
I am writing a VB program in VB 2008 express edition, and I need to make a simple web browser used by touch screen users. I have done making the simple web browser to browser the webpage, but when I open some links they are opened in the external IE rather than the VB web browser, how can I force all web page to be opened in the VB software?
View 2 Replies
Nov 11, 2011
I wanted to have multiple color for text in single label controller
e.g.
label1.Text = " $ 480.00 "
What I want is character $ in Red color and other digits or character after $ in color blue. $ 480.00 I cannot use separate labels for digits and $ due to limitation
View 1 Replies
Apr 16, 2009
I have been working on a project which is used by a company's sale team, to combine all the wanted input data in one place allowing the sales team to show customers, where switching to them could save them money.
Basically what i want is a program which can save single records, which can hold data added in other text boxes, or indeed take the data from the list view boxes which is the intended output. I want to be able to save that data, then be able to Open it up again at a later date, and even modify it.
enabled me to save the three ways to identify a single record, the index number, company name and the date it was added. However I now need a way to save the data entered in my other forms to these single records.
View 1 Replies
Apr 3, 2011
How to check all asp.net checkboxes on single asp.net button click event. If I have 45 checkboxes inside panel1 I want on button click event all the checkboxes will be checked and on another button click event all checkboxes will be unchecked... How to do it using jquery, javascript or vb.net ?
View 3 Replies
Nov 30, 2011
I have created a windows form with a crystal reports viewer, a combo box to select a report to view, and a button that I would like to (Print All Reports). The print button in the viewers toolbar will print the report currently being viewed. I want the button in my application to print all the reports without viewing them.
I have following code, but it throws an exception of type 'CrystalDecisions.Shared.CrystalReportsException' occurred in CrystalDecisions.CrystalReports.Engine.dllAdditional information: Load report failed.
[Code]...
View 1 Replies
Dec 6, 2011
how to write a program for a list box having 10 items in that just by a single click on one of the item it should be written on the button if a list is containing notepad than by clicking on the button it should open the notepad?
View 2 Replies
Mar 12, 2011
I have three textbox ... textbox1 and textbox2 and textbox3
I want when I choose from date in textbox1 say 1-May-2011 and to date in textbox2 say 30-May-2011 and in textbox I type 1,2,3,4,5
I want on button click ... event the values will be entererd in database from 1-May-2011 to 30-May2011 as : mentioned below :
DATABASE STRUCTURE
ID Date Items
1 1-May-2011 1,2,3,4,5
2 2-May-2011 1,2,3,4,5
3 3-May-2011 1,2,3,4,5
so on till 30_may-2011
Record will be inserted in database according to from date and to date choosen in textbox1 and textbox2 respectively ...
View 2 Replies
Jan 5, 2011
I am using this code to insert into a single table.How to use the code to insert the textbox text to multiple tables of same column on single button click event in VB.net?
Imports System.Data.SqlClient
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim con As New SqlConnection
[code]....
View 3 Replies
Mar 13, 2011
how to insert record into database on single button click from date to todate ? I have two textbox .... textbox1 and textbox2
textbox1 == choose from date
textbox2 == choose to date
if user select from date in textbox1 as 01-May-2011 and in textbox2 as 30-May-2011
[code]....
View 1 Replies
Jan 1, 2010
What control should i use if i want a button with default text on it and when i press on it, it give a drop down menu that i can select different commands. I tried a combobox which seems to be very close to what i want. i set the dropdownstyle to dropdownlist so it looks like a button. but i cant seem to set a default text on the box and i dont want this text to be in the item list. also when i set the dropdownwidth to a value larger than the combobox width, it will align left.
View 4 Replies
Jan 10, 2011
How can I populate a single DataGridView cell with input of a textbox after click event of a button?
View 6 Replies
Aug 15, 2011
In my application, the user clicks a single button and the program displays each network adapter description into a message box and then gets all the ip info for the workstation and places it into a text file and opens that text for reading. What I would really like for it to do would be to display all the network adapters into a single messagebox instead of messagebox for every adapter like it is currently doing. Here is the code I have on that button. Let me know if anyone needs more info or has any questions:
[Code]...
View 4 Replies