Write All Actions's Latencies To A Single File From All Objects?
Feb 3, 2011
I have a really modular application in which modules interact with each other for many, many tasks. Lately I have been making some changes to fix some bugs and some processes are now taking longer (not making the application unusable though).I now want to log the times it takes to perform each action, also taking into account interactions with other objects, to identify where is it taking long. This logging code would most likely be temporary. So, the question is: How can I write all these actions's latencies (or timeStarted and TimeEnded perhaps) to a single file from all the objects?
View 2 Replies
ADVERTISEMENT
May 13, 2012
I am trying to save multiple type of objects to a single file, objects are a custom class that I am able to serializable and another object is a word document that is not being able to serialize via binary. Is there a way to save multiple objects to one file using vb, also would it be possible to save files like how a docx is saved, that is a .zip renamed as docx but get access to inner objects.
View 1 Replies
May 13, 2010
I am trying to write the inputs retrieved from a form into a single csv file. The code that I currently have creates a new csv file everyttime I click the upload button. Is there anyway that I can alter my code to save all the data into a single csv file? [code]....
View 3 Replies
Jun 3, 2010
ive got a custom archive type, which i have all the associations set to me application for, when the users double clicks these files i want them to auto import, but im a little stuck on my next step.[code]the tomove string would need to point at the file which was double clicked/ran, and the textbox1.text replaced with the file name of the file that was ran.[code]And the code runs, but i need to replace the "test" (previously it was textbox1.text) withthe name of the file which was ran, is that possible?
View 4 Replies
Mar 15, 2010
I have a gridview that is bound to a datasource on a Windows Form (VB.NET). The grid displays a list of "certifications", and each "certification" can be associated with many languages. So in the grid, I'd like to display "languages" as a column, and display a comma delimited list of the language names for each "certification".
In the "certification" class, one of the properties is a list of "language" objects, and each "language" has an ID (guid), name (string), and value (integer).
So in the datasource, I have the list of "languages", but I can't figure out how to display them in a column on the grid. The gridview won't let me add the language list property as a column.
So is the ONLY way to add a new property on the "certification" class, which returns a string that contains the comma delimited list, and show THAT on the grid? Or is there a way to display that list of "languages"?
View 1 Replies
Mar 11, 2010
I am very new to VB.NET coding..My manager assigned me to write a Single Program that uses OOP concepts like Abstraction,Encapsulation,Inheritence and Polymorphism.As there is a time limit.
View 1 Replies
Mar 30, 2010
I have Excel file (.xls) with objects (graph, combox...) and I must open this dokument write some data and save copy.
I was tried some .dll's and everything gone fine only I lost objects.
View 5 Replies
Jul 15, 2009
I am looking to write a small application that will mount an image using imagex and show a progress bar as to how much of the image has been mounted.
View 2 Replies
Jan 28, 2009
I want to do the following in Vb.NET 2005 windows form
1. saving Ms-office documents in Access 97 using VB.NET
2. Opening the saved document in Access 97 using VB.NET and show to user after user clicking a link correspoding to the record
3. After user modified the document/xls file, it should once again save into Access 97 database.[URL]..This document explains how to open and save a document from BLOG fields.But without physically saving the document into local hard disk, is it possible to open in OLE control? and after modifing saving back to Access 97 database.
View 3 Replies
Nov 28, 2009
I am struggling to write code for single-answer multiple choice tests (i.e. Choices A, B, C, D).
View 11 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
Feb 26, 2010
I am wanting to expand my programming knowledge base and the only way I know to do that is to actually do stuff. I am wanting to write an application that performs common systems tasks from a single location. Just simple things like deleting text files, maybe displaying drive space, etc. In order to even begin to do this I have to understand more about the my.computer class in VB. Does anyone have some good info that breaks this class (and possibly related classes) down hierarchically? MSDN offers a lot of info but doesn't really give a lot in the way of explaining how certain classes are interrelated.
View 5 Replies
Dec 27, 2011
I have a trouble making this code work. When executed, it just creates a correct (with the correct name) file with the extension .txt but the the actual text inside .
Imports System.IO
Public Class Form1
Public mytext As String
[code]...
The strange thing is that while debugging, h, t string variables have the correct values, but somehow mystream.write(t) doesnt work (it doesent write anything to my h.txt text file...
View 5 Replies
Feb 3, 2010
Basically, I am trying to write a LINQ to Objects statement where the relationship is a grandparent, parent, child relationship. (You could also call it a Master Detail relationship.)
Dim coverages As New List(Of Coverage)
Dim coverage As Coverage
For Each rl In oClaimsPolicy.RiskLocations
[code].....
View 1 Replies
Feb 27, 2012
Reading a .txt file in VB.net. My file path is C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt.
This is my line of Dim LoanOptionsFile As String = "C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt"
I can read the file when I run the program, but how do I write the file path so that someone else can download my program and file and read the file on their system?
View 3 Replies
Sep 6, 2011
Limited to using v2.0 of .Net framework (we use VB.net) due to environmental constraints on our servers.I've got an ASP.net webpage which pulls data from a webservice that performs checks on user accounts in active directory. Operators can check multiple accounts at one time using the web interface. The webservice returns a list(of AccountCheck) objects which themselves contain single properties like username, email address, and List(of AccountError) objects which contain multiple properties.[code]What I want to do is using some kind of repeater, create multiple panels or divs which contain labels showing the username, email etc, and a gridview which has the accounterror list bound to it to show all the errors. The users could be checking 2, 5, 7 accounts at once, and is dynamic.
View 2 Replies
May 18, 2011
I want to perform two hashing operations concurrently on a single file, without reading the file twice. Is there some way to share the FileStream between two synchronized hashing threads? For example:
Dim Stream As New IO.FileStream("...", IO.FileMode.Open)
Dim HashA, HashB As Byte()
Dim A = New System.Threading.Thread(Sub()
[code]....
Maybe some way of caching a stream? Trouble is, I don't want the entire file in memory at once (it could be many gigabytes in size) and I don't want the file read more than once, due to speed issues. I want the file cached only sufficiently to ensure that both threads can work.For example, suppose at some point in time, thread A had read 100k of the file, but thread B had only read 20k of the file. The portion of the file between 20k and 100k should be cached; but then progressively forgotten as thread B catches up. Then again, if thread B is too slow, we might still end up with hundreds of megabytes being cached.Maybe thread A should be made to wait while thread B catches up. Maybe the ReadByte() function of the stream should block for a while if one of the threads is too far behind?
View 13 Replies
Sep 14, 2010
I want to write a program to write in an xml file in this format:
<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />
[Code]....
View 2 Replies
Feb 17, 2011
Writing codes for a school project I have to do. Basically I need to make a program that when you click a picture box it replaces the picture with an image in a second picture box on the same spot on the form. I am not sure how to do this. Right now I have the two pic boxes side by side and when I click one the other disappears as it should, but I can't get it to reappear so one can click between the two alternately.
View 7 Replies
Mar 12, 2012
I'd like to do a kind of overload of the actions in the controller.
Is it possible? 'Cause I havn't found any info about it. And when I tryed, I got this error.
The current request for action 'Create' on controller type 'InterviewController' is >ambiguous between the following action methods:
System.Web.Mvc.ViewResult Create() on type
[Code]....
I've tryed few things to get what I wanted. The last one was to copy what was done in the "Edit" action, but for an empty rank. (so I created an empty rank in my DB). I don't think it was a good idea (imagine someone wants to update the DB where idOpportunite = 5...)
View 1 Replies
Oct 4, 2009
I am making a file viewer, and I would like to have the option to open each folder in a new window, but how would I go about start my program and making it open in the correct directory? This is the function I have to open a directory into my viewer: openDir("path", "*"), All I need is to start the program so that this will activate after it's start up.. Is this possible to do?
View 3 Replies
Feb 24, 2012
I have just published an app i was making. However whilst testing i noticed when i close the app using the Exit button which contains the code below
[Code]...
View 14 Replies
Jan 29, 2010
I want in my VB application launching my Browser (or displaying in a WebBroser Control) a Website. But my php website has an authentification page, so i wish my vb code write the login, the password, and press enter (or click onto an image that run an Ajax function).
View 3 Replies
Dec 29, 2010
I have this pretty simple application, it uses a webService to transfer data to my servers DataBase. Now it is very important for me to keep this application as one single file, and not having some XML files needed for it to work, but this is the case. I think the XML file holds the information to this webService, so without it the application crashes. Is there a way to get the application to work without this XML file, or a way to put the XML inside the exe archive?
View 1 Replies
Jul 5, 2009
So I need to write out an object to a text file as well as read in objects from text files.How do I accomplish this? This is the code i've used to read and write just simple lines of text. Is there a small modification to this or just a different function i use to read in an entire object?
Code:
Dim path As String
path = "Security.txt"
[code].....
View 4 Replies
Oct 4, 2008
I have about 4000 objects of a class, each object with 20 members/variables, integers and strings, total about 80000.
I would like to save these to a file, and read them back into objects when the program starts up.
How would I do this in order to keep track of each variable? I was planning to have each line in the file representing the variables of 1 object. Hence 4000 lines. But basically I'm just looking for the easiest way to save and retrieve this data. Should I first convert the objects to an array of strings?
View 10 Replies
Nov 24, 2010
say I have a Button1 subroutine
[code]...
I have a lot of such buttons in my main form. They all do the same thing like this. get the text and pass to some other routine. If i have 20 buttons, then i will have 20 such subroutines. Is there a better (or standard way) to do this without creating that many subroutines?
View 2 Replies
Oct 5, 2011
I am developing an application in ASP.NET MVC structure.I was wondering, I am trying to create a site that only has one page, it has a navigation bar on the left (Which is a list of user input), and then the main content in the middle.My question is, can I make the navigation bar (The user input list) static, and make the main content change, based on the user input, with an asynchronous AJAX postback? I would have multiple controllers which would set different results to the main content, based on the user input. How would I go around doing so, partial views and calling actions with asyncpostback's?
View 1 Replies
Mar 30, 2009
I'm trying to use WebBrowser to remotely log into a site and perform a basic action on the site.
The first step is logging in to the site. Here's the form code for the login:
View 3 Replies
Jun 27, 2010
I want to do the following:
msgbox("Welome to this app!")
*5 secs later*
label1.text="1"
*5 secs later*
textbox1.text="yay"
[Code]...
View 3 Replies