when I click the button the values I enter in the textboxsiteTag and TextboxSite Url are concatenated and written in the xml in the following format :<websiteItem>test | this is a website</websiteItem>
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...
Ok i saw this guy on youtube that made a achievement generator for his computer. For example, he goes to notepad and write something and saves it and gets the xbox 360 achievement pop up saying "Gotta write this down" and all that. Cud this have been coded thru VB.NET or something?
i have a notification j-query plugin .. i taste it in my page (working 100%)but when i want to use it in a event SqlDataSource1_Deleted with the response.write method it does not work
Protected Sub SqlDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Deleted Response.Write("<script type='text/javascript'> showNotification({message: 'This is a
I'm trying to write a sub that will write to a file. here is what i have:
Public Sub LogMe(ByVal MyType As String, ByVal MyMessage As String) Dim LogStream As FileStream 'should be at a level with enough scope for your logging
[Code]....
The problem is that this will just overwrite what is already there. I would like to have it append the EHomeLog.log every time it is called.
I converted a project from html into aspx Issue is, all the extension got changed. e.g. [URL] Changed to [URL] which give problem to SEO's. so now when i search for the web i get the link as [URL] and if i try to go in it, it give me the error of 404 file not found. I tried couple of methods for URL-ReWriting, it works fine at local side, but it fails at server side.
I have recently moved from XP Pro VS2008 to Win7 Ultimate VS2010 and all the sudden I am unable to debug code and I can't write log files (ex: c:mylog.txt) anymore. What am I missing here? I am using the same code that used to work.My biggest issue is my inablility to debug. I was writting a quick app to check a service on a remote machine and I wanted to debug this app to trap all the possible errors. So I pointed my code to check my service local. [code]
The following code causes an error but should work. Any ideas? The same code (originally in REALbasic) does work so the currentuser (also an admin on the pc) does have access to write to the registry.
How come only the last thing I send to a textbox is displayed? In the following example I would expect 'abcdefghi' to be displayed then, 1 second later, '123456789' should be displayed. But the only thing I see is 123456789.
Imports System.Threading Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = "abcdefghi" Thread.Sleep(1000) TextBox1.Text = "123456789" End Sub End Class
I have an app that gets installed into the Program Files folder (in its own folder of course). It has a small access mdb file to which I write some data. I'm able to read the data fine, but the app won't write to the db unless I run it as an administrator and always gives an error.
I have a folder called movies. In this folder is a collection of different movies each in their own folder with their own xml file called movie.xml.I would like to extract lets say the localtitle and aspectratio from each movie xml and send to Excel. What code would I need to achieve this?So far I have the attached code which reads only one file and it is directly from the xml outside of a folder.
I have a small project and at the moment have no idea how to write a .exe file, but I learn fast.I need to write a program to latch a bit on the parallel port LPT1 to control a relay board.
-Say on2.exe to turn on bit 2 on the LPT1 port. -Say on4.exe to turn on bit 4 on the LPT1 port. -Say off.exe to reset output pins on LPT1 port.
Help in this direction or code I can compile, and what software I need.Working in Windows XP SP2.
Write a Visual Basic Console Application. Inside the main procedure call a function procedure to input and return a value for a double variable called x, the width of a right triangle. Inside the main procedure call the same function procedure a second time to get a value for a double variable called y, the height of a right triangle. From the main procedure call a function procedure which calculates and returns a value for the "hypotenuse" equal to the square root of (x squared + y squared). You will have to pass the values of x and y to this function procedure. The procedure should calculate and return a double type value. The value that is returned by this function procedure should be equal to the square root of (x squared + y squared). Also from the main procedure call a sub procedure to display the values of x, y, and the hypotenuse.
This is what I have so far..
Option Strict On Option Explicit Off Module Module1
i have a question about how to write an if else statement. I was experimenting with vb 2008 and wrote a program that adds few numbers together and displays the result in textboxes. for example i input the following 4 number in 4 different textboxes
14 3 1 5
and the result i get is 15 8. I was trying to simulate adding times together(eg 14:03 + 1:05 = 15:05). Everything seems to be working fine but how can i place "0" if the output for the minutes is less that 10? eg instead of having 8 in the textbox i would like to have 08.
how to write classes. I have been searching and I understand classes a little. What I am confused on is how to write a class that contains more than 1 bit of information. How would I write a class that contains someone First Name, Last Name, Age, Address, City and State they live in. For instance all the information in the class can be retreived if I enter the person last name. And the class has to have more than 1 person infomation in it.
i have 4 pieces of code i need for one bit to run then when webbrowser1 document completed like wepage load i want to run anotehr peice of code. then when the webbrowser loads again run more cun then when the browser loads again run some more code how can i do this is there like a wait untill function?
In code behind i would like to write something equivalent to sql "IN". Like "WHERE id IN ('1','2','3')..." But I would like to do this for a variable in VB. Like "If string IN ('1','2','3') Then..."
I have been assigned to write a asp.net website that allows a user to enter a title of a book in a textbox, or a ISBN of a book in a separate textbox. A database is then supposed to be queried to find the book and the book as well as its price, author etc.. are to be output on a new page. I am at a complete loss as to how to write a query, where do I even go in Visual Studio 2008 to write it? I have the database itself stored in the website resource file.