VS 2010 Saving Info From Forms/Dialogs?
Feb 23, 2012
I am trying to get my project to be able to save the data been input from a user. I have uploaded a screen shot of the dialog I am currently trying to use. You will see that I have got a combobox for member at the top. What I want is when the "new" button gets clicked then I can add the desired information then click "Ok buttton which will then save the information.
I want to be able to select members from the combobox after multiple have been recorded to be able to delete or edit them. I have got as far as "changing" the combobox to a textbox for input purposes. I have tried a few attempts to get it. I am getting "ConfigurationErrorsException was unhandled"
View 2 Replies
ADVERTISEMENT
Feb 1, 2010
I just downloaded the latest VB Express. It seems that thought the functions are available, there are many that are not as fully functioning as they should be, like PRINT dialogs and TIME/DATE dialogs, etc. Are some of these functions not fully developed in VB Express because they are only available to the licensed version?
View 4 Replies
Sep 25, 2009
I'm relatively new to visual basic and programming all together but I've managed to write a pretty useful program for my division. I am trying to add some more functionality however and that's why I'm here...because I am having trouble understanding how to make a windows dialog box pop up after the system time reaches a certain time.
View 9 Replies
Aug 30, 2011
I have an application that has a treeview in the MDI parent form, there is a button1 that adds a child node to the treeview and a mdichild form for that specific treeview child node. i would like to know if it is possible to save the trevview and the MDi child forms to a single txt file or csv file no matter how many mdi children and treeview child nodes are poduced.
View 11 Replies
Dec 22, 2009
I often use the process of displaying a dialog from a form, with the dialog user input then used to update the main form without any problem. In a new scenerio I launch the main application screen, I then show a login dialog ontop of the main app screen and can launch another dialog from the login if a new user is required. The plan is to update the login dialog (updating a combobox to reflect the addition of a new user) from the new user dialog.
See code below :-
'Update login forms user list as new user added successfully
frmRoomBookingLogin.cboLogin.DataSource = Nothing
frmRoomBookingLogin.txtPassword.Text = "Updating password from dialog"
MessageBox.Show("The password text is " & frmRoomBookingLogin.txtPassword.Text)
[code]....
The messagebox implies the dialog has been updated yet the text does not change. Is it possible to update the dialog when using a setup such as Form -> dialog -> dialog? I'm intrigued as why the dialog does not reflect changes. I have never refreshed/repainted the dialog as never required to in my other examples when updating a form from a dialog and never encountered a problem when using a two tier form setup.
View 2 Replies
Nov 17, 2011
I am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!
[code]...
View 1 Replies
Apr 11, 2010
I created a database in access 2007, linked it to my project in visual studio 2008 (vb). When I enter some data using the UI, it does not save it in the database, and it's gone as soon as I run the program again. I dragged the textboxes from the datasource panel, onto the UI..
this is the code that was automatically generated by vs for the save button:
[code]Private Sub StaffBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StaffBindingNavigatorSaveItem.Click
[Code].....
View 2 Replies
Jun 8, 2011
I have a database, and I am creating many forms that pull info from the db and write info to the db. I have a form that asks for a set of information. One of the box is a combobox that has a list of values. I have a button at the bottom
of the form that will allow the user to enter a new value to the values that populate the combobox if the user does not see the value they need. This will obviously populate a new form to create the new value.
I want the information on the first form to not be lost when the user hits the button to enter a new value for the combobox, yet I also want the combobox to display the new value.
Is there a way to save the information from the form and repopulate the form with the info the user entered? If I reload the form undoubtedly the form will repopulate the combobox and my new value will be there, since I have it reading and pulling info from the db on loading the form.
View 5 Replies
Dec 31, 2009
When the Users run my Program theres a tab in which you can type information,
I want them to beable to save it to an *.txt [Text File] and be able to Load it back
View 2 Replies
Jul 18, 2012
I have this form that i need to save on Mysql database but i'm stuck on what I should do.
This form needs to be done every 3 or 4 months. Every saved information stays saved in a row.
This form has alot of radiobuttons,textboxes and comboboxes that I save into mysql database But I also have a datagridview inside that form that needs to be saved as well , So here is where im stuck
I need to keep things simple and efficient. heres two example of what i can do but don't know what to use.
On MYSQL
Example 1:
-User1 Review 1-
Row1(review1) ----info--info---info---info---info----info---
Row2(review2) ----info--info---info---info---info----info---
Row3(review3) ----info--info---info---info---info----info---
[Code].....
View 1 Replies
Oct 25, 2010
I am currently working on saving some info and images. And i was looking at a game maker i used to use and it saved images as a "1rc" format. Is this custom? And can i save and load images as a "1rc" format?
View 2 Replies
Nov 17, 2009
I'm making a program where the user fills out info, then they click one button and the program takes a screenshot of the form, then they click another button and the screenshot gets saved. I'm having a couple problems with my code though. For one, I'm trying to make the screenshot go to an invisible picturebox to make saving easier, but I cant figure out how to make the image go to the picturebox. The other problem is that I want it to automatically save without showing the dialog, but so far, it won't save.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TakeShotOfScreens()
Picturebox1.image=allscreenscapture
CODE:...........................
View 4 Replies
Feb 12, 2012
Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:
[Code]...
View 7 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
May 20, 2011
I have two forms named are form1 and form2 (form1.h / form2.h)There are a textbox and a button on form1 and form2.When I clicked the button on form1, it must fill the textbox on form2 and when I clicked the button on form2, it must fill the textbox on form1 how can I do it,when I define #include "Form2.h" in form1.h AND #include "Form1.h" in form2.h, it gets me an error "error C2065: undeclared identifier.
View 3 Replies
Feb 19, 2011
I've made a listbox and imported multiple paths into it (writing the app in VB.NET 2.0).For example:
C:Path1file1.txt
C:Path2file2.txt
C:Path3file3.txt (varies depending on what the user selects)
I need to be able to grab each path seperately without having to get the user to select a particular item so i can do a batch of all the paths selected.
View 6 Replies
Jun 15, 2009
have the following code, it works sometimes but other times when a form is minimized/Restored Down it will freeze, doesn't produce an actual error in VS but just freezes and does nothing..
The code captures a current form, the forms title, process id, a pixel color etc
Public Class Form1
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
[Code]......
View 1 Replies
Jun 2, 2009
i am currently working on a form that looks like this: When i click on any textboxes under Plan Code, the plan form will pop up. When i click on a field in lbType, field will appear in my lbCode. When i click on a field lbCode, i want to be able to insert information into the textboxes.
The problem i have is that i can only get the form to work for the first row of textboxes. Because my code looks like -
Private Sub lbcode_selectchanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbCode.DoubleClick
addNewClientPolicy.TextBox1.Text = Me.lbCode.SelectedItem
[Code].....
View 3 Replies
Jun 13, 2011
Im looking to pass information from a number of textboxes in one form to a number of textboxes in another form using Visual Basic 2008.
View 2 Replies
Apr 27, 2010
It has the ability to recursively grab all .wmv and .mp3 files in any chosen folder, and add them to a playlist.When opening the playlist, my program adds all the songs to an array, then starts adding the songs to a listview, categorizing them by song, artist, album, and genre, using a dll to access the ID3v1 tags on the .mp3 file.It can successfully create playlists of thousands of songs at a somewhat okay speed, the problem is loading that into the categorized listview.It used around 75% of my friend's CPU while loading his 5k+ song playlist into the listview, and it never finished after loading it in for a couple minutes (it auto updates as it loads, because it is done in a new thread.) It never finished because his OS has a bug where, if the CPU usage is over 100% for more then a few mins, it BSOD's, but that's beside the point.
His CPU, by the way, is a quad core 2.33 GHZ processor.The listview loads thousands of songs by using a lot of CPU [low amount of RAM, less then 40MB 99% of the time], and it does it slowly. [code]I've already redone the sub once or twice to speed it up, and at the moment it's 2-3.,
View 1 Replies
Oct 15, 2010
After display list of data in combo box, next I would like to choose the data from the combo box and display all the information from the chosen data to texboxes , the data from combo box was link from my database (ms access).
View 3 Replies
Jan 6, 2011
I have an app that opens MS word. I then open Word's File open dialog and have it pointing to a specific directory to find a file for the user to open. What i cannot do is retrieve the file name the user selected to open. In a Window's fileopen dialog i can read the .fileopen property, however there doesn't seem to be a corresponding property to read in Word's dialog. Is this even possible? if so how do i do it?
View 4 Replies
Sep 14, 2010
I migrated an application from Vb6 to .NET and there are still a few bugs to fix.One of them is when I want to edit a record, the inputs should have been populated with the coresponding data from the database. Instead, only the drop-downs are populated, the text inputs are blank.
View 10 Replies
Jun 18, 2011
I can currently make a dialog1 pop up, then the user clicks "Yes" for dialog1, then dialog2 pops up, and if the user clicks "no" instead of "yes", dialog2 reappears again. I've got a headache now, but I will re-look over my code to see if there are logic errors.
I originally had dialog2 and form1 (the form1 was acting as dialog1). But The thing was that I do not how to give properties of a dialog to a form (i.e. not make the user be able to click other windows while this form is open) IF I could have code that says Me.bringtofront (which I have tried) didn't work though. If I apply this command to a form I get an error:
code: Form1.showdialog()
error: Please make form1 not visible. something a long those lines. But what I don't understand is form1 was never open.
What do the standard lines of code do?:
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
View 2 Replies
Apr 27, 2009
How can my VB.net application interact with windows modal dialog boxes?
For example when you click an HTML <input type=file> the dialog that opens is a windows form that isn't in my application, so how can I manipulate it?
View 4 Replies
Jun 6, 2012
i was working a program that has two forms. first form1 has a datagridview for viewing. with a button ADD and SAVE and disregardchanges.then when i click add another form2 with textboxes to input data. with buttons ADDTODATA, ADDANOTHER and CLOSE when i click ADDTODATA the data will add to datagridview in form 1 and when i click ADDANOTHER i also input another add ADD to datagridview to view.and when i get back to form 1 i have a choice if i will SAVE ot DISREGARDCHANGES. if i click save all data will save.
I used this code in adding data to table.
Dim dsNewRow As DataRow
dsNewRow = ds2.Tables("NewEmpChildren").NewRow()
dsNewRow.Item("dbIDNo") = txtIDNo.Text
[code]....
but nothing changes. it seems that my connection is close when i close form2. how can i make my connection still open when i close form two or any code that will substitute with my code. im a student and this is for my project.
View 3 Replies
Mar 11, 2012
I have been trying for a good while to save the forms icon(the one shown in the taskbar & such to a file...using such code as Me.Icon.Save(stream) & writing the stream to disk for example but every time I do there is a loss of color information it seems, maybe due to not using 32-bit color or lossless color or something...by what I see online it only uses 24-bit color or something.?Not sure what the problem is specifically but the point is there is a loss of color information.if I use Me.Icon.ToBitmap.Save() it works & saves right but it saves as type .png by default, regardless of the extension & not an actual icon file(.ico) which would be usable in the editor itself as an icon how do I convert it or save it correctly to begin with but without the loss of color information.This is basically a test project to see what I can do & what I still need to work on...and this is apparently one spot but I can't figure out the problem after searching bing, google and a few other search sites and reviewing the top 100 links of each to see if any contain any useful information on how to get this working....
View 9 Replies
Aug 21, 2005
There may be times when it would be useful for your code to be able to find and close modal dialogs displayed by an application. Perhaps you do not want to have to wait indefinitely for your user's input, or are using the COM Web browser control to automatically navigate Web page and would like to interactively close alert messages that pop up.Digging into our Interop toolbox, we find that this is a relatively simple process using a few core Win32API calls. Starting with the handle of the main window associated with the dialog (this is the form from which the messagebox was shown, whether from your code or from a Web page hosted in a Web browser control on the form), the GetWindow function can be used to retrieve a handle to a dialog windows (called a popup by the Windows API) being displayed (if any). The same function can then be used to enumerate the child windows of the dialog to find a button on the dialog to click in order to close it, and the SendMessage API function can be used to simulate that click, effectlvely closing the dialog window.
NOTE: At the top of whatever code file you put this code, be sure to include the following line (thanks poiygon for pointing this out):Code:Imports System.Runtime.InteropServices this allows for the shortcuts to the DllImport attributes.[code]This sample can be easily modified to close a dialog in another application (by using the MainWindowHandle of that application in the LookForAndCloseIEPopup function, instead of "Me.Handle") or to close any other type of modal dialog message being displayed to your user.
View 10 Replies
Jun 18, 2012
What the icon file filter is for load/save file dialogs. (I know the jpeg one is "JPEG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|All files (*.*)|*.*" But as far as I know you can't use these as icons without an icon editor).
View 1 Replies
Aug 12, 2011
I am unable to select a .ZIP folder with either the FolderBrowserDialog (FBD) or the OpenFileDialog (OFD). First off the FBD does not show any .ZIP folders when using it and the OFD does show .ZIP folders but I am not sure how to handle it's path. My question would be how can I handle the OFDs ".SelectedPath"??? I could easily obtain that info with the FBD "FolderBrowserDialog1.SelectedPath", but it does not allow the selection of .ZIP folders.. So now I am trying to do the same thing with the OFD but there isn't any code for obtaining the ".SelectedPath". Here's some code that shows what I am trying to do:
Private sourcePath As String
Private destPath As String
With OpenFileDialog1
[Code].....
View 4 Replies