Jump to content
Xtreme .Net Talk

Lanc1988

Avatar/Signature
  • Posts

    519
  • Joined

  • Last visited

Lanc1988's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Works perfectly.. thanks for everyones help!
  2. Heres the zipped up project if that helps you see what I mean: (also.. if the blank lines that I write in between are the problem, i can change that to anything.. it could be a space, a dash "-" or whatever) WindowsApplication2.zip
  3. using visual studio 2008 also.. it works in that it doesnt cause any errors when the program is running, but it doesnt work because the while loop never happens (tested it by putting a label on the form and at the beginning of the while loop i put text in the label but the text never gets put into the label)
  4. I tried the code you posted but it is giving me problems with this line: if string.IsNullOrEmpty(line) exit while It says statement must end with a matching End If and also End of Statement Expected. So I tried to replace it with the following which gets rid of the error but doesnt load any of the information for Drops: if string.IsNullOrEmpty(line) then exit while Edit: just did a small test and it is never entering the While loop but im not sure what condition needs to be there instead of while(line = srBestiary.ReadLine)
  5. In many parts of my program I save things to a file (usually .dat) in the following format: Setting1 1 Setting2 0 Setting3 0 The spacing in between is actually a vbTab so when I read it in I use the split function to get the data I need. Anyway my problem is that now I'm having a file saved in the following format: Name Rat Level 2 Drops Coins: 10-20 Bones Raw meat Once again the spacing is a vbTab and i write a blank line in between each. The problem is that for the Drops title there are 3 lines that need to be loaded but when I load the data into my program it only loads the Coins: 10-20 and leaves off the Bones and Raw meat. Here is the code I am using: Dim FileName As String FileName = "Data.dat" Dim srBestiary As System.IO.StreamReader = New System.IO.StreamReader(FileName) Dim line, vals() As String Do line = srBestiary.ReadLine If line Is Nothing Then Exit Do vals = line.Split(vbTab) If vals(0) = "Name" Then Me.txtName.Text = vals(1) ElseIf vals(0) = "Level" Then Me.txtLevel.Text = vals(1) ElseIf vals(0) = "Drops" Then Me.txtDrops.Text = vals(1) End If Loop srBestiary.Close() srBestiary = Nothing If you need to see the code im using to save the data to the file just let me know. Thanks! Edit: Forgot to say this, but in the file that im loading from it will always have the format with Name, Level, and Drops.. the only things that change are what is after them.
  6. Nevermind now.. I just did alot of uninstalling and testing then reinstalling and testing etc and it turns out that 2.8mb file is what they need to install if they dont have .net 3.5
  7. Currently when users launch my .msi installer to install my application if they dont have .net 3.5 it will direct them to http://go.microsoft.com/fwlink/?LinkId=9832 I would rather change that link to something else so it goes directly to the download which I know how to do, but Im not sure which fire to refer them to... When you go to the above link it has a page for .Net 3.5 SP1 which is: http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en But this file is only 2.3mb... is this what I need to refer them to?
  8. Thanks for the info. I just noticed something that seems kinda strange for my updater application. I ran the .exe for it on my computer that doesnt have .net 1.0 or 1.1 installed (only 2.0, 3.0, and 3.5) and it runs and works perfectly.. how is this possible when it was created in vb.net 2003 with .net 1.1?
  9. How can I set the web browser to navigate to a certain page when there was an error? (example.. when there is no internet connection) Im using visual studio 2008 if that matters or not. Thanks. Edit: Also, when I was using the AxWebBrowser control (in vb.net 2003) I had to include the ieframe.dll which is a pretty big file. Do I need to include that in my installation still with this new Web Browser control?
  10. I am trying to upgrade a small application that simply downloads a file from my website (an update basically) and then when its finished it launches the install for the update. The program works fine in vb.net 2003 with .NET framework 1.1 and when I upgrade to 2.0 it appears there are no problems but when I run the program it doesnt work at all and it doesnt give me any clues where the problems are. I've attached the program. Someone else wrote this code for me a couple years ago so I can only kinda follow along with it. Hopefully the fix is something simple. This program is a small part of a larger project that I have already converted to 2.0 and it works fine but this is keeping me from releasing the whole project. Thanks. Downloader.zip
  11. sorry, but its not a homework assignment.. i was just making it because I wanted to and I was able to figure it out, not the most efficient way im sure but I got it to work.
  12. I am trying to design a program where you enter in some text on my form and click a button called Start. When you click start it needs to then put what is in the textbox on my form into a textbox in a webpage that i have open. The way I thought of doing this is when i click on start i have a delay where i move the cursor to the target textbox on the webpage and then store the coordinates of the cursor and somehow simulate a mouse click at that position and then paste whats on my form into that textbox and send the enter key. But this seems to be harder than i thought.. so far all i have been able to get are the mouse coordinates of the target box on the webpage. any help on how to do this or an easier way to accomplish this would be really great, thanks
  13. Currently I am using the microsoft web browser control (axwebbrowser) to display maps, but I don't like how there are margins on the top and left of white space. I thought maybe I could use a picture box but it doesnt seem to have the setting for scrollbars. Is there a way to enable scrollbars for the picture box control or is there a better way to do what I would like to do?
  14. Currently I have a pretty large project that I made in vb.net 2003 and before I convert it to vs2008 I have a couple questions. First of all, when I convert it there are some errors about my AxWebBrowser control which I guess has been replaced by the WebBrowser control. When I used the AxWebBrowser control I have to include the ieframe.dll in my setup project, in the vs2008 converted project, do I still need to include that .dll or is it no longer necessary? Another question, will my users have any issues when they 'upgrade' to the new version of my program by using the .msi file to install it? Currently I have it set to detect previous version and remove previous version, so will converting it cause any issues with this?
  15. kinda found what i needed.. tried to delete the post but it wont let me.. anyway since i cant delete it, what are the differences between these: NavigateComplete2 DocumentComplete
×
×
  • Create New...