Dispose Of Images Everytime?
Jul 6, 2011
im loading images into 2 picturebox controls My app works as it should but i need to know when i should dispose of the images or does the garbage collector do it for me?on a user click the images change, i think that my app will become resource hungry and cause the app to bomb out at some point.So do i use Picturebox1.dispose() each time new images are loaded into the pictureboxs to free up the image from memory?
View 5 Replies
ADVERTISEMENT
Jun 25, 2012
I looked at the Dispose() method in System.Data.SqlClient.SqlTransaction (using a decompiler):
[Code]....
Why does everyone say in forums that it is Rolling back in the dispose? Where does it rollback?
View 1 Replies
Sep 8, 2010
How do I create a Javascript method in here that RELOADS the .aspx page, that I can call during one of those other existing methods.[code]...
View 2 Replies
Mar 10, 2011
I have a multiline label that im trying to add a line everytime I click the button. Its basically adding a new CD track name, CD minutes, and CD seconds to each new line for everytime the user inputs the given information:
1 Track_Name1 3 min. 13 sec.
2 Track_Name2 2 min. 34 sec.
3 Track_Name3 3 min. 01 sec.
.
.
.
But it keeps adding the "new" line in the position of the old one, so its only displaying on 1 line. I tried using a vbCrLf, but I might have it in the wrong spot?
heres what I got...
Private Sub btnAddCut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddCut.Click
cutCounter += 1
[Code]...
The cutCounter is obviously the track number, and it clears the current info for the new information.
View 5 Replies
Feb 16, 2011
in my vb.net windows application i have crystal reports implementedfor making it work properly after deploying on client side i have
the below code
End
With
[code].....
View 7 Replies
Dec 20, 2011
see the pic. and advise why this error is coming up and how to fix it.
View 1 Replies
Oct 14, 2009
I'm trying to make this game, where the button moves to a random location everytime your mouse gets near it.How would i do it?
View 3 Replies
Nov 21, 2010
change the program flow- so that it ignores certain precedures.Functionality: a form that displays all users. Optionally a user could check a check box and it would display his age. beside it Program Precedure: Now, I have to recheck everytime if it is checked. Is there a way to make the program just ignore a certain line of code(or something, that whatever it is I can't name). And I'm asking that the program should run without any evaluation whatsever?
View 7 Replies
Jun 18, 2012
Imports System.Data.SqlClient
Imports System
Imports System.Data
[Code].....
View 4 Replies
Apr 2, 2011
Is there a way to call a function everytime it throws an error? I could use try catch, but I need to do it with unexpected errors.
View 8 Replies
May 12, 2009
I have tried to test out the add delete and save function on a datagridview but the data that I added during testing would disappear after I made some changes to the code.
View 3 Replies
Aug 31, 2011
Possible Duplicate: Get year and month from SQL .I want to know that everytime I change the month the tracking number will start at 001 ..For example this is my tracking number:
CAB1108072 == CAB + 11 for year, 08 for month of august, 072 running number
Do I need to have another column in the table for the month in order to generate the tracking number everytime the month changes? The output should be like this.Example:
August 31, 2011 running number is 072 tomorrow is september 1st i need the tracking number start to 001, because september is another[code]....
View 1 Replies
Jan 27, 2011
How to fix the error in code..this code will always display msg box if user select ot nt slect the checkbox .. but i want if user doesn't select any of the checkbox or forgot to select checkbox then msg box will ppear other wise redirect to other page ..
[Code]....
View 4 Replies
Mar 7, 2012
How can I make a form with a new webbrowser control on it everytime?
View 2 Replies
Feb 17, 2012
I made a program that makes backups of a database when the user runs the application, etc. I never created something like this. I got all the code to make the backup, now the problem is to create it as a service.This is my form to the person choose the days and the hour to the process runs and install it as a service, and when it runs to be minimizated on the windows icons near clock and date and another option.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AddToStartup()
End Sub
Public Sub AddToStartup()
Dim Reg As Object
[code]....
I got this code to creates a short cut on the startup path to my project run Every time windows start's and do his job and close, but now I got a problem, how It should be to VB2010 ? And how it would make a run on the specific days / hour that persons choose ?
View 13 Replies
Jun 18, 2007
I have a program that everytime it is started download a file, read to a list, and add an entry to that list.That entry will be the useres ip address. I have gotten that far so far, but the ip address is sometimes the ip address of the lan like 192.168.1.100. That will nto work properly. I want the true ip address like 69.47.192.12
View 2 Replies
Feb 1, 2009
I have a Application that uses proxy IPs. I have a List of 100 ips, adn i want to take a random proxy and use that each and everytime whenever a button is clicked. I got the Proxy code and i modified it as below.
Imports System.IO
Public Class form1
' The structure we use for the information
' to be interpreted correctly by API.
[code]....
It successfully give random results but when i use webbrowser to confirm proxy ip, it shows only 1st or 2nd ip for every time. but i am getting random ips in listbox. When i click button it will get random ip and make browser to navigate to that ip and later it will add it to listbox.
View 9 Replies
Jul 26, 2010
I've got a global random type variable, let's call it rRandom.In my code, I generate a random number like below:
Dim iRandom As Integer = rRandom.Next(0, x)
9 out of 10 times iRandom is 0, the other time it was 1. The code isn't on a timer, it happens when I do something (say clicking a button), so the frequency of the code being called is about 2-3 seconds, I say this because I've had similar issues when generating random numbers really fast in a timer, or with a for loop IIRC.X is a variable that, presently, starts at 3, and will decrease until 0, in which it'll return back to 3. Obviously, if X is 0, iRandom will be 0, but it shouldn't be 0 all the time.I'm declaring the variable globally because I remember, again, having similar issues using local variables, idk whether I should be or not.
View 11 Replies
Feb 1, 2009
I'm updating a database every few minutes in my program but I get this error
Duplicate entry '127' for key 1
Everytime the db row Id reaches 127.
View 1 Replies
Jan 24, 2012
I want to build an app that closes itself everytime someone uses a screen capture software. Is that posible?I know many of those screen capture softwares are made on Visual Basic.And I wonder if is posible to detect a common component of those kind of capture applications.Because, I do not want to update my app every time a new screen capture software appears.
View 1 Replies
May 25, 2009
How can i get form2 to to load exactly center of form1 or a location within the form when i get form2 to show, no matter the location of form1.[code]...
View 10 Replies
Jul 9, 2010
I have Visual Studio 2008 and am using an installer project as part of the same solution that creates an installer for that exe.
[Code]...
View 8 Replies
May 18, 2011
Everytiem I try to access data, like herejust to view it, or edit the table schema or something, the data resets
View 6 Replies
Jan 12, 2010
I have the following code that connects to a server and expects data from it.Is it normal that working memory of my program increases every time I receive something from the server I connect to?The larger I make the network buffer, the more increase that is added to my working memory (in task manager)The data I receive is about 50 bytes. So I minimized that size of the buffer to 128.
View 1 Replies
May 24, 2012
In my form I have a text box (txtJobNo) , a Find button and a dtagridview to display the record for a unique JobNumber. Everything works fine to retrieve data, my problem is the display part in the datagrid view, it replaced the first record. I want to keep all records in place until I am done and then insert all those records in a new table. Please HELP. Please find my code below:
Imports System.Data.SqlClient
Imports System
Imports System.Data
Imports System.Collections
Imports System.Windows.Forms
[Code]...
View 6 Replies
Dec 16, 2008
I am having a problem with data in a combobox not being refreshed (using VB.net 2005 by the way). Right now I have a windows application with several forms. I have a Template form that contains the cboActivity combobox. This combobox is filled with data from a SQL database. I also have an Activity form. This form allows me to enter new activity information and save it to the database. If I load up the Template form, click the cboActivity combobox, the Fill event is triggered and my combobox is filled with the activity data from the database. But if I leave this form open, go to the Template, add new activity information, and save it...when I go back to the Activity form the combobox has not been update to contain the newly added data. Is there a way I can force the Fill event to fire every time I click the combobox?
View 3 Replies
May 25, 2009
i'm working on a desktop application in vb.net, using vs 2005 and mssql 2005. i want to refresh the pages everytime i insert a record, but i only succeeded by having a load button where user has to click everytime they add a record to view the new record. Is there any way(s) to auto refresh those pages?
View 3 Replies
Feb 26, 2012
I'm looking to write a function that is called everytime an exit button is pressed, just simply prompting the user to click yes or no is there a guide anywhere? is there a name for this kind of thing i can look at it more?
View 7 Replies
Aug 25, 2009
I have a form with a list that shows information from a database. I want the list the update in run time (or almost real time) every time something changes in the database. These are the three ways I can think of to accomplish this:Set up a timer on the client to check every few seconds: I know how to do this now, but it would involve making and closing a new connection to the database hundreds of times an hour, regardless of whether there was any change Build something sort of like a TCP/IP chat server, and every time a program updates the database it would also send a message to the TCP/IP server, which in turn would send a message to the client's form: I have no idea how to do this right now Create a web service that returns the date and time of when the last time the table was changed, and the client would compare that time to the last time the client updated: I could figure out how to build a web service, but I don't how to do this without making a connection to the database anyway The second option doesn't seem like it would be very reliable, and the first seems like it would consume more resources than necessary. Is there some way to tell the client every time there is a change in the database without making a connection every few seconds, or is it not that big of a deal to make that many connections to a database?
View 3 Replies
Aug 1, 2011
Im new to .Net and I wondering if you have to re-create a table server control on every postback. I'm having a problem when a user clicks a button which adds a row to the table. It works fine up to about 50 rows being added then the page is extremely slow. [code]
View 1 Replies