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?

View 5 Replies


ADVERTISEMENT

VS 2008 - SendMessage - 2 Applications - Possible For App2 To Get The HWND Of App1

May 9, 2011

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?

View 5 Replies

2 Forms Sharing The Same Value (Dim Name As String="App1")

Sep 11, 2009

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:

Textbox1.Text = Name

View 6 Replies

VS 2010 Save Whats In Text Box To File?

Sep 30, 2010

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..

View 1 Replies

VS 2005 System.Net.WebClient Whats The Best Way To Get Text File From Unix?

Dec 12, 2009

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?

View 4 Replies

C# - Whats The Point Of Tuple (Of T)

Sep 30, 2011

Possible Duplicate: What's the purpose of the Tuple(T1)/Singleton in .net?

Trying to mimic a Tuple as implemented in .Net 4 (For .Net 3) I just realized there is a Tuple(Of T)? This was quite a surprize!

Tuple<string> result = new Tuple<string>("Data");

Instead of this

return "Data";

Isn't the whole point of a tuple that its a container for "loosely related data that isnt cohesive enough to make another class"?

View 2 Replies

VS 2008 Whats The Better For Next Loop?

Mar 25, 2010

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?

View 14 Replies

Restrict Whats Pasted Into A Textbox?

Dec 28, 2010

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].....

View 6 Replies

Whats Requirement Of Hardware For Sql Server

Jun 13, 2011

whats the requirement of hardware for sql server

View 1 Replies

Whats The Difference Between (As) And (=) In Object Declaration

Jun 2, 2011

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?

View 1 Replies

Can't Figure Out Whats Wrong With This Two Basic Codes?

Oct 12, 2010

No errors are given in either first or second code besides theinputbox whats wrong here ?

1:)
Dim readings(-1) As integer
2:)

[code].....

View 2 Replies

Make A Combobox Display Whats In The Sql Database?

Jun 9, 2011

I'm doing a project involving VB.Net 2008 and SQL.

I'm trying to make a combobox display whats in the sql database that is connected on the left hand side.

View 5 Replies

Send Whats In Textbox1 When They Push Enter?

Apr 20, 2009

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?

View 6 Replies

C# - Whats The Page Life Cycle In Ajax Call In Asp.net

Mar 28, 2010

whats the page life cycle in Ajax call in Asp.net?

View 2 Replies

Constructor - Whats The Best Way To Initialize Shared Members In A Class In VB.Net?

Dec 8, 2010

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!

View 2 Replies

Forms :: Check Whats The Highest Rev Number In A Folder

Dec 3, 2009

i'm trying to check whats the highest rev number in a folder (file names are 123456_rev01.*, 123456_rev02.*).

here is my code

For j = 1 To File.Exists("c: est123456" & "*" & j & ".*") = False
MsgBox("looking at rev" & j)
j = j + 1

[Code].....

View 4 Replies

Log On Parameters Error 20536 - Common But Whats The Solution?

Jan 3, 2006

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)

[Code]...

View 2 Replies

Whats The Event Handler Name For Holding Click A Button

Dec 16, 2009

whats the event handler name for holding click a button.

View 6 Replies

Interface And Graphics/whats The Difference Between Drawline And Draw Path

Oct 13, 2008

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?

View 9 Replies

Whats The Bare Minimal Need To Connect To A Irc Server Then Join The Channel

Aug 4, 2010

Whats the bare minimal you need to connect to a irc server then join the channel? vb6 use to use winsock whats vb.net equilivent?

View 2 Replies

IDE :: Whats The Tool Name Of Solution Explorer - Error List And Properties Window

May 9, 2009

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.

View 7 Replies

VS 2010 Auto-select The Same Item From A Second Listbox To Whats Selected In Listbox1

Sep 10, 2010

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:

[Code]...

View 2 Replies

VB 2008 Create A Program That Intercepts The Traffic Going Into And Out Of The Game Including Whats Writen In The Chatbox?

Aug 30, 2010

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?

View 1 Replies

VS 2010 Get Whats Inside The <title>My Data</title> Tags

Dec 19, 2010

Im am trying to get whats inside the <title>My Data</title> tags, however the results i pull back are not whats in the title tags..

Dim myMatch As Match = System.Text.RegularExpressions.Regex.Match(My_Text, "<(?<title>w*)>(?<text>.*)</k<title>>")
If myMatch.Success Then

[Code]....

View 3 Replies

VS 2008 - .txt File - Write The File Path So That Someone Else Can Download My Program And File And Read The File

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

Create Package And Deployment (setup File Or Install File) File In VB 2010 Project?

Jan 8, 2011

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?

View 4 Replies

Read Binary File And In This File Found The String And Replace It With Other One And Save The File Afterwords?

Jan 11, 2011

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.

View 3 Replies

C# - Upload File Via FTP - Server Returned Error (550) File Is Unavailable, Cannot Find File?

Oct 31, 2009

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.

View 2 Replies

Create Log File To Track Progress And Populate Controls Via Text File Or XML File?

May 22, 2009

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:

Phase1 = True
Phase2 = True
Phase3 = False
Phase4 = False

[code]....

View 5 Replies

File I/O And Registry :: Binary File Primer - Read The Nth Record Without Reading The Whole File?

May 4, 2009

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?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved