Copy Current Program In VB Without Messing Up The Original?
Jul 11, 2009
I have a current program that I have developed using visual basic and it does everything I want, however, I would like to "experiment" with the code and add other things to it but I don't want to mess up the code by working on my original project. How do I copy the project so I have it safe and have one I can "play" with.
View 4 Replies
ADVERTISEMENT
Nov 21, 2011
I want to add a browse button to my program to browse for a pdf file and then it should upload the file to my programs working directory. For example if my program is installed in c:/program files/myprogram i want it to upload the file to a sub directory called contracts but it should detect the program directory automatic.
View 1 Replies
Apr 3, 2010
I want to capture the original value and the new value from a cell in the DataGridView control. When leaving the row, I tried:
dgDataEntry.EndEdit()
Dim row As DataRow
row = tbl2.Rows(e.RowIndex)
Dim m_orig, m_curr As Decimal
m_orig = row.Item("amount", DataRowVersion.Original)
m_curr = row.Item("amount", DataRowVersion.Current)
And the values were the same. How can I capture the different values?
View 5 Replies
Nov 28, 2010
I made a copy of a VB application project, to make a copy of it for testing.
But when I debug the test copy while the orginal is still running (debugging from Visual Studio), focus changes to the original's main form, and the test copy does not run.
If I try to single step the test copy, same thing, focus changes to original, and test copy does not even step.
View 1 Replies
May 24, 2012
I have a WPF form that takes a list of objects that have locations and sizes and plots them on the canvas. I'm currently trying to implement an undo button that will throw out all the changes that have been made to the positions of the objects and revert back to the original collection that was retrieved when the form loaded.
As it stands now I go out to the database on the load of the form and get all the objects that will need to be displayed then assign the list that is returned to two seperate collections. The problem that comes up is that the two collections are actually pointers to the original collection and whenever one is changed the changes are reflected in the second collection.
Is it possible to copy a list of objects so that changes made to one collection won't affect the secondary collection?
So far I've tried simply using the assignment operator, passing the source collection into a function byval and scrolling through each element of the list manually adding it to the second collection and using linq to get all the objects from the original list and pushing the results to a separate temporary list and assigning the second collection to the temporary list.
I feel like I'm overcomplicating the issue but almost all the places I've come across while googling say that this behavior is by design, which I understand but it seems like this would be a fairly common idea.
View 3 Replies
Dec 8, 2009
I am using Visual Studio Professional 2008. I am writing a program in Visual Basic 2008 that copies the Used Range from one worksheet to another worksheet, I am able to achieve this by the following code segment:
[Code]...
View 5 Replies
Jan 6, 2011
I have a vb6 program which shells and runs a Vb 2005 program, I would like to be able from that VB 2005 program run a function back in the original VB6 program which called it. Callback?
View 1 Replies
Jun 15, 2009
Is there anyway you can send information back to the original creator of the program? Here is a quick example- I made a little program that gives you general information about your computer, when you click a button it sets the text box to specific information. One of the text boxes gives you the Version of your OS. I would like to know if there is a way to send the information in that text box back to me when someone clicks it and they are connected to the internet. FYI I would tell the person who clicks it before so that I am not stealing information, plus what is there to steal from a simple program I made.
View 2 Replies
Jan 31, 2011
I am making program that will show Original system install date and calculate how old is system...How can I code that in VB 2010?
View 3 Replies
Jun 3, 2010
Been taking a programming class in school for the last year and we haven't really done anything with a progress bar so I was curious to see what I can do with it. I found some basic code to see how it worked and I get it.[code]However, instead of having a fixed time, I want the maximum to represent the time it takes for something to be done whether it be loading a new form, searching for something, etc. I don't know if that made sense, but basically I want the progress bar to react accordingly to the time it takes to do something.For example, in this little test project I just want the progress bar to represent the time it takes to load form2. I believe you'd have to change the maximum. However, I don't know how to get Form2's load time to be able to put it in the progress bar's maximum.
View 3 Replies
Jan 13, 2011
I am working on implementing localization in a winforms app and I went the route of setting the Localization property on the form to True and setting the default language to english,spanish, german, dutch and a few more. When I click on English the form displays correctly, when I click on Spanish or French it makes the panels inside the form small and the controls within it small. It doesn't allow me to resize anything or more the panel
View 1 Replies
Jun 8, 2010
I am using vb.net 2003 and an Access database connected via Jet 4.0 OleDb. I have identified the location of my database using a relative path with [code]My program was working fine and I began making some cosmetic changes.I thought it would be a nice touch to add a PictureBox on the first form and allow the user to select the image that he would like to see when running the program.I added a menu item to "change the picture" and on a form added an OpenFile Dialog. I added code to capture the location of the selected file and used it to identify the image to be shown.I included a table in my database to store the file name and path which is loaded when the program starts.This all worked fine. I could change from picture to picture and the image would be updated each time in the picture box and in the database. I could access the database and perform all of the functions of the program.
That is as long as the image files that I selected were located in program startup directory. If I selected an image with the openfile dialog which was located else where then I could no longer contect to the database. I receive an "unhandled exceptions error". Below is the openfle code:[code]Can anyone help me with the proper way to get set up the open file dialog so that the results do not conflict with my database connection, or re-establish the connection?[code]
View 2 Replies
Mar 5, 2010
I'm having a problem when saving a text file. I'm trying to save a text file from a rich text box but these tag things are messing it up like this:
[Code]...
View 3 Replies
Jul 9, 2009
My website look and feel is not 100% the same in Internet Explorer 8 as it use to be with Internet Explorer 7. My site is created with VS 2005 and ASP.NET 2.0.
How can I fix this?Is there a way to fix this?
Edit:For those who want to see my website, it is Located Here - Some borders are diff. and the Email/Username text box in the Login Control in WAY at the top and actual Login Control width is less now.
Edit:Those who view my site from now on will not see what I am talking about from now on since I made some changes to the site and fixed the problems.
View 10 Replies
May 16, 2012
Very simply, I'm positioning a small ListBox over a DataGridView column when the user right-clicks and selects "Show Distinct Values". This works fine until the vertical scrollbar of the DataGridView is clicked. Once that's done the listbox pops up all the way over to the left edge of the DataGridView. As confirmation of the problem I created a small app to test with.
[Code]...
View 2 Replies
Mar 4, 2011
I have an application similar to calculator, with button from 0 to 9, Enter and Clear. I made it possible to use the buttons by clicking on them and also by using numpad, like shown below: Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
[Code]...
View 5 Replies
Nov 4, 2009
Can I get an english explanation of .*? I kinda know what it does, but a breakdown would be nice on the logic behind it. Also, in the same manner, I'm after the specification for special characters, especially " but if it's doable, for as many special characters, or all of em as long as " is included.
EDIT: Might as well include the entire context, because I'll prolly be asking this in another thread in 15 minutes.
[Code]...
View 3 Replies
Jan 9, 2010
I need to manipulate an external edit control from with in my program. (IE: Get new text whenver it's being enter into edit control and parse the infomation in my program).So, is it possible to create an edit control in my program that base on the handle of an existing application using win32 api or something
View 4 Replies
Jun 19, 2011
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
View 4 Replies
Dec 20, 2009
Im writing a program that does some general network stuff
i need to set a dns server for the program/current sub "not for the current host pc"
something along the lines of
system.net.dns.setdnsserver = (myspecifiedip)
View 3 Replies
Apr 6, 2010
I have to say, the search box in this forum is questionable. searched for this:My.Application.Info.Versionand got lots and lots of hits and not one post actually had those words.....Anyway, I want an About msgbox to popup with the publish version displayed.In my project properties, under the Publish tab, Visual Studio has the following:
Major: 5
Minor: 0
Build: 0
[code]....
View 6 Replies
Apr 21, 2010
I had a for a program that would grab the current url and display it in like a label or something on my VB project. I have no idea how I'd go about doing this. The thing I'd like to do is simple, but I just don't understand how...For example:
1) Click a command button on my VB Project
2) Say I'm currently on [URL] it grabs this url and places it on my VB project.
View 1 Replies
Aug 29, 2010
I want a user information including name, last name, phone number and ..
View 2 Replies
May 29, 2009
How would i make my program update the changes made to the current document. And if it hasnt been saved yet make it show my save as dialog?
View 1 Replies
Aug 3, 2009
How to get userID of current user logged in from server using asp.net vb?
View 2 Replies
May 9, 2010
i need to make a program that simply takes current date and the input date (users birth date) from the user both as i integer then if the users is 18 or more then the back color turns green otherwise turns red.
Code:
Public Class Form1
Dim int_ThisDay, int_BirthDay, int_ThisMonth, int_BirthMonth, int_ThisYear, int_BirthYear, int_DifYear, int_DifMonth, int_DifDay As Integer
[Code]....
View 3 Replies
Sep 29, 2010
I'm looking for a little assistance in creating a network printer. I will have all the information required to create it, but I'm not sure where to start looking. I just need to create a printer in the current session of the user running my program.
View 2 Replies
Aug 23, 2009
I have some items in a listbox and a try catch. I need it where if the program catches an error with the current listbox item to move on to the next one.
View 18 Replies
Jun 5, 2012
I am trying to create a program in Visual Basic which will measure the performance of the CPU with every core, one at a time. In this program, I decided to place a couple of text boxes that display the processor speed and the actual processor speed. I need to get the actual processor speed to update and I have tried doing this already using a timer set to tick every second. However, when I load the program it runs really slowly and prevents me form doing anything within the program, including trying to close it down, and all it does is updates the text box every second. I have looked in task manager to find out how much CPU the program is using and it shows that my program is using 0 - 3% CPU.
Here is the code currently use
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Dim mSearcher As New ManagementObjectSearcher("SELECT * FROM Win32_Processor")
[Code]....
View 2 Replies
Mar 12, 2010
I'm Using Visual basic 2005 and lets say for example I have a New folder in " C:UsersakgiraudDocuments" the file name is " new Folder "
and I want to copy this folder with the items inside it and paste it on the desktop using a botton. and on the same program I want to let the user choose the file and restore it to the same place , its like a Backup & restore thing but make sure that the user will change from pc to another.
View 5 Replies