15,902,635 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shashank 1068 (Top 91 by date)
shashank 1068
24-May-13 3:10am
View
not folders i want to update only the DATE part
shashank 1068
24-May-13 2:54am
View
i want to replace a portion..
like i want to replace only the date part
shashank 1068
24-May-13 2:06am
View
i have this url http://www.sat.dundee.ac.uk/xrit/057.0E/MET/2012/12/30/600/2012_12_30_600_MET7-_1_S2_grid.jpeg and in this url 2012_12_30 this is the date i want to update this date to today's date
shashank 1068
24-May-13 2:05am
View
i have this url http://www.sat.dundee.ac.uk/xrit/057.0E/MET/2012/12/30/600/2012_12_30_600_MET7-_1_S2_grid.jpeg and in this url 2012_12_30 this is the date i want to update this date to today's date
shashank 1068
24-May-13 2:00am
View
Deleted
i have this url
http://www.sat.dundee.ac.uk/xrit/057.0E/MET/2012/12/30/600/2012_12_30_600_MET7-_1_S2_grid.jpeg
and in this url 2012_12_30 this is the date
i want to update this date to today's date
shashank 1068
20-May-13 14:48pm
View
heyy sry to dstrb u.. but do you know how to use progress bar with percentage in webclient..which display its speed and percentage??
shashank 1068
20-May-13 14:21pm
View
plz tell me how to use progress bar with percentage with speed in webclient
shashank 1068
20-May-13 14:20pm
View
ohkk
heyy sry to dstrb u again.. but do you know how to use progress bar with percentage in webclient..which display its speed and percentage??
shashank 1068
20-May-13 14:06pm
View
i am downloading files with webclient
shashank 1068
20-May-13 12:15pm
View
the ans. of ur 2nd que is it display all the URL which are currently downloading..when 1 URL is downloaded successfully it display 2nd URL
but i want it in textbox
shashank 1068
20-May-13 11:55am
View
as i have tried to display code in looping but it is showing onle frst and last URL which is stored in text file
shashank 1068
20-May-13 11:40am
View
yes!!
shashank 1068
20-May-13 11:27am
View
kkk
Dim webclient As New Net.WebClient()
Dim URL As String
Dim filename As String
Dim filereader As StreamReader
filereader = New StreamReader(OpenFileDialog1.FileName)
TextBox1.Text = filereader.ReadLine()
For i As Integer = 0 To 10
URL = filereader.ReadLine()
MsgBox(URL)
filename = "F:\shashank\" & i
webclient.DownloadFile(URL, filename)
Next
like i have this code for downloading.. but in this i want to display all the URL's in the textbox which are currently downloading
shashank 1068
20-May-13 2:52am
View
hi..sry to disturb u again but i need another help
do u know hoe to save file when checkbox is clicked??
actually in download manager i want to save the save with checkbox
so do u know how to save files with checkbox?
shashank 1068
20-May-13 2:46am
View
how do i save the save when the checkbox is checked?
i want to save the file before downloading files
shashank 1068
17-May-13 3:28am
View
ohkk thnx alot :)
shashank 1068
17-May-13 2:53am
View
ohkk thnx
n do u know how to give image name while downloading??
like the above code is for download the file..and when it download the images it gives the name like 0,1,2,3,4,5,6,7,8
i want to give image name as the last part of the URL
like if i have "http://www.monsoondata.org/wx/changfs.png"
so i want that when it download this file then the name of the file should be CHANGFS.PNG
do u know how to do this?
shashank 1068
16-May-13 12:21pm
View
but i mean i have to declare my usrname psswrd in coding??
shashank 1068
16-May-13 12:20pm
View
yup ohk ohk
shashank 1068
16-May-13 12:09pm
View
ohkk so for this i have to declare my username n psswrd?
shashank 1068
16-May-13 11:36am
View
but as you are saying when i open the URL it directly display the image..
i am sending you that one URL
http://www.monsoondata.org/wx/changfs.png
this is one of the URL which i am trying to download
shashank 1068
16-May-13 11:24am
View
do i really need to create username and password??
shashank 1068
16-May-13 10:49am
View
how should i do this??
shashank 1068
16-May-13 2:48am
View
it alo says expression expected
shashank 1068
16-May-13 2:47am
View
i am getting an error on >=0
shashank 1068
16-May-13 0:50am
View
sir do u know how to save file?? after doing this coding i also want to save the file..
like through this coding if user want to modify any existing data then he can save his new data..
can u please tell me how to save new data?
shashank 1068
15-May-13 14:25pm
View
mmmmm thnx alot i'll try dis
shashank 1068
15-May-13 14:23pm
View
hmmm ohk thnx fr the info. i'll try dis
shashank 1068
15-May-13 14:01pm
View
yes!!
shashank 1068
15-May-13 13:49pm
View
coz i want that each URL should be displayed in each textbox
shashank 1068
15-May-13 13:44pm
View
but i dont want to add any textbox
i want to display textbox according to text stored in file
suppose there are 20 URL so it should display 20 textbox
shashank 1068
15-May-13 13:37pm
View
u mean bout this code??
File.WriteAllLines(path, myTextBox.Lines)
shashank 1068
15-May-13 13:00pm
View
Dim path As String = "c:\temp\MyTest.txt"
Try
Dim sr As StreamReader = New StreamReader(path)
Dim line As String = ""
Do While sr.Peek() >= 0
line = sr.ReadLine()
Dim newTextBox As TextBox = New TextBox()
newTextBox.Text = line
Panel1.Controls.Add(newTextBox)
Loop
sr.Close()
Catch e As Exception
Console.WriteLine("The process failed: {0}", e.ToString())
End Try
End Sub
this is my code for displaying data in textbox
but if i want to modify the tex in textbox
so i want to save the data after writing new text in textbox
shashank 1068
15-May-13 12:31pm
View
act. i am new with vb.net so its little bit difficult fr me
shashank 1068
15-May-13 11:56am
View
after dis can i able to save the new file??
shashank 1068
15-May-13 11:27am
View
plz tell me what to do now??
shashank 1068
15-May-13 11:03am
View
i know how to work on TABLE LAYOUT PANEL
shashank 1068
15-May-13 10:47am
View
i have used table layout panel
i am able to read the file but i am not able to save them
shashank 1068
15-May-13 7:15am
View
saving part...
i don't know how to save because in this the textbox is not declared..
i am not having textbox id or name
so i am facing problem in saving part
shashank 1068
15-May-13 7:09am
View
actually i want that the textbox should b displayed according to the content present in the file..suppose a file is having 20 URL so it should display only 20 textbox... so for this i have added loop...
but now i want to save the file like if i change any content of textbox i want to replace the older file and overwrite the new file
shashank 1068
15-May-13 3:06am
View
what if i add TABLE LAYOUT PANEL instead of PANEL??
shashank 1068
14-May-13 6:59am
View
ohk i'll try dis
shashank 1068
14-May-13 6:50am
View
i want to display the text in different text boxes
shashank 1068
14-May-13 6:40am
View
ohkk thnx
shashank 1068
14-May-13 6:40am
View
i want to display all the line which are stored in text file
suppose a text file is having 15 URL so it should display all the 15 URL
and after that there is another file that contains 20 URL so it should display 20 URL
shashank 1068
14-May-13 6:27am
View
nope i am a student but my project is in vb.net
shashank 1068
14-May-13 6:25am
View
but i don't want to write anything as they are saying...
i want to read text line by line from text file using FOR loop
shashank 1068
14-May-13 6:22am
View
this solution is not helpful for me because the code used in console application and i am creating a win form
shashank 1068
7-May-13 1:23am
View
sry i am not getting your point :(
shashank 1068
6-May-13 1:48am
View
kkk thnx :)
shashank 1068
6-May-13 1:45am
View
so how to write and save a file under single button??
or should i write the WRITE code and SAVE code under single button???
shashank 1068
6-May-13 1:42am
View
i want to write and save a text file under single button
shashank 1068
1-May-13 0:14am
View
thnx :)
shashank 1068
30-Apr-13 15:13pm
View
hw???
i don't know abt vb.net can u plz tell me?
shashank 1068
30-Apr-13 14:42pm
View
kkk but do u have any idea abt this??
shashank 1068
30-Apr-13 14:33pm
View
is there any solution??coz i want to rename label again and again so is there any solution or any looping??
shashank 1068
30-Apr-13 14:21pm
View
yes
shashank 1068
30-Apr-13 14:17pm
View
sry to dstrb u again...but can u plz help me once again??
i want to add the following code in FOR loop..
'label
Dim label As New Label()
label.Location = New Point(13, 13)
label.Text = Name
Me.Controls.Add(label)
'Textbox
Dim textbox As New TextBox()
textbox.Location = New Point(60, 60)
textbox.Text = "URL"
Me.Controls.Add(textbox)
can u plz help me by puting the above code into for loop?
shashank 1068
30-Apr-13 14:01pm
View
thnx :)
shashank 1068
29-Apr-13 12:37pm
View
is there is any way to slv my prblm??
coz i don't know much about vb.net...can u tell me the solution
shashank 1068
25-Apr-13 11:27am
View
but right now can u plz help me in this.....
coz i don't have time so plz can u elp me
shashank 1068
24-Apr-13 11:18am
View
i dont know about the code..but i know the concept like we have to first make it in a for loop...
but i dont understand how to do this
shashank 1068
17-Apr-13 1:23am
View
i have tried this code:
Dim remoteUri As String = "http://www.contoso.com/library/homepage/images/"
Dim fileName As String = "ms-banner.gif", myStringWebResource As String = Nothing
' Create a new WebClient instance.
Dim myWebClient As New WebClient()
' Concatenate the domain with the Web resource filename.
myStringWebResource = remoteUri & fileName
Console.WriteLine("Downloading File ""{0}"" from ""{1}"" ......." & vbLf & vbLf, fileName, myStringWebResource)
' Download the Web resource and save it into the current filesystem folder.
myWebClient.DownloadFile(myStringWebResource, fileName)
Console.WriteLine("Successfully Downloaded File ""{0}"" from ""{1}""", fileName, myStringWebResource)
Console.WriteLine(vbLf & "Downloaded file saved in the following file system folder:" & vbLf & vbTab + Application.StartupPath)
shashank 1068
14-Apr-13 5:35am
View
thnx alot
shashank 1068
12-Apr-13 2:28am
View
it doesn't work :(
shashank 1068
11-Apr-13 5:07am
View
i want to update text data from text file without changing entire data
as a text file is already exists and i want to update the text data without changing entire data
and for this i don't have any code..
so please help me to update TEXT data
shashank 1068
11-Apr-13 2:32am
View
thnx fr d help :)
shashank 1068
11-Apr-13 0:34am
View
r u sure that the above code is in vb.net???
shashank 1068
10-Apr-13 13:49pm
View
yes in notepad
shashank 1068
10-Apr-13 13:34pm
View
sir can u do me a fvr...
can u plz send me all the codes which u have tried on ur machine...coz it does'nt work on my machine...so plz send me the codes through which i can able to download my files..pllzzzzzzzzzzzzz
shashank 1068
10-Apr-13 13:29pm
View
ohk sir :)
shashank 1068
10-Apr-13 13:20pm
View
ohkk i will try..but thnx fr ur spprt :)
shashank 1068
10-Apr-13 13:11pm
View
actually my project is based on windows form(vb.net).. and i want to create a form in which user enter the URL..anytype of URL...and when the user clicks on DOWNLOAD(Button) it will start downloading...but i want that user himself enter the URL
shashank 1068
10-Apr-13 12:57pm
View
plz tell me all the controls that you have used in your form...
shashank 1068
10-Apr-13 12:52pm
View
URL is:
http://1337x.org/torrent/514774/0/
shashank 1068
10-Apr-13 12:51pm
View
what m i supposed to do now??
n what controls should i use for my downloading purpose??
shashank 1068
10-Apr-13 12:49pm
View
yeah!!
shashank 1068
10-Apr-13 12:47pm
View
but when i debug this code it always give me an error which says
(Value cannot be null. Parameter name: address)
shashank 1068
10-Apr-13 12:35pm
View
Console.Write(ControlChars.Cr + "Please enter a Url(for example, http://www.msn.com): ")
Dim remoteUrl As String = Console.ReadLine()
' Create a new WebClient instance.
Dim myWebClient As New WebClient()
' Download the home page data.
Console.WriteLine(("Downloading " + remoteUrl))
' DownloadData() method takes a 'uriRemote.ToString()' and downloads the Web resource and saves it into a data buffer.
Dim myDatabuffer As Byte() = myWebClient.DownloadData(remoteUrl)
' Display the downloaded data.
Dim download As String = Encoding.ASCII.GetString(myDataBuffer)
Console.WriteLine(download)
Console.WriteLine("Download successful.")
shashank 1068
10-Apr-13 12:32pm
View
i am getting an error which says
Value cannot be null. Parameter name: address
shashank 1068
10-Apr-13 12:27pm
View
its not working :(
shashank 1068
10-Apr-13 11:43am
View
mam this code is not working :(
shashank 1068
10-Apr-13 9:24am
View
i want code in VB.NET and this code is not working :(
shashank 1068
10-Apr-13 2:48am
View
yup it is a textbox that i want to upddate
shashank 1068
10-Apr-13 2:47am
View
my code is:
Dim number As String
Dim theFile As String="D:\Backup.txt"
Dim Lines() As String=System.Io.file.read all lines("D:\Backup.txt")
Lines(number of lines you want to replace)="write what you want to replace")
System.Io.File.All Lines("D:\Backup.txt",Lines)
End Sub
and i am getting an error on
Lines(number of lines you want to replace)="write what you want to replace")
TAG= WinForms
shashank 1068
10-Apr-13 2:41am
View
okk, i will try..thanx alot :)
shashank 1068
10-Apr-13 2:36am
View
mam can u please explain me the last line of your code
shashank 1068
10-Apr-13 2:36am
View
thank u for your support but it doesn't work :(
shashank 1068
10-Apr-13 2:10am
View
but these links are all about reading files...but i want to delete the text in textbox...so what to do??
shashank 1068
10-Apr-13 2:02am
View
i am getting an error on following line
Lines(number of lines you want to replace)="write what you want to replace"
and OF is causing problem with an error
Comma, ')',or valid expression continuation expected
shashank 1068
10-Apr-13 1:50am
View
i am trying to delete the string
my code is:
Dim number As String
Dim theFile As String="File path"
Dim Lines() As String=System.Io.file.read all lines("File Path")
Lines(number of lines you want to replace)="write what you want to replace")
System.Io.File.All Lines("File Path",Lines)
End Sub
Show More