Get App1.exe And App1.xml) Whats The Xml File For?
Oct 12, 2011
a bit of a newbie question this but when you build your app a XML file is also generated (ie program called App1, you get App1.exe and App1.xml) whats the xml file for? and do you need to send this xml file to whoever uses the program App1?
Let's say I have 2 applications, app1 and app2. If app1 were to use SendMessage to set the text of a control in app2, is it possible for app2 to get the HWND of app1?
I want 2 forms the main form which is form1.vb and the second form which is form2.vb to share the same value:
Dim Name As String="App1" so i can use it by simple doing that: [Form1.vb] Public Class Form1
[Code].....
Or it could be better if i didnt have to add a reference to the main form the string Name should be already declared in the second form so i could use just:
I have a RichText area, and wanted to create a button, that will take whats in the RichText area, and come up with the prompt for the user to save somewhere on the machine..
I need to parse a Unix text file so, I am using System.Net.WebClient to ftp into a Unix server then using the .DownloadFile() method to get the text file, but its coming in with the Unix end line ""; so is there a way to convert that to windows format while doing the DownloadFile method? I do re-read it after and fix it, I am just looking for a better way.
Or is there an alternate such as instead of a DownloadFile, and the two other steps above can I just read it into an array right off the Unix server?? If so then what method would I use?
I have a question, i have worked in several languages in my life (including several versions of basic) but i wonder whether in .NET using a variable or equation in a loop is a lot slower than not using one? Take the following identical loops
Dim test(999) As Integer For count As Integer = 0 to 999 test(count) = count Next
[Code]...
Now the 2nd case is good because it is easier to adjust the code should the array size need to change yet my background tells me the 1st case is the one in terms of performance, test.Length - 1 is calculated each time the loop runs. a loop of the 2nd kind for example has a massive effect on java as well as VBscript or javascript.So heres the question, would test.Length - 1 be calculated each time the loop ran, or just the first time?
Private Sub Recipient_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Recipient.KeyPress If Char.IsLetter(e.KeyChar) Then[code].....
if I created a new object like this Dim sqlconn As New SqlClient.SqlConnection(cs) and Dim sqlconn = New SqlClient.SqlConnection(cs) Whats the difference?
Im trying finish my Chat room and I just need to know how to make it send when they push enter so they dont have to click the button.How would I make it send Whats in textbox1 when they push enter?
I was looking on the interweb to see if there were any good examples on how to initialize shared members within a class while still initializing instance variables. I did find an expression that might fit to the answer:
[code]...
How do I initialize both instance and shared members without re-initializing the shared members every time an object is created from a class? Thanks!
I have found lots of posts on the web citing this problem but none of them have solutions, please could someone shed some light on this and help me find a solution otherwise my applicvation will lose a lot of the functionality I have planned?
I have produced a program in VB5 and I have designed a report in crystalreports (4.6). I want to click a button on a form in the program and viewthe report in a view window not in the CR4.6 editor.
I am using the following code to try to call the report however when ittries to start I get a 20536 - Incorrect log on procedures.Additional information:I'm running Win XPI have crystal report control 4.6 selected in the project components menuI have put a CR control on the formI have crystal report control 4.6 selected in the references menu If fixed will this open the report in the viewer window rather than the fullCR editor? (that's what I want)
Is there any way to have 2d graphics that gets made by user through manual dimensions input be bound to a text box?
Is there any way to take position 1000,600 and make that zero? Can we make graphics by inputting only the next co-ordinate and have the pc automatically draw a line from last point?
Also, whats the difference between drawline and draw path? How can I get the shape to remain on screen when I toggle between pages?
I am developing an application in which I need to use the tool jus like the Solution Explorer or Error List or Properties Window. Its like there have the common functionality of Floating,Dockable,Tabbed Document,Auto Hide and Hide. Can u let me know which tool in toolbox has this feature.
i have a list box which is populated with folder names via directoryinfo, and i have a second listbox which is also populated with folder names from a user selected folder. So listbox1 is populated like this:
I have a game which has a chatbox in it and was wondering if its possible to create a program that intercepts the traffic going into and out of the game including whats writen in the chatbox.I am the host of the game.Basicly I want the information to be displayed in something like a richtextbox?
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?
I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?
i need to read binary file and in this file found the string and replace it with other one and save the file afterwords. I found many example to read binary, but to find and replace is for me mistery.
I'm trying to upload a file via FTP from my local computer to an FTP server, which is also on my local computer at the moment. I've got this sub I'm calling:
Public Sub UploadFTPFile(ByVal ftpservername, ByVal fullfilepath, ByVal filename, ByVal username, ByVal password)Dim clsRequest As System.Net.FtpWebRequest = _ DirectCast(System.Net.WebRequest.Create("ftp://" & ftpservername & "/" & filename), System.Net.FtpWebRequest) clsRequest.Credentials = New System.Net.NetworkCredential(username, password) clsRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
[Code]...
I'm running an FTP Server using Golder FTP Server, which is freeware. I think it's setup correctly because connecting to the FTP Server using the exact same string as above using Windows Explorer works great.
I am trying to create a log file which I am going to use to populate some controls (DataGridView or Treeview). I am trying to figure out if should use text files or XML files to do so. Effectively the log will highlight multiple phases in a client-side app. The log will be written to at various phases when the project is running. The user will always have the options move on to the next phase or save progress and exit the project. As such, I want the log file to highlight how far the user has progressed throught the various phases AND I want the log to highlight varous information from each phase. Whenever the user starts the project, they will be given the option to load existing log files. So the project will have to read these log files and append them where necessary as the user progresses.
I am not sure what the best way to do this is and below is a rudimentary approach using text files. As you can see, the top of the file would have a summary of all the phases and whether or not the user completed each phase. Next each phase would have a data section highlighting what data was stored along the way. I have used a ":" to denote each section. Then within each section I would obviously need to use a delimeter for all my data. So if Phase1 = True, then I would load all the pertinent data from "Phase1:" into the desired control. Can anyone provide an efficient way of doing this and provide some insight as to whether I should use XML instead. The phases my change during development and I am not sure yet which controls I will be using. Does XML provide more flexibility.
In summary I am looking to create, read/write and append log files and populate controls with the data in varous sections of the log file. Example:
I need to write data to a file, preferably in binary format, but I am unaccustomed with the concept. Where's the easiest place to get the basics? I could come here with a specific need, but I'm at the point right now where I am more willing to work within the confines of keeping it simple.
Here's what I know: 1. how to open a new file 2. how to specify the record length 3. how to close the file
Some specific questions:
Does the record length have to be constant throughout the file?
Can I read the nth record without reading the whole file?