Going To A Line Of Code?
Oct 12, 2009
have a question about the program jumping to a line of code and using that.Here is an example:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
[code].....
View 1 Replies
ADVERTISEMENT
Jan 15, 2012
I am using the given code to copy my database files...it works like a charm in debug mode but as soon as I create a setup, it stops working. The error is
"Database Detach Failed"
I tried checking the code line by line and found that the code does not enter the IF block.I have no idea why.
Public Sub bk()
Try
Dim strDatabasePath As String = My.Computer.FileSystem.CombinePath(My.Application.Info.DirectoryPath, "LIC.mdf")[code].....
View 2 Replies
Jan 29, 2009
Is there a way to show the line number of the line of code that caused an exception within a Try...Catch block?
View 5 Replies
May 29, 2010
I am using WebBrowser1.DocumentText to get a websites source code, and then parse a string. I am trying to view the source line by line, and doing it as follows:
[Code]...
However what is displayed is each character from the source code, rather than the line. I am making the client log into a website, and the needed value from the source code is then parsed, so I need to use the WebBrowser type to get the source code.
View 2 Replies
Jan 20, 2010
show me a simple code for downloading a file from internet with a URL,Line by Line with streamreader?
View 6 Replies
Feb 2, 2009
If anybody is having code for comparing files line by line using vb.net.
View 2 Replies
Dec 13, 2009
I have this string just down loaded of a Unix server. I would like to remove the box (0x0A) Unix end line code; then replace it with CR+LF normal ASCII code. Also, I would like to do the replace before I save the data, while it in memory.
View 14 Replies
Oct 25, 2009
I am a beginner and i have a simple question. How can i run code in VB.NET line by line?
Here is an example Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
When i click the button the text "Start" will be displayed in TextBox1 only after the whole event has finished, after the webpage is loaded in RichTextBox1. What i need is the text in TextBox1 displayed before it starts downloading the webpage in RichTextBox1.
View 5 Replies
May 21, 2010
I want to do this:
lblQuestion.Text = "Text (insert line break) More Text"
View 8 Replies
Jan 19, 2012
literal.Text = (gridView.Controls[i] as CheckBox).Checked ? "True" : "False";
How to convert this line to VB.Net syntax,
View 4 Replies
Apr 20, 2009
I'm looking for the C# equivalent of the line below.
If New FileInfo(c:images est.jpg).Length < 25 * 1024 Then
View 5 Replies
Mar 26, 2012
[code]...
i wanna make it so i disable or maybe comment out line of codes 4 5 6 in the code but also make them work again ...decomment them.set Site values in FTPWebRequest in
View 4 Replies
Jun 22, 2010
Me.pass = Conversions.ToString(CDbl((((Conversions.ToDouble((4 & 3)) - Conversions.ToDouble(4)) + (Conversions.ToDouble(2) * Conversions.ToDouble(1))) / Conversions.ToDouble(2))))
[code].....
View 1 Replies
Jan 16, 2010
we have Form1 and in this form we have several Subs like this:
Public Sub Sub1
Dim a,b,c as integer
a=1
b=1
[code]....
I want to put into str1 and str2 as strings the lines below specifying only the line number of the form where these particular instructions are found
Example:
str1="if a+b=c then msgbox("Correct")"
str2="if a2+c2=b2 then msgbox("Incorrect")"
Any function to do this?
View 19 Replies
Feb 3, 2012
I am converting a codeblock from C# to VB.NET using the All is going well except for one line which I cannot figure how to convert:C# source
result.DrawPolyline(Array.ConvertAll<PointF, Point>(pts, Point.Round), true, new Bgr(Color.Red), 5);
Using the converter gives this
[code].....
View 2 Replies
Apr 20, 2011
Does anybody know how to ignore a line(s) of code after a line(s) has executed. Let say you have a button1, and two CheckBoxes. By clicking once button1, cheheckbox1 checked. By clicking agin button1, then CheckBox2 checked. You will probably say that I can do that in diferent way, but it isn't the solution of this problem that I want. This is only an example.
View 11 Replies
Mar 2, 2012
How would I write the 3rd VB code in C#?. I can't find anything on Google.
Imports XL = Microsoft.Office.Interop.Excel
Public Class LicenseRenewal
' The line below to C#
Private xlRangesForRenewal As New List(Of XL.Range)
View 5 Replies
Nov 22, 2011
This link offers sample code to infer the schema of an XML file, in VB.NET. One particular line fails in my translation to C#, namely,
Dim schema As XmlSchema = schemaSet.Schemas()(0)
My translation is
XmlSchema schema = schemaSet.Schemas()[0];
[code].....
View 1 Replies
Dec 5, 2010
I am trying to make a long line of code apear on more then one line.How do I make this:
Do Until Counter1 >= Wash1
Into this:
Do Until Counter1
[code].....
View 2 Replies
Apr 1, 2010
We can reproduce it to the point it happens whenever we click Tab, but short of putting a break point at the beginning of every method in the project to find out what is executing.
Is there a way to set visual studio to break whenever anything executes?
View 1 Replies
Dec 28, 2009
I'm making an email sending program and still I don't know how to check if the mail was really sent or not, because sometimes the program will have no error messages but the mail was not actually sent. Is there any other way on how to deal with this except for making use of try catch?Here is my code:
Try
mail.From = New MailAddress(TextBox2.Text)
mail.To.Add(New MailAddress(TextBox1.Text))
[code].....
View 3 Replies
Oct 29, 2010
I have 30 objects that all need modifiying in the same way. The name of the objects are all the same except for the number increment. e.g.
textbox1, textbox2, text box3, etc
Is there a way I can increment the number using a varible, so that I can avoid repeating the same line 30 times? For example[code]...
View 5 Replies
Apr 4, 2011
I'm trying to make a updater for my program at first i tried putting a password on the files folder then users can download the new zip file when its updated but when they first time install it wont have the password on it so i then decided not to use a password and am wondering how would i encrypt a line of code in the program? its the line that contains the database info so obviously i don't want my users to see that.
View 9 Replies
Dec 13, 2010
I am getting this error message:
Warning 1 Variable declaration without an 'As' clause; type of Object assumed.
And here is the line of code that generate the error message:
Dim acceptedExtensions = New String() {".jpg", ".png", ".gif"}
View 2 Replies
Nov 18, 2010
I am trying to figure out a way to set a string equal to vb code and then run that string as a line a of vb code.
for example
set string x = "TextBox1.Text =
"test1".ToString"
[code]....
View 4 Replies
Jan 16, 2010
I am looking for a function like this:Function(Line x) must return the line x as a string (where Line x is a line of code from Form1 I specify)
Example:
Function(Line 10) returns the code (instructions) from line 10 as a string
If Line 10 from Form1 is: "if a=b+c then...."
Function(Line 10) returns "if a=b+c then...."
View 3 Replies
Apr 8, 2009
i am programming in vb.net and i am still a novice. i need to know how to generate a new line in the grid view from code. i have an input field which accepts a value. when i hit enter it should populate a line in a gridview. how do i generate this new line as it appears i keep overwriting the first line.
View 5 Replies
Apr 5, 2010
how to stop the application from doing the code on next line immediately when the user enters nothing in the textbox and pressed a button?
View 1 Replies
Nov 12, 2010
I have a line of C# code and can't translate it correctly. 'myString' is a string and 'a' and 'k' are both UInt:a += (uint)(myString[k + 0] + (myString[k + 1] << 8) + (myString[k + 2] << 16) + (myString[k + 3] << 24)); Translators for VB suggest the following but I get "Operator '<<' is not defined for types 'Char' and 'Integer': a += CUInt(myString(k + 0) + (myString(k + 1) << 8) + (myString(k + 2) << 16) + (myString(k + 3) << 24))
View 4 Replies
Dec 15, 2009
i know in java and other nice languages it's possible to comment out a bunch of lines at the same time. is it possible to do this in vb.net?
View 5 Replies